[ovirt-users] Re: Failed to hot-plug disk

2018-08-04 Thread Raz Tamir
Hi Punaatua,

This looks like a bug, please submit it.
You can have a look at this bug
https://bugzilla.redhat.com/show_bug.cgi?id=1469235 which is very similar
issue with hotplug



__

Raz Tamir
Manager, RHV QE

On Sun, Aug 5, 2018, 09:13 Punaatua PK  wrote:

> Hello,
>
> I have a problem when i tried to hotplug a disk to a VM. Here is the
> situation.
>
> We use a VM (let's call this backupVM) which is responsible of doing our
> VM backup by :
> - Making a snapshot of the VM we want to backup
> - Attach the snapshot disk
> - Make the copy using DD
> - Unplug the snapshot disk and then delete snapshot.
>
> For some reason that i don't know, for certain VM, the backupVM cannot hot
> plug the snapshot disk.
>
> I'm using ovirt 4.2.4
> Here is what is see in engine.log
>
> 2018-08-04 19:52:30,496-10 ERROR
> [org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand] (default
> task-61) [361eca85-ca85-4e23-b292-cd8303a1a86d] Command
> 'org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand' failed:
> EngineException:
> org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
> VDSGenericException: VDSErrorException: Failed to HotPlugDiskVDS, error =
> internal error: unable to execute QEMU command 'device_add': Failed to get
> shared "write" lock, code = 45 (Failed with error FailedToPlugDisk and code
> 45)
>
> Here is the vdsm.log
>
> 2018-08-04 19:51:38,512-1000 INFO  (jsonrpc/5) [virt.vm]
> (vmId='78ef239f-3cb3-4eef-921f-f989724009ef') Hotplug disk xml:  version='1.0' encoding='utf-8'?>
> 
>  file="/var/lib/vdsm/transient/225ec856-d661-4374-bb7d-8ea7168fe5f2-b641bb09-325a-4932-a9af-32c907e4a381.D52Nkj"
> />
> 
> c312a0c3-8c58-472f-99ad-cfbabb42337d
>  name="qemu" type="qcow2" />
> 
>  (vm:3859)
> 2018-08-04 19:51:38,672-1000 ERROR (jsonrpc/5) [virt.vm]
> (vmId='78ef239f-3cb3-4eef-921f-f989724009ef') Hotplug failed (vm:3867)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 3865, in
> hotplugDisk
> self._dom.attachDevice(driveXml)
>   File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 98,
> in f
> ret = attr(*args, **kwargs)
>   File
> "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line
> 130, in wrapper
> ret = f(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line
> 92, in wrapper
> return func(inst, *args, **kwargs)
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 570, in
> attachDevice
> if ret == -1: raise libvirtError ('virDomainAttachDevice() failed',
> dom=self)
> libvirtError: internal error: unable to execute QEMU command 'device_add':
> Failed to get shared "write" lock
>
> here is libvirtd log in /var/log/messages
>
> libvirtd: 2018-08-05 05:51:38.637+: 4967: error :
> qemuMonitorJSONCheckError:389 : internal error: unable to execute QEMU
> command 'device_add': Failed to get shared "write" lock
>
> Do you guys have any idea of what going on ? How can i check this lock ?
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/6VWU3RCP4JEEGGQLMPV7XS4BBSTW72F5/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/VQMI34XQSMIZTWTE6IBH2NCGIKGTJD44/


[ovirt-users] Re: Failed to hot-plug disk

2018-08-04 Thread Punaatua PK
Hello Raz,

yes i saw this bug. But the problem doesn't seem to be the same. I search on 
google with qemu + write lock
but didn't find anything.

Do you know the command launch by this opération ? qemu-img ?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/2OUJ63JSQEZPWZ6X666TZQZQJ2DMGLXS/


[ovirt-users] Re: Failed to hot-plug disk

2018-08-04 Thread Raz Tamir
On Sun, Aug 5, 2018 at 9:47 AM, Punaatua PK  wrote:

> Hello Raz,
>
> yes i saw this bug. But the problem doesn't seem to be the same. I search
> on google with qemu + write lock
> but didn't find anything.
>
Take a look at this - https://bugs.launchpad.net/qemu/+bug/1740364


>
> Do you know the command launch by this opération ? qemu-img ?
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/2OUJ63JSQEZPWZ6X666TZQZQJ2DMGLXS/
>



-- 


Raz Tamir
Manager, RHV QE
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/SC4A73B6RW7WOQLT6IAGQ3FZKOKSR62Q/


[ovirt-users] Re: Failed to hot-plug disk

2018-08-07 Thread Elad Ben Aharon
We've opened a bug for that -
https://bugzilla.redhat.com/show_bug.cgi?id=1613282

On Sun, Aug 5, 2018 at 9:51 AM, Raz Tamir  wrote:

>
>
> On Sun, Aug 5, 2018 at 9:47 AM, Punaatua PK  wrote:
>
>> Hello Raz,
>>
>> yes i saw this bug. But the problem doesn't seem to be the same. I search
>> on google with qemu + write lock
>> but didn't find anything.
>>
> Take a look at this - https://bugs.launchpad.net/qemu/+bug/1740364
>
>
>>
>> Do you know the command launch by this opération ? qemu-img ?
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-le...@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/2OUJ63JSQEZPWZ6X666TZQZQJ2DMGLXS/
>>
>
>
>
> --
>
>
> Raz Tamir
> Manager, RHV QE
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/SC4A73B6RW7WOQLT6IAGQ3FZKOKSR62Q/
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/LFILMX37EUSRUEJYZDP6GUOJD2V4ROJ2/


[ovirt-users] Re: Failed to hot-plug disk

2018-08-07 Thread Michal Skrivanek


> On 7 Aug 2018, at 13:25, Elad Ben Aharon  wrote:
> 
> We've opened a bug for that - 
> https://bugzilla.redhat.com/show_bug.cgi?id=1613282 
> 

this bug tracks a different issue. I suggest to open a different one. Or, if 
that qemu-img -U is the suspect, wait for storage team feedback on that. Weve 
added that several months ago

Thanks,
michal

> 
> On Sun, Aug 5, 2018 at 9:51 AM, Raz Tamir  > wrote:
> 
> 
> On Sun, Aug 5, 2018 at 9:47 AM, Punaatua PK  > wrote:
> Hello Raz,
> 
> yes i saw this bug. But the problem doesn't seem to be the same. I search on 
> google with qemu + write lock
> but didn't find anything.
> Take a look at this - https://bugs.launchpad.net/qemu/+bug/1740364 
>  
> 
> Do you know the command launch by this opération ? qemu-img ?
> ___
> Users mailing list -- users@ovirt.org 
> To unsubscribe send an email to users-le...@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/2OUJ63JSQEZPWZ6X666TZQZQJ2DMGLXS/
>  
> 
> 
> 
> 
> -- 
> 
> 
> Raz Tamir
> Manager, RHV QE
> 
> ___
> Users mailing list -- users@ovirt.org 
> To unsubscribe send an email to users-le...@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/SC4A73B6RW7WOQLT6IAGQ3FZKOKSR62Q/
>  
> 
> 
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/LFILMX37EUSRUEJYZDP6GUOJD2V4ROJ2/

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/QN7F7AHX5VHJNMYT4H6OXAUDXWCTWRQO/