From: Marco Yuen <marcoy@gmail.com>
Date: Wed, 22 Jun 2011 18:06:42 +0000 (-0400)
Subject: GENICLOUD-25
X-Git-Tag: sfa-1.0-28~10
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f1c3dc51bc554e480200d4a1f3868d1aded63d65;p=sfa.git

GENICLOUD-25

Start a thread that will poll Eucalyptus for instance data.
---

diff --git a/sfa/managers/aggregate_manager_eucalyptus.py b/sfa/managers/aggregate_manager_eucalyptus.py
index fdd299bd..26e5742e 100644
--- a/sfa/managers/aggregate_manager_eucalyptus.py
+++ b/sfa/managers/aggregate_manager_eucalyptus.py
@@ -158,6 +158,10 @@ def init_server():
     EucaInstance.createTable(ifNotExists=True)
     IP.createTable(ifNotExists=True)
 
+    # Start the update thread to keep track of the meta data
+    # about Eucalyptus instance.
+    Thread(target=updateMeta).start()
+
     # Make sure the schema exists.
     if not os.path.exists(EUCALYPTUS_RSPEC_SCHEMA):
         err = 'Cannot location schema at %s' % EUCALYPTUS_RSPEC_SCHEMA