From 1eeb585f747b9870b82b5f93457ab551ca2df0d4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 27 Mar 2023 14:27:55 -0700 Subject: [PATCH] vhost_reboot: adjust libvirt pid to libvirt socket On newer libvirt there's no pid file, instead there's a socket that listens and then the service is started. So, check that the socket is there instead of looking for a broken pid file. Signed-off-by: Kevin Fenzi --- playbooks/vhost_reboot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 49e1d39394..32af6f2f6d 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -95,7 +95,7 @@ reboot: - name: wait for libvirtd to come back on the virthost - wait_for: path=/var/run/libvirtd.pid state=present + wait_for: path=/run/libvirtd-sock state=present - name: look up vmlist virt: command=list_vms