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. This reapplies a previously reverted fix, this time including the proper element-deps. Change-Id: I716b9e6f3c8d36c56749b7de0915e5a3d2eb1973 Closes-bug: #1336115
This commit is contained in:
parent
05d9189a30
commit
81ebbdce33
|
@ -2,3 +2,4 @@ nova-compute
|
||||||
os-apply-config
|
os-apply-config
|
||||||
os-refresh-config
|
os-refresh-config
|
||||||
os-svc-install
|
os-svc-install
|
||||||
|
use-ephemeral
|
||||||
|
|
|
@ -7,6 +7,8 @@ set -eux
|
||||||
rm -f /etc/libvirt/qemu/networks/autostart/default.xml
|
rm -f /etc/libvirt/qemu/networks/autostart/default.xml
|
||||||
rm -f /etc/libvirt/qemu/networks/default.xml
|
rm -f /etc/libvirt/qemu/networks/default.xml
|
||||||
|
|
||||||
|
register-state-path --leave-symlink /etc/libvirt/qemu
|
||||||
|
|
||||||
SCRIPTDIR=$(dirname $0)
|
SCRIPTDIR=$(dirname $0)
|
||||||
|
|
||||||
if [ -f /etc/sysconfig/libvirtd ]; then
|
if [ -f /etc/sysconfig/libvirtd ]; then
|
||||||
|
|
Loading…
Reference in New Issue