[Ovirt 4.3] Guest agent issue

Hi to all! I can't use the after _xxxxxx hook of the guest agent (version: 1.0.16-1.el7) installed in a centos 7 machine, , this machine was in a old ovirt cluster(4.2), where the hooks were started without problem. I'm trying also with a new machine with centos 7 but nothing. The before_xxxx hooks are started well. This is the ovirt-guest-agent.log: MainThread::INFO::2019-06-18 13:15:11,192::ovirt-guest-agent::59::root::Starting oVirt guest agent Dummy-2::INFO::2019-06-18 13:15:11,326::OVirtAgentLogic::322::root::Received an external command: refresh... Dummy-2::INFO::2019-06-18 13:15:20,990::OVirtAgentLogic::322::root::Received an external command: api-version... Dummy-2::INFO::2019-06-18 13:15:20,990::OVirtAgentLogic::118::root::API Version updated from 0 to 3 Dummy-2::INFO::2019-06-18 13:17:05,391::OVirtAgentLogic::322::root::Received an external command: lifecycle-event... Dummy-2::INFO::2019-06-18 13:17:05,440::hooks::64::Hooks::Hook(before_migration) "/etc/ovirt-guest-agent/hooks.d/before_migration/55_flush-caches" executed Dummy-2::INFO::2019-06-18 13:17:24,329::OVirtAgentLogic::322::root::Received an external command: refresh... Dummy-2::INFO::2019-06-18 13:18:24,605::OVirtAgentLogic::322::root::Received an external command: api-version... as you can see, the after_migration hook is not fired and it seem that the lifecycle-event for the after_migrate is not dispatched. The hook script is: -rwxrwxrwx. 1 root root 34 Jun 14 12:48 01_example in /etc/ovirt-guest-agent/hooks.d/after_migration the content is: #!/bin/bash sudo touch /tmp/example If i put this script in a before_xxx folder it will run without problem. Both vdsm and supervdsm log seems fine. (also in debug level) The xml file of the machine contain contain the virt-io-serial ............... <channel type="unix"> <source mode="bind" path="/var/lib/libvirt/qemu/channels/27f3d4d0-f3d2-41bf-a8da-e6e75aad51f6.ovirt-guest-agent.0"/> <target name="ovirt-guest-agent.0" state="connected" type="virtio"/> <alias name="channel0"/> <address bus="0" controller="0" port="1" type="virtio-serial"/> </channel> <channel type="unix"> <source mode="bind" path="/var/lib/libvirt/qemu/channels/27f3d4d0-f3d2-41bf-a8da-e6e75aad51f6.org.qemu.guest_agent.0"/> <target name="org.qemu.guest_agent.0" state="connected" type="virtio"/> <alias name="channel1"/> <address bus="0" controller="0" port="2" type="virtio-serial"/> .......... Someone know where can i take a look to solve this problem? Thank you
participants (1)
-
s.natoli@siinfo.eu