summaryrefslogtreecommitdiffstats
path: root/nova/volume
diff options
context:
space:
mode:
authorJoshua McKenty <jmckenty@gmail.com>2010-06-24 04:11:55 +0100
committerandy <github@anarkystic.com>2010-06-24 04:11:55 +0100
commit8c535fae46a6944e1ca5fd8bb44db739befb0054 (patch)
tree28b1a2f1a73c9a763b96f08d403b59d9eb751cf7 /nova/volume
parent9526e1b3f14a7d9b8b2dcf7012e099a13e6fc80e (diff)
Adding missing default values and fixing bare Redis fetch for volume list.
Diffstat (limited to 'nova/volume')
-rw-r--r--nova/volume/storage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/volume/storage.py b/nova/volume/storage.py
index a409ec0db..1cf6b0343 100644
--- a/nova/volume/storage.py
+++ b/nova/volume/storage.py
@@ -165,9 +165,11 @@ class Volume(datastore.RedisModel):
vol['availability_zone'] = FLAGS.storage_availability_zone
vol["instance_id"] = 'none'
vol["mountpoint"] = 'none'
+ vol['attachTime'] = 'none'
vol["create_time"] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())
vol['status'] = "creating" # creating | available | in-use
vol['attachStatus'] = "detached" # attaching | attached | detaching | detached
+ vol['deleteOnTermination'] = 'False'
vol.save()
vol.create_lv()
vol.setup_export()