Hi Peter,
Would you mind reporting a bug on this issue you saw?
To me, it looks like sync/timing issue between snapshot state('OK) and
disk state('Locked').
Can you also please check if the disk that is reported as locked is indeed
locked at the time the error is reported?
Please add this info to the bug and all relevant scripts.
As a workaround, please consider adding an additional wait for all the VM
disks to also reach 'OK' state.
Thanks,
Avihai
---------- Forwarded message ---------
From: Peter Hudec <phudec(a)cnc.sk>
Date: Wed, Aug 22, 2018, 01:33
Subject: [ovirt-users] ovirt api vm snapshot cloning error
To: users <users(a)ovirt.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm trying to solve an issue described in
https://github.com/openbacchus/bacchus/issues/30.
Short description is
- - create snapshot
- - wait until the snapshot is OK
- - clone snapshot
- - got 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
To simulate the error I have combined the exampe scripts
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/clone
_vm_from_snapshot.py
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_v
m_snapshot.py
The full code is here:
https://tools.apps.hudecof.net/paste/view/0319f4f
1
This code was working on 4.2.3 version. I skipped the 4.2.4, but n
4.2.5 is broken.
Any clue what's wrong?
regards
Peter
- --
*Peter Hudec*
Infraštruktúrny architekt
phudec(a)cnc.sk <mailto:phudec@cnc.sk>
*CNC, a.s.*
Borská 6, 841 04 Bratislava
<
https://maps.google.com/?q=Borsk%C3%A1+6,+841+04+Bratislava&entry=gma...
Recepcia: +421 2 35 000 100
Mobil:+421 905 997 203
*www.cnc.sk* <http:///www.cnc.sk>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt8kfIACgkQQnvVWOJ3
5BBMCQ//SkRDqG6Av15ZIbpAby3+Z7mYjxdW/chGjR5cgVNG7vmprJIz9Jo3EQLV
mYCRj6XU9l6uFQ2WHtFbVKHlbcRl9Qw2a6nGFDRWvG7CCqStg5mmVhFo8fKNGIl8
avjN9uaZqypIdJCB80tFnVEv4a5IWWJkAll3B8KKPAsIeYMNP+d/8D6AAunR6AKH
kVft+mRBjlJUeYTe/QfeNW1J+JUCZd1Qd4A8h/E9B16Cc/8xfgr88uGUDqZCMgUc
bQcW8CAfAHFq19mOjxBtmwjNtchcb5EUdCvZSYc34ujdZSU6v8GWPqnHVUnve4G0
O0ZhOXKjUZS9FO7n7JrhkIwOwmMRqAaBiKYuVd8g+iib9z+Wlb9W3uZnll9Bik65
UvSpl5Rp/Vy/Rx7GHpCn/TqIwnMppEF2Bp55ZGh77zM+Almy4PtGJp4py+FU8/4I
wZ59bMgAgj4vquPWbtEP5QQtThucqpoJc+7wnHdhPFR3Ks+PTy4qkSgOnTr+lLbr
yGvqZJEqwSH5Kga/5HyAb94ZikTC6zCLcuQur19TR+O2WnG3JFXEOSuumU59mIjs
XelKHkvb5RhZ34w8mfGZM09MpWKyWCMjPQTLUABqzOaK6OHY5vku1RwKILSRjb3x
tNCFCl9oqPPTQbiGq2+xT43KFtTvrmC17dshsLjUi97vKcSDe+I=
=cVTg
-----END PGP SIGNATURE-----
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-
guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/
message/EPMEOT523Z7JXIUVO6BJSQOD4NYUBBQZ/