Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqvm-backup-restore fails to properly parse labels #3219
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jwoytek
Oct 26, 2017
Quick fix:
At line 134 in file /usr/lib/python3.5/site-packages/qubesadmin/backup/core3.py:
vm.label = vm.properties.pop('label')
try:
vm.label = self.labels[vm.label]
except KeyError:
pass
jwoytek
commented
Oct 26, 2017
|
Quick fix: At line 134 in file /usr/lib/python3.5/site-packages/qubesadmin/backup/core3.py: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Oct 27, 2017
Member
This appears to be a duplicate of #3211. If you believe this is not really a duplicate, please leave a comment briefly explaining why. We'll be happy to take another look and, if appropriate, reopen this issue. Thank you.
|
This appears to be a duplicate of #3211. If you believe this is not really a duplicate, please leave a comment briefly explaining why. We'll be happy to take another look and, if appropriate, reopen this issue. Thank you. |
andrewdavidwong
closed this
Oct 27, 2017
andrewdavidwong
added
the
duplicate
label
Oct 27, 2017
andrewdavidwong
referenced this issue
Oct 27, 2017
Closed
[R4.0 RC2] qvm-backup-restore or qvm-backup error #3211
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jwoytek
Oct 27, 2017
Concur on the duplicate issue. There was a delay between discovery and filing, and I missed the prior report. Sorry!
jwoytek
commented
Oct 27, 2017
|
Concur on the duplicate issue. There was a delay between discovery and filing, and I missed the prior report. Sorry! |
jwoytek commentedOct 26, 2017
Qubes OS version:
4.0
Affected TemplateVMs:
N/A
Steps to reproduce the behavior:
Attempt to restore a backup from another Qubes 4.0 system that may be running a slightly different update level.
Expected behavior:
Restore should succeed.
Actual behavior:
Restore fails with a KeyError exception at line 134 in file /usr/lib/python3.5/site-packages/qubesadmin/backup/core3.py
This exception occurs because some backups seem to have the color stored in vm.properties, and some systems have "label-X" instead of colors in self.labels. When working with multiple machines, we found that some had label-X in self.labels, and some had colors. The restore process seems to assume that self.labels has colors as keys.
All systems involved were Qubes 4.0rc1. rc2 does not function on any of our hardware, so we were unable to test that.
General notes:
Related issues: