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:
Adam Gandelman 2014-07-16 11:13:36 -07:00
parent 05d9189a30
commit 81ebbdce33
2 changed files with 3 additions and 0 deletions

View File

@ -2,3 +2,4 @@ nova-compute
os-apply-config
os-refresh-config
os-svc-install
use-ephemeral

View File

@ -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