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):
vdsm-4.40.70.5-1.el8ev.x86_64
ovirt-engine 4.4.7.5-0.9.el8ev
python3-ovirt-engine-sdk4-4.4.13-1.el8ev.x86_64
How reproducible:
100%
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
Actual results:
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>
main()
File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py", line 176, in main
args.command(args)
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.
Comment 3RHEL Program Management
2021-07-05 07:31:20 UTC
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.
Version:
vdsm-4.40.80.2-1.el8ev.x86_64
ovirt-engine-4.4.8.1-0.9.el8ev.noarch
python3-ovirt-engine-sdk4-4.4.14-1.el8ev.x86_64
Verification conclusions:
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.
Bug verified.
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.
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): vdsm-4.40.70.5-1.el8ev.x86_64 ovirt-engine 4.4.7.5-0.9.el8ev python3-ovirt-engine-sdk4-4.4.13-1.el8ev.x86_64 How reproducible: 100% 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 Actual results: 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> main() File "/usr/share/doc/python3-ovirt-engine-sdk4/examples/backup_vm.py", line 176, in main args.command(args) 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'