Permalink
Browse files

Fixed init scripts. No more " Error: operation failed: cannot restore…

… domain 'instance-00000001' uuid from a file which belongs to domain 'instance-00000001'
  • Loading branch information...
1 parent ddf3729 commit 4c89c2ee8af48028f8cf891b9be00bcd210315e4 @vasichkin vasichkin committed Aug 23, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 cleanup.sh
  2. +1 −0 tests/helpers
View
@@ -19,6 +19,7 @@ mysqladmin -uroot -p$PWD create nova
nova-manage db sync
rm -f /var/log/nova/nova*log*
rm -fr /var/lib/nova/instances/* /var/lib/nova/images/*
+rm -rf /var/lib/libvirt/qemu/save/*
for h in $HOSTS localhost; do
echo "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'$h' IDENTIFIED BY '$DB_PASS';" | mysql -uroot -p$DB_PASS mysql
View
@@ -59,6 +59,7 @@ nova_cleanup () {
ssh_helper "$host" "rm -fr /var/lib/nova/instances/* /var/lib/nova/images/* /var/lib/nova/buckets/* /var/log/nova/*.log* /var/lib/nova/tmp/nova-ensure_bridge.lock.lock /var/lib/nova/tmp/nova-iptables.lock.lock"
ssh_helper "$host" "rm -fr /tmp/tmp*"
ssh_helper "$host" "rm -fr /etc/libvirt/nwfilter/nova-*.xml"
+ ssh_helper "$host" "rm -fr /var/lib/libvirt/qemu/save/*"
done
}

0 comments on commit 4c89c2e

Please sign in to comment.