Download backup disk command failed in sdk/examples/backup_vm.py
Description of problem:
Download backup disk command fails after starting a backup.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1) Start a backup on a disk
2) Run this command to download the backup disk in the host: python3 /usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py -c engine download 23f1b05d-3a4d-4a2e-8765-c61e883923c0 --backup-dir . --backup-uuid 1cc771a6-3d5b-4fca-a922-614d59bf103f
The action failes with this error:
python3 /usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py -c engine download 23f1b05d-3a4d-4a2e-8765-c61e883923c0 --backup-dir . --backup-uuid 1cc771a6-3d5b-4fca-a922-614d59bf103f
[ 0.0 ] Downloading VM '23f1b05d-3a4d-4a2e-8765-c61e883923c0' disks
Traceback (most recent call last):
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py", line 493, in <module>
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py", line 176, in main
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py", line 249, in cmd_download
connection, args.backup_uuid, args, incremental=args.incremental)
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py", line 359, in download_backup
if not args.download_backup:
AttributeError: 'Namespace' object has no attribute 'download_backup'
The issue is fixed but the fix patch is only in master(upstream) but not in current RHV 4.4.7-6 (which is 4.4.7 RC/ python3-ovirt-engine-sdk4-4.4.13-1)
@Eyal can someone assist as this is breaking a lot of Tier2 automation test cases and considered automation blocker for QE.
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.
The fix is merged and it will be included in upcoming Python SDK release for oVirt 4.4.8
The expected output matched the actual output.
The total flow mentioned was done with no errors/unexpected logs.
I was able to download the backup disk using the sdk/examples/backup_vm.py command.
This bugzilla is included in oVirt 4.4.8 release, published on August 19th 2021.
Since the problem described in this bug report should be resolved in oVirt 4.4.8 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.