Move libvirt's qemu configuration dir to state fs
We need libvirt domain entries created by Nova in to persist across image upgrades. Otherwise, instances are effectively removed from the hypervisor after a new image deploys with an empty libvirt config tree. This registers /etc/libvirt/qemu as a stateful path and ensures persistent domain configurations across upgrades. Change-Id: I419bb25069314c7e639f980b5c236711b2d58edc Closes-bug: #1336115
This commit is contained in:
parent
bf1f9c2d59
commit
455e35e8fc
|
@ -7,6 +7,8 @@ set -eux
|
|||
rm -f /etc/libvirt/qemu/networks/autostart/default.xml
|
||||
rm -f /etc/libvirt/qemu/networks/default.xml
|
||||
|
||||
register-state-path --leave-symlink /etc/libvirt/qemu
|
||||
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
|
||||
if [ -f /etc/sysconfig/libvirtd ]; then
|
||||
|
|
Loading…
Reference in New Issue