-----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 <[email protected] 
>> <mailto:[email protected]>> 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* 
>> <[email protected] <mailto:[email protected]>> Date: Wed, Aug 22, 2018, 
>> 01:33 Subject: [ovirt-users] ovirt api vm snapshot cloning error
>>  To: users <[email protected] <mailto:[email protected]>>
> 
> 
>> 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 -- [email protected] <mailto:[email protected]> To unsubscribe
>> send an email to [email protected]
>> <mailto:[email protected]> 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/[email protected]/message/EPMEOT5
2
>
>> 
3Z7JXIUVO6BJSQOD4NYUBBQZ/
> 
> 
> 
> <https://lists.ovirt.org/archives/list/[email protected]/message/EPMEOT5
23
>
> 
Z7JXIUVO6BJSQOD4NYUBBQZ/>
> 
> 
> 
> 
>> --
> 
> 

- -- 
*Peter Hudec*
Infraštruktúrny architekt
[email protected] <mailto:[email protected]>

*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-----
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]/message/KYIGCWQMGS7XWOE62DFBFG4DZSUR5ZHL/

Reply via email to