Bug 2066285 - Copying from an Image domain to a Managed Block Storage domain fails
Summary: Copying from an Image domain to a Managed Block Storage domain fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.50.0.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.5.0
: 4.50.0.11
Assignee: Benny Zlotnik
QA Contact: sshmulev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-21 12:17 UTC by Benny Zlotnik
Modified: 2022-04-20 06:33 UTC (History)
2 users (show)

Fixed In Version: vdsm-4.50.0.11
Clone Of:
Environment:
Last Closed: 2022-04-20 06:33:59 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.5?
pm-rhel: blocker?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt vdsm pull 100 0 None Draft copy_data: only skip lock for div endpoint 2022-03-21 12:17:41 UTC
Red Hat Issue Tracker RHV-45372 0 None None None 2022-03-21 12:21:46 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.