Bug 1397836 - Cloning a VM with Ceph/Cinder based disk leaves disk in locked state
Summary: Cloning a VM with Ceph/Cinder based disk leaves disk in locked state
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.0.5.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ovirt-4.1.0-beta
: 4.1.1.3
Assignee: Tal Nisan
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 12:41 UTC by Thomas Klute
Modified: 2017-03-27 11:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-27 11:06:50 UTC
oVirt Team: Storage
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
engine.log (2.91 KB, text/plain)
2016-11-23 12:41 UTC, Thomas Klute
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 64291 0 None None None 2016-12-25 12:43:31 UTC

Description Thomas Klute 2016-11-23 12:41:00 UTC
Created attachment 1223205 [details]
engine.log

Description of problem:
We're using cinder (based on the Kolla setup) to provide storage for
ovirt. Everything works fine except the clone process of a VM:

When cloning a VM with cinder/ceph-based storage we see, that the VM
clone is created, the attached image is cloned as well, but the
disk/image remains in locked state. We then need to issue a

"update images set imagestatus=1 where imagestatus=2;"

on the engine to make the VM clone work.

Trying to clone a VM with NFS based storage works as expected, thus I think it's
the cinder/ceph integration that causes the problem here.

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

How reproducible:
Always

Steps to Reproduce:
1. Create VM with a Cinder/Ceph based disk 
2. Try to clone that VM via oVirt engine admin portal

Actual results:
VM is cloned, disk is cloned in cinder, disk remains locked in postgres db on the engine.

Expected results:
VM is cloned, disk is cloned in cinder, disk becomes unlocked in postgres db on the engine after the disk is cloned.

Additional info:
Package-Versions:
ovirt-engine-jboss-as-7.1.1-1.el7.centos.x86_64
ovirt-vmconsole-proxy-1.0.4-1.el7.centos.noarch
ovirt-engine-wildfly-overlay-10.0.0-1.el7.noarch
ovirt-engine-setup-base-4.0.5.5-1.el7.centos.noarch
ovirt-guest-agent-common-1.0.12-3.el7.noarch
ovirt-engine-setup-plugin-ovirt-engine-4.0.5.5-1.el7.centos.noarch
ovirt-host-deploy-1.5.3-1.el7.centos.noarch
ovirt-engine-websocket-proxy-4.0.5.5-1.el7.centos.noarch
ovirt-engine-extensions-api-impl-4.0.5.5-1.el7.centos.noarch
ovirt-engine-wildfly-10.1.0-1.el7.x86_64
ovirt-engine-dbscripts-4.0.5.5-1.el7.centos.noarch
ovirt-engine-restapi-4.0.5.5-1.el7.centos.noarch
ovirt-vmconsole-1.0.4-1.el7.centos.noarch
ovirt-release36-3.6.6-1.noarch
ovirt-engine-lib-4.0.5.5-1.el7.centos.noarch
ovirt-setup-lib-1.0.2-1.el7.centos.noarch
ovirt-engine-setup-plugin-ovirt-engine-common-4.0.5.5-1.el7.centos.noarch
ovirt-engine-setup-plugin-vmconsole-proxy-helper-4.0.5.5-1.el7.centos.noarch
ovirt-engine-setup-plugin-websocket-proxy-4.0.5.5-1.el7.centos.noarch
ovirt-host-deploy-java-1.5.3-1.el7.centos.noarch
ovirt-iso-uploader-4.0.2-1.el7.centos.noarch
ovirt-engine-setup-4.0.5.5-1.el7.centos.noarch
ovirt-engine-extension-aaa-jdbc-1.1.1-1.el7.noarch
ovirt-imageio-common-0.4.0-1.el7.noarch
ovirt-imageio-proxy-setup-0.4.0-0.201608310602.gita9b573b.el7.centos.noarch
ovirt-image-uploader-4.0.1-1.el7.centos.noarch
ovirt-engine-sdk-python-3.6.9.1-1.el7.centos.noarch
ovirt-release40-4.0.5-2.noarch
ovirt-engine-tools-4.0.5.5-1.el7.centos.noarch
ovirt-engine-dashboard-1.0.5-1.el7.centos.noarch
ovirt-engine-backend-4.0.5.5-1.el7.centos.noarch
ovirt-engine-4.0.5.5-1.el7.centos.noarch
ovirt-engine-dwh-4.0.5-1.el7.centos.noarch
ovirt-engine-cli-3.6.8.1-1.el7.centos.noarch
ovirt-imageio-proxy-0.4.0-0.201608310602.gita9b573b.el7.centos.noarch
ovirt-guest-tools-iso-4.0-1.fc23.noarch
ovirt-engine-dwh-setup-4.0.5-1.el7.centos.noarch
python-ovirt-engine-sdk4-4.0.2-1.el7.centos.x86_64
ovirt-engine-vmconsole-proxy-helper-4.0.5.5-1.el7.centos.noarch
ovirt-engine-tools-backup-4.0.5.5-1.el7.centos.noarch
ovirt-engine-webadmin-portal-4.0.5.5-1.el7.centos.noarch
ovirt-engine-userportal-4.0.5.5-1.el7.centos.noarch

Comment 3 Kevin Alon Goldblatt 2017-03-19 10:21:18 UTC
Verified with the following code:
--------------------------------------
ovirt-engine-4.1.1.3-0.1.el7.noarch
rhevm-4.1.1.3-0.1.el7.noarch
vdsm-4.19.7-1.el7ev.x86_64

Verified with the following scenario:
--------------------------------------
1. Create VM with a Cinder/Ceph based disk 
2. Try to clone that VM via oVirt engine admin portal

Actual results:
VM is cloned, disk is cloned in cinder, disk ARE NO LONGER locked in postgres db on the engine.


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