[ovirt-users] Re: Localdisk hook not working

2020-06-30 Thread Nir Soffer
On Tue, Jun 30, 2020 at 11:02 AM tim-nospam--- via Users
 wrote:
>
> Hi,
>
> I'd like to use the localdisk hook of vdsm and have configured everything 
> according to the readme: 
> https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/localdisk
> After installing the hook, configuring the ovirt-engine, creating the volume 
> group, adding the custom property 'localdisk' to the virtual machine and 
> fixing a small bug in the localdisk-helper,

What was the bug and how it was fixed?

> vdsm creates the logical volume on the 'ovirt-local' volume group after 
> starting the virtual machine. Unfortunately nothing more seems to happen 
> then. There is no activity on the NAS which would indicate that the disk 
> image is pulled to the host. I can also see no errors on the host.
>
> Is anyone currently running ovirt 4.4 with the localdisk hook?

I hope that nobody use this.

> What else can I do to find out why the image is not being copied to my host?

You should have logs from the hook in vdsm log.

The localdisk hook was a temporary solution and it is not recommended.
I don't think anyone is testing this code and it is likely to be broken.

We don't have a replacement with the same features, using logical volumes
on a local disk (e.g. fast ssd), but if you want to attach the entire
device to vm,
it should be possible to do this without any hacks in 4.4.

The main issue with the localdisk hooks is that engine does not understand
what the hook is doing, and the changes made by the hooks behind engine
back can cause lot of breakage. Any storage operation on the disks used
for the local disk may fail or cause trouble.

Nir
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/RIIA6Z4QFED6CV2T7C65OYBE7PFQENNW/


[ovirt-users] Re: Localdisk hook not working

2020-06-30 Thread tim-nospam--- via Users
After two minutes there is the following error messages in the vdsm.log:

=
2020-06-30 11:42:08,420+0200 ERROR (qgapoller/2) [virt.periodic.Operation] 
> 
operation failed (periodic:188)
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/virt/periodic.py", line 186, in 
__call__
self._func()
  File "/usr/lib/python3.6/site-packages/vdsm/virt/qemuguestagent.py", line 
324, in _poller
self._qga_capability_check(vm_obj)
  File "/usr/lib/python3.6/site-packages/vdsm/virt/qemuguestagent.py", line 
553, in _qga_capability_check
ret = self.call_qga_command(vm, _QEMU_GUEST_INFO_COMMAND)
  File "/usr/lib/python3.6/site-packages/vdsm/virt/qemuguestagent.py", line 
273, in call_qga_command
ret = vm.qemu_agent_command(cmd, _COMMAND_TIMEOUT, 0)
  File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 5607, in 
qemu_agent_command
self._dom, command, timeout, flags)
  File "/usr/lib64/python3.6/site-packages/libvirt_qemu.py", line 39, in 
qemuAgentCommand
ret = libvirtmod_qemu.virDomainQemuAgentCommand(domain._o, cmd, timeout, 
flags)
  File "/usr/lib/python3.6/site-packages/vdsm/virt/virdomain.py", line 50, in 
__getattr__
% self.vmid)
vdsm.virt.virdomain.NotConnectedError: VM 
'6efd279a-e9bb-41b9-b805-7b6b15accc3c' was not defined yet or was undefined
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/XYMKVR375ZI2VAIAKAUVT5SQW36R5DGE/