summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2012-06-29 09:35:02 -0700
committerDan Smith <danms@us.ibm.com>2012-07-02 09:14:38 -0700
commit540f28ea10684e2ff473f5efce0088d12d827af1 (patch)
tree3407592f35eee7335f42b080f16995fbc4756cfb /nova/tests
parentc2853c48166cb8d0f1d7b4307c96bba27345419c (diff)
Redefine the domain's XML on volume attach/detach
This fixes bug 1004791 by adding new disk definitions to the defined XML instead of just modifying the running instance. Change-Id: I6596dae7c54158c32bc7b399c55a1797b2d98242
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/fakelibvirt.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/fakelibvirt.py b/nova/tests/fakelibvirt.py
index 4350a8878..369b468b8 100644
--- a/nova/tests/fakelibvirt.py
+++ b/nova/tests/fakelibvirt.py
@@ -68,6 +68,8 @@ VIR_DOMAIN_SHUTDOWN = 4
VIR_DOMAIN_SHUTOFF = 5
VIR_DOMAIN_CRASHED = 6
+VIR_DOMAIN_XML_SECURE = 1
+
VIR_CPU_COMPARE_ERROR = -1
VIR_CPU_COMPARE_INCOMPATIBLE = 0
VIR_CPU_COMPARE_IDENTICAL = 1