Hide Forgot
Description of problem: In the rebase to newer virNetServer, the libvirtd daemon accidentally lost its ability to react to SIGHUP as a clue to reload state. Version-Release number of selected component (if applicable): libvirt-0.9.4-2.el6 How reproducible: 100% Steps to Reproduce: 1. killall -SIGHUP libvirtd 2. 3. Actual results: no state reload Expected results: state reload should happen Additional info: See upstream bug report: https://www.redhat.com/archives/libvir-list/2011-August/msg00518.html regression introduced by upstream commit df0b57a95a.
Patch sent upstream: https://www.redhat.com/archives/libvir-list/2011-August/msg00561.html Daniel
Upstream commit 9e093f0b4cc5a5fc455a4893d73dc0f2c5355161 Daniel
Test result for libvirt-0.9.4-2.el6 # service libvirtd restart Stopping libvirtd daemon: [ OK ] Starting libvirtd daemon: [ OK ] # virsh list --all Id Name State ---------------------------------- - rhel6 shut off # kill -SIGHUP `pidof libvirtd` # ps aux|grep libvirtd # virsh list --all error: Failed to reconnect to the hypervisor error: no valid connection error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused # service libvirtd status libvirtd dead but pid file exists ============== Tested with libvirt-0.9.4-4.el6. # virsh list --all Id Name State ---------------------------------- - dom shut off # ls /var/run/libvirt/qemu/ dom.pid # ls /etc/libvirt/qemu dom.xml networks # cp dom-create.xml /etc/libvirt/qemu # kill -SIGHUP `pidof libvirtd` # virsh list --all Id Name State ---------------------------------- - dom shut off - dom-create shut off # ls /etc/libvirt/qemu dom-create.xml dom.xml networks ====== repeat the "kill -SIGHUP" # virsh list --all Id Name State ---------------------------------- - dom shut off - dom-create shut off - dom-create shut off start the dom-create # virsh start dom-create Domain dom-create started # virsh list --all Id Name State ---------------------------------- 2 dom-create running - dom shut off - dom-create running # ls /var/run/libvirt/qemu/ dom-create.pid dom-create.xml dom.pid # ls /etc/libvirt/qemu dom-create.xml dom.xml networks ====== repeat the "kill -SIGHUP" # virsh list --all Id Name State ---------------------------------- 2 dom-create running - dom shut off - dom-create running - dom-create running # ls /var/run/libvirt/qemu/ dom-create.pid dom-create.xml dom.pid # ls /etc/libvirt/qemu dom-create.xml dom.xml networks
> ====== > repeat the "kill -SIGHUP" > > # virsh list --all > Id Name State > ---------------------------------- > 2 dom-create running > - dom shut off > - dom-create running > - dom-create running > > # ls /var/run/libvirt/qemu/ > dom-create.pid dom-create.xml dom.pid > # ls /etc/libvirt/qemu > dom-create.xml dom.xml networks Please file a new bug for this, we have problem on virStateReload, regardless of whether the SIGHUP handling is supported or not.
Verified this bug as SIGHUP can reload the status now. File a new bug 730937 to track the issue in comment 5.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1513.html