From 8c535fae46a6944e1ca5fd8bb44db739befb0054 Mon Sep 17 00:00:00 2001 From: Joshua McKenty Date: Thu, 24 Jun 2010 04:11:55 +0100 Subject: Adding missing default values and fixing bare Redis fetch for volume list. --- nova/volume/storage.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/volume') 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() -- cgit