qemu.py: note risk of running out of space when saving child info
git-svn-id: https://svn.apache.org/repos/asf/incubator/tashi/trunk@1370612 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/tashi/nodemanager/vmcontrol/qemu.py b/src/tashi/nodemanager/vmcontrol/qemu.py
index 06ee0ee..0c1a5a8 100644
--- a/src/tashi/nodemanager/vmcontrol/qemu.py
+++ b/src/tashi/nodemanager/vmcontrol/qemu.py
@@ -396,6 +396,10 @@
return child
def __saveChildInfo(self, child):
+ # XXXstroucki: if the disk INFO_DIR is on is full,
+ # we may not be able to store our data. This can lead
+ # to VMs remaining running that the NM doesn't know about
+ # Can we do anything, or should be a task external to Tashi?
info = open(self.INFO_DIR + "/%d"%(child.pid), "w")
cPickle.dump((child.instance, child.pid, child.ptyFile), info)
info.close()