Bug 1977689

Summary: Download backup disk command failes in sdk/examples/backup_vm.py
Product: [oVirt] ovirt-engine Reporter: sshmulev
Component: BLL.StorageAssignee: Eyal Shenitzky <eshenitz>
Status: CLOSED CURRENTRELEASE QA Contact: Amit Sharir <asharir>
Severity: medium Docs Contact:
Priority: high    
Version: 4.4.7.5CC: aefrat, bugs, bzlotnik, dfodor, eshenitz, michal.skrivanek, mperina, oliel, sfishbai
Target Milestone: ovirt-4.4.8Keywords: Automation, AutomationBlocker, TestBlocker
Target Release: ---Flags: pm-rhel: ovirt-4.4+
michal.skrivanek: blocker-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ovirt-engine-sdk4-4.4.14 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-19 06:23:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sshmulev 2021-06-30 09:48:47 UTC
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'

Comment 1 Avihai 2021-07-04 09:16:15 UTC
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 3 RHEL 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.

Comment 4 Martin Perina 2021-07-12 04:49:12 UTC
The fix is merged and it will be included in upcoming Python SDK release for oVirt 4.4.8

Comment 6 Amit Sharir 2021-07-25 15:00:08 UTC
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.

Comment 7 Sandro Bonazzola 2021-08-19 06:23:04 UTC
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.