observer for sites, slices and users
diff --git a/planetstack/plstackapi-debug-server.py b/planetstack/plstackapi-debug-server.py
index 2ed2b28..a78cfe7 100644
--- a/planetstack/plstackapi-debug-server.py
+++ b/planetstack/plstackapi-debug-server.py
@@ -6,7 +6,7 @@
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
from planetstack.config import Config
from openstack.sliveragent import SliverAgent
-from openstack.siteagent import SiteAgent
+from openstack.observer import OpenStackObserver
if __name__ == '__main__':
@@ -16,14 +16,17 @@
url = "%s:%s" % (config.api_host, config.api_port)
args = [__file__, 'runserver', url]
- # run site agent once on startup
- SiteAgent().run()
# start the sliver agent thread
sliver_agent = SliverAgent()
sliver_agent_thread = threading.Thread(target=sliver_agent.run)
sliver_agent_thread.start()
+ # start the openstack observer
+ observer = OpenStackObserver()
+ observer_thread = threading.Thread(target=observer.run)
+ observer_thread.start()
+
# start the server
server = ManagementUtility(args)
server.execute()