Bug 2006745 - [MBS] Template disk Copy from data storage domain to Managed Block Storage domain is failing
Summary: [MBS] Template disk Copy from data storage domain to Managed Block Storage do...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: shani
QA Contact: sshmulev
URL:
Whiteboard:
: 2049224 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 10:25 UTC by IRFAN MOMIN
Modified: 2022-08-03 12:05 UTC (History)
8 users (show)

Fixed In Version: ovirt-engine-4.5.0
Doc Type: Bug Fix
Doc Text:
Previously, when trying to copy a template disk from/to a Managed Block Storage domain, the operation failed due to an incorrect storage domain ID, saving the same image repeatedly in the images (and base disks) DB tables, and casting the disk to DiskImage when it is of type ManagedBlockStorageDisk. In this release, all of the above issues were fixed, and copying a template disk from/to a Managed Block Storage domain works as expected.
Clone Of:
Environment:
Last Closed: 2022-05-26 16:23:11 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43694 0 None None None 2021-09-22 10:27:07 UTC
Red Hat Knowledge Base (Solution) 6350772 0 None None None 2022-03-14 17:21:02 UTC
Red Hat Product Errata RHSA-2022:4711 0 None None None 2022-05-26 16:23:42 UTC
oVirt gerrit 117500 0 master MERGED core: Fix casting to Manage Block Disk on copy template disk 2021-12-02 07:54:30 UTC
oVirt gerrit 117613 0 master MERGED core: Fix duplicate DB save when copying an MBS template disk 2021-12-02 07:54:32 UTC
oVirt gerrit 117614 0 master MERGED core: Set domain to Managed Block Storage when copying a template disk 2021-12-02 07:54:35 UTC

Description IRFAN MOMIN 2021-09-22 10:25:18 UTC
Description of problem:

Copy of disk from any type of data domain to Managed Block Storage domain is failing.

Version-Release number of selected component (if applicable):
RHV Manager OS: Red Hat Enterprise Linux 8.4
RHV Manager Kernel: 4.18.0-305.10.2.el8_4.x86_64
ovirt-engine: 4.4.7.7
Hypervisor running on 'Red Hat Enterprise Linux 8.4'
VDSM: vdsm-4.40.70.6-1.el8ev.x86_64


How reproducible: 100%


Steps to Reproduce:
1. Create storage domain with Domain function as Managed Block Storage.
2. Copy disk from any other data domain to Managed Block Storage.
3. The task will fail.

ERROR - Failure occurred when trying to run command 'create_volume': Entity '<class 'cinder.db.sqlalchemy.models.Volume'>' has no property 'glance_metadata

Actual results:

Task fail.

Expected results:

Task should complete successfully.

Comment 2 shani 2021-10-18 16:10:49 UTC
Hi Ifran,
I was trying to reproduce your bug, but I was able to copy MBS disks:
MBS <--> iscsi and MBS <--> nfs.

My system has the following configurations:
engine:
Red Hat Enterprise Linux release 8.4 (Ootpa)
ovirt-engine-4.5.0-0.0.master.20211008135633.gitf9e01afdd33.el8.noarch
python3-cinder-17.2.0-1.el8.noarch
python3-cinderlib-3.0.0-1.el8.noarch

spm:
Red Hat Enterprise Linux release 8.5 (Ootpa)
vdsm-4.50.0-23.gite04eba048.el8.x86_64
python3-os-brick-4.0.4-1.el8.noarch

Can you try updating your code and give it another try?

Comment 3 Benny Zlotnik 2021-10-19 09:36:35 UTC
This happens when the copied disk is a template disk, to fix it we need to modify the create of the disk and only add the SD<->Disk mapping.

Irfan, can you confirm the copied disk is a template disk?

Comment 4 shani 2021-10-19 12:44:31 UTC
Thanks, Benny,
I was able to reproduce it, wip

Comment 8 Ricardo Alonso 2022-02-01 19:27:06 UTC
*** Bug 2049224 has been marked as a duplicate of this bug. ***

Comment 9 Ricardo Alonso 2022-02-01 19:43:43 UTC
is there any workaround we can use? 4.5 beta still not available.

Comment 13 sshmulev 2022-04-11 12:46:35 UTC
Verified.

Versions:
ovirt-engine-4.5.0.2-0.7.el8ev.noarch
vdsm-4.50.0.11-1.el8ev

Steps toverify:
1. Create Managed Block Storage domain.
2. Created 3 differnt floating disks (ISCSI, NFS, Gluster)
3. Copy all the disks to the Managed Block Storage domain created.
4. Attach the disks to a VM and run it, make sure you can see the disks and the size is correct.

Actual results:
Works as expected.

Comment 18 errata-xmlrpc 2022-05-26 16:23:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.0] security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:4711

Comment 19 meital avital 2022-08-03 12:05:14 UTC
Due to QE capacity, we are not going to cover this issue in our automation


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