Bug 2077666 - Block copy image from local storage domain to Lightbits Labs MBS
Summary: Block copy image from local storage domain to Lightbits Labs MBS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.5.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.5.2
: ---
Assignee: Artiom Divak
QA Contact: Avihai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-21 20:50 UTC by JC Lopez
Modified: 2022-08-30 08:49 UTC (History)
7 users (show)

Fixed In Version: ovirt-engine-4.5.2.1
Clone Of:
Environment:
Last Closed: 2022-08-08 08:17:16 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.5?


Attachments (Terms of Use)
engine, vddm logs plus screen captures of the copy operation (2.58 MB, application/zip)
2022-04-21 20:50 UTC, JC Lopez
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 482 0 None open core: MBS not supporting MoveOrCopy command 2022-07-31 11:43:18 UTC
Red Hat Issue Tracker RHV-45850 0 None None None 2022-04-21 20:54:41 UTC

Description JC Lopez 2022-04-21 20:50:02 UTC
Created attachment 1874275 [details]
engine, vddm logs plus screen captures of the copy operation

Description of problem:
As image upload to an MBS is not yet supported I tried to copy a raw format image from the local storage domain to the Lightbits Labs MBS we created

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

How reproducible:
Every time

Steps to Reproduce:
1.Upload a raw image to the local storage domain
2.Go to the UI and request for a copy of the image
3.

Actual results:
Copy fails

Expected results:
Copy succeeds

Additional info:
Attached complete engine and vddm log as well as screen capture

During this test here are the UUIDs for the objects
Source image  : 2fc7d40e-9592-42dc-993e-807098f4f5db
Target image  : f7b88e89-14b8-4384-ac3a-76a29c465bf1
Source domain : 77523ae3-b011-4202-a37f-ca2ac0419c42 (localdomain)
Target domain : c974329a-fcff-4c43-94cd-95310eb95fd4 (lightos)

Comment 1 Nir Soffer 2022-04-21 21:50:56 UTC
The copy fails since you are using a local data domain, and the code for copying images
to MBS works only with shared data domain.

The copy fails in:

2022-04-21 15:30:07,580-04 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-75) [] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), VDSM client2-45 command HSMG
etAllTasksStatusesVDS failed: value=Command ['/usr/bin/dd', 'if=/rhev/data-center/mnt/_mnt_localstorage/77523ae3-b011-4202-a37f-ca2ac0419c42/dom_md/xleases', 'iflag=direct,skip_bytes', 'skip=1048576', 'bs=253952', 'count=1'] failed with rc=1 out='[suppre
ssed]' err=b"/usr/bin/dd: failed to open '/rhev/data-center/mnt/_mnt_localstorage/77523ae3-b011-4202-a37f-ca2ac0419c42/dom_md/xleases': No such file or directory\n" abortedcode=100

Copying depends using a storage lease to track the copy operation. Local storage
does not support leases, so you cannot copy disks from this storage domain to MBS.

I'm not sure this will be fixed since local data domain is not considered as main
use case and should not really be used.

Please create a *shared* data center with data storage domain as the master
storage domain. The easiest way to do this is to use NFS, but you maybe
it will be more convenient for your environment to use iSCSI.

Comment 2 RHEL Program Management 2022-04-21 21:51:03 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 3 Nir Soffer 2022-04-21 21:56:39 UTC
Benny, this show several bugs in engine and vdsm, trying to use copy_data
with external endpoint with local storage domain which is something that
cannot work. But the most important bug is allowing the operation - I think
we need to block this copy with an error message that it is not supported.

Comment 5 Sandro Bonazzola 2022-08-30 08:49:07 UTC
This bugzilla is included in oVirt 4.5.2 release, published on August 10th 2022.
Since the problem described in this bug report should be resolved in oVirt 4.5.2 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.