Ensure RAX's nova-agent is stopped in ironic job

Need to be more diligent when working around the libvirt bug
and ensure Rackspace's nova-agent is really stopped so that
/proc/xen can be unmounted.  The nova-agent init script apparently
does a poor job of this.

Change-Id: Ib906fb035d7820be9514a136b161fd71999a795b
This commit is contained in:
Adam Gandelman 2014-03-18 10:33:48 -07:00
parent ac849407fa
commit 97dc591bad

View File

@ -445,6 +445,7 @@
# work around bug in libvirt-bin on rax nodes, pending fixes to bug:
# https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1248025
sudo service nova-agent stop || echo ''
sudo pkill -9 nova-agent || echo ''
sudo service xe-linux-distribution stop || echo ''
if [ -e /proc/xen ] ; then
sudo umount /proc/xen