Bug 1620087 - ovirt api vm snapshot cloning error
Summary: ovirt api vm snapshot cloning error
Keywords:
Status: CLOSED DUPLICATE of bug 1628909
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.2.5.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-22 12:35 UTC by Peter Hudec
Modified: 2018-09-16 13:02 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-09-16 13:02:44 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)
python script using API (2.08 KB, text/x-python)
2018-08-22 12:35 UTC, Peter Hudec
no flags Details

Description Peter Hudec 2018-08-22 12:35:17 UTC
Created attachment 1477872 [details]
python script using API

Description of problem:
could not cone the VM SNAP, when the SNAP status is OK.


Version-Release number of selected component (if applicable): 4.2.5.3-1.el7


How reproducible:
Try to create snapshot of the VM, wait until the SNAP is OK and try to clone the SNAP.

Steps to Reproduce:
1. run the provided python script
2.
3.

Actual results:
virtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot add VM: The following disks are locked: ditlcm01_Disk1. Please try again in a few minutes.]". HTTP response code is 409.

Expected results:
VM Snaphshot should be cloned


Additional info:
This was working in 4.2.3 version

list of python packages

(ovirt)air-2:ovirt.api hudecof$ pip list
Package                 Version
----------------------- --------
enum34                  1.1.6
kitchen                 1.2.5
ovirt-engine-sdk-python 4.2.8
ovirt-shell             3.6.9.2
pip                     18.0
ply                     3.11
pycurl                  7.43.0.2
setuptools              40.1.1
six                     1.11.0

Comment 1 Peter Hudec 2018-08-22 21:52:52 UTC
see the notes on github issue for one backup SW

https://github.com/openbacchus/bacchus/issues/30

When I add VM disk checking part, it works as expected or as in previous version of ovirt.

disk_attachments_service = vms_service.vm_service(vm.id).disk_attachments_service()
disk_attachments = disk_attachments_service.list()
for disk_attachment in disk_attachments:
    disk = connection.follow_link(disk_attachment.disk)
    print("DISK %s: %s" % (disk.name, disk.status))
    while disk.status != types.DiskStatus.OK:
        time.sleep(1)
        disk = connection.follow_link(disk_attachment.disk)
        print("DISK %s: %s" % (disk.name, disk.status))

Comment 2 Michal Skrivanek 2018-08-23 04:59:58 UTC
Anything changed in disk locking recently?
AFAIK there was no change on virt side in any 4.2.z at least

Comment 3 Tal Nisan 2018-09-16 13:02:44 UTC
Seems like a duplicate of 1628909, from what Arik says it seems to be existing also in 4.1

*** This bug has been marked as a duplicate of bug 1628909 ***


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