Bug 2066285

Summary: Copying from an Image domain to a Managed Block Storage domain fails
Product: [oVirt] vdsm Reporter: Benny Zlotnik <bzlotnik>
Component: CoreAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: sshmulev
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.50.0.10CC: ahadas, bugs
Target Milestone: ovirt-4.5.0Keywords: Regression, TestBlocker
Target Release: 4.50.0.11Flags: pm-rhel: ovirt-4.5?
pm-rhel: blocker?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.50.0.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 06:33:59 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 Benny Zlotnik 2022-03-21 12:17:42 UTC
Description of problem:
As a result of regression in 4.5, copying disks from traditional (image) domains to MBS fails with:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/storage/task.py", line 884, in _run
    return fn(*args, **kargs)
  File "</usr/lib/python3.6/site-packages/decorator.py:decorator-gen-199>", line 2, in sdm_copy_data
  File "/usr/lib/python3.6/site-packages/vdsm/common/api.py", line 50, in method
    ret = func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/storage/hsm.py", line 3357, in sdm_copy_data
    copy_bitmaps=copy_bitmaps)
  File "/usr/lib/python3.6/site-packages/vdsm/storage/sdm/api/copy_data.py", line 60, in __init__
    lock_image=source['img_id'] != destination['img_id'])
KeyError: 'img_id'

As img_id is not available for the external endpoint used by Managed Block Storage disks in copy_data

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Try to copy a disk to Managed Block Storage domain
2.
3.

Actual results:
Fails with the exception in the description


Expected results:
Succeed

Additional info:

Comment 1 RHEL Program Management 2022-03-21 15:10:40 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 3 sshmulev 2022-04-11 12:50:06 UTC
Verified.
Based on the verification of bug 2006745

Comment 4 Sandro Bonazzola 2022-04-20 06:33:59 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

Since the problem described in this bug report should be resolved in oVirt 4.5.0 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.