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)
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.
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.
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.
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.