summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Short <zulcss@ubuntu.com>2011-03-15 08:05:45 -0400
committerChuck Short <zulcss@ubuntu.com>2011-03-15 08:05:45 -0400
commitf60c9d0da8171b09bd7971fea52e9e032f98a143 (patch)
tree8a7f5133e5b3813d6fce236ca75caecce664c5d8
parent48d3dd7f9d2633d8955080b6dccc7c97bc8ef7c3 (diff)
Add comments about the destroy container function
-rw-r--r--nova/virt/disk.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/virt/disk.py b/nova/virt/disk.py
index 2c0460f39..dd4352957 100644
--- a/nova/virt/disk.py
+++ b/nova/virt/disk.py
@@ -129,7 +129,11 @@ def setup_container(image, container_dir=None, partition=None, nbd=False):
_unlink_device(device, nbd)
def destroy_container(target, instance, nbd=False):
- """Destroy the container once it terminates"""
+ """Destroy the container once it terminates
+
+ It will umount the container that is mounted, try to find the loopback
+ device associated with the container and delete it.
+ """
try:
container_dir = '%s/rootfs' % target
utils.execute('sudo', 'umount', container_dir)