Re: ovirt api vm snapshot cloning error

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 On Wed, Aug 22, 2018 at 10:01 AM, Raz Tamir <ratamir@redhat.com> wrote:
I have a feeling this is related to the issue we reviewed yesterday and, that we have a bug here
Could you please take care of this?
---------- Forwarded message --------- From: Peter Hudec <phudec@cnc.sk> Date: Wed, Aug 22, 2018, 01:33 Subject: [ovirt-users] ovirt api vm snapshot cloning error To: users <users@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/clone_vm_from_snapshot.py> - - https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_v m_snapshot.py <https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_vm_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@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=gmail&source=g> 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@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/communit y/about/community-guidelines/ List Archives: https://lists.ovirt.org/archiv es/list/users@ovirt.org/message/EPMEOT523Z7JXIUVO6BJSQOD4NYUBBQZ/
--

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi Avihai, I will report it. Meanwhile I found another bug in UI ;( Right now I'm trying to add disk status code, just to confirm what you said. Peter On 22/08/2018 13:48, Avihai Efrat wrote:
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
On Wed, Aug 22, 2018 at 10:01 AM, Raz Tamir <ratamir@redhat.com <mailto:ratamir@redhat.com>> wrote:
I have a feeling this is related to the issue we reviewed yesterday and, that we have a bug here
Could you please take care of this?
---------- Forwarded message --------- From: *Peter Hudec* <phudec@cnc.sk <mailto:phudec@cnc.sk>> Date: Wed, Aug 22, 2018, 01:33 Subject: [ovirt-users] ovirt api vm snapshot cloning error To: users <users@ovirt.org <mailto:users@ovirt.org>>
Hi,
I'm trying to solve an issue described in https://github.com/openbacchus/bacchus/issues/30 <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/clo ne
_vm_from_snapshot.py
<https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/cl one_vm_from_snapshot.py>
- -
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add _v
m_snapshot.py
<https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/ad d_vm_snapshot.py>
The full code is here:
https://tools.apps.hudecof.net/paste/view/0319f4f <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
_______________________________________________ Users mailing list -- users@ovirt.org <mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org <mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ <https://www.ovirt.org/site/privacy-policy/> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ <https://www.ovirt.org/community/about/community-guidelines/> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/EPMEOT52 3Z7JXIUVO6BJSQOD4NYUBBQZ/
<https://lists.ovirt.org/archives/list/users@ovirt.org/message/EPMEOT523 Z7JXIUVO6BJSQOD4NYUBBQZ/>
--
- -- *Peter Hudec* Infraštruktúrny architekt phudec@cnc.sk <mailto:phudec@cnc.sk> *CNC, a.s.* Borská 6, 841 04 Bratislava Recepcia: +421 2 35 000 100 Mobil:+421 905 997 203 *www.cnc.sk* <http:///www.cnc.sk> -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt9Uu0ACgkQQnvVWOJ3 5BBVWQ/9H8IwbMStNyWgdaRBJAQc1R5A+GYurxN1f3GSlYiArTNKJaLFSPxaXyLi TF32VD83EsQGAGKprS3tPGrfPZ5O5XSn8G603T1emp5P1tdwJ+jCMXib/kfm41En jBkOG920Nk68ZodmrZTC4JPE+bRUwnlbuAihL3XPHmjytF58EqLlL3LE2Zshm4Rd 6rFQE25hB0FtZkDVHjx3UT81DyeGTPbUhXpPPLwM9FULGbesPFUNmrQk0MlgGJ5E zo8ghjI56sRdyv2DqGUxS1+Uoerh5lcKyraAljtVmVQugNMamXs6h48imfLFDsdZ OMJ1XryhutM0WtQNj3lbdvQSwoQQQ4FWU8oQAsA7XCJZZJMgAthWtMU0rYznkqkq QlJi/NB+aqhAkR/GAWShIp29PVhPnAjq3/UOXdxfLTjbljPpm7qgvadZfLF7zsyg aYGOtq0jc6IZua9Jeu4gb0JRJ9Lu8y8Ll3DWQk1tzf5yNQ9oN64spP0INYeibhGK lYrk2cSEnTnFwt5HCCtzmpgCYZyc5oOpDgaJE1CEIWy398qYW1eFQFhTghvsC8sB NoAq6n7TORinB2YQBNoH/DTXTYFRzabGG6T7qlmbXpoKGO8kL5LTuUNXEaAvW5CB eXFAR69tnpWrzUo89vnjtbL6VjyKSaQ8ntUU80pt+O/Okn/OtYI= =acp4 -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi Avihai, I added code to check the disk status, but the disks seems to be in OK state. # checking disk states snap_disks_service = snap_service.disks_service() snap_disks = snap_disks_service.list() for snap_disk in snap_disks: print("Disk %s %s" % (snap_disk.name, snap_disk.status)) https://bugzilla.redhat.com/show_bug.cgi?id=1620087 regards Peter On 22/08/2018 14:11, Peter Hudec wrote:
Hi Avihai,
I will report it. Meanwhile I found another bug in UI ;(
Right now I'm trying to add disk status code, just to confirm what you said.
Peter
On 22/08/2018 13:48, Avihai Efrat wrote:
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
On Wed, Aug 22, 2018 at 10:01 AM, Raz Tamir <ratamir@redhat.com <mailto:ratamir@redhat.com>> wrote:
I have a feeling this is related to the issue we reviewed yesterday and, that we have a bug here
Could you please take care of this?
---------- Forwarded message --------- From: *Peter Hudec* <phudec@cnc.sk <mailto:phudec@cnc.sk>> Date: Wed, Aug 22, 2018, 01:33 Subject: [ovirt-users] ovirt api vm snapshot cloning error To: users <users@ovirt.org <mailto:users@ovirt.org>>
Hi,
I'm trying to solve an issue described in https://github.com/openbacchus/bacchus/issues/30 <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/cl o
ne
_vm_from_snapshot.py
<https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/c l
one_vm_from_snapshot.py>
-
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/ad d
_v
m_snapshot.py
<https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/a d
d_vm_snapshot.py>
The full code is here:
https://tools.apps.hudecof.net/paste/view/0319f4f <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
_______________________________________________ Users mailing list -- users@ovirt.org <mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org <mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ <https://www.ovirt.org/site/privacy-policy/> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ <https://www.ovirt.org/community/about/community-guidelines/> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/EPMEOT5 2
3Z7JXIUVO6BJSQOD4NYUBBQZ/
<https://lists.ovirt.org/archives/list/users@ovirt.org/message/EPMEOT5 23
Z7JXIUVO6BJSQOD4NYUBBQZ/>
--
- -- *Peter Hudec* Infraštruktúrny architekt phudec@cnc.sk <mailto:phudec@cnc.sk> *CNC, a.s.* Borská 6, 841 04 Bratislava Recepcia: +421 2 35 000 100 Mobil:+421 905 997 203 *www.cnc.sk* <http:///www.cnc.sk> -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlt9WNgACgkQQnvVWOJ3 5BDmThAAk8eoSY0gWF+WBivMvINyznkWuvnN4ysLzUU1DSfM58rz1Ob9aM5tQrpX /Wp4xW6yzz+VryENUOdAzQEPehmUFzQfMG7/UPNh6qS08JRxJsPTkefPgX/5Rt3P rstgMQNORvuUIS4HovbKwDHCvvI1yQBmG07vpGWO15CDAGG7Ovj6v1JhsrYoKB9i ESrxkki2qOtqISJy3/EGt5I49Ej/rcm0OV25Bf13BAbcVA9kdnB5Py7KXu+35ZL8 wvHc7s1bhwLxSovza9GULtk61TPMYl4UWrj6wsb9UqfL0qpS2VCt4+1WgqJISLnh r4OpjMEM37eUTBcC/CkgmRi+Z6PDi88QJtcQWO4DOJAryPeq1UHz/0J6+vsLlz9N n5vtINBgeN9RUwrz1tLoVFOJ1Mi9LbP0zBCrCSofWFmS/y0ZT9krgxS9nEsCYxiY CYyGMNZp7Z52hIAHTDqE5ixJbgPB8PAVolhKE7QOS83VLKyI4IViCF6zag+wWINa 5GCjGWXAo/HWFTLqHtCNB3pVgyVwKwf71R8hBHHA+iV3mzTWmKlfsH6sM8Uf2OML dhx/DFoozWs22HnTSeG5pqg9NIA1lf5OG9ZQEU/Dh+YtnOKpdpkOAbtJc68uIlfi M0A5zO649rjUBILMVaJK9OYRU9vxVjzK26zslUx1JBzNxtv9eVQ= =ny8H -----END PGP SIGNATURE-----
participants (2)
-
Avihai Efrat
-
Peter Hudec