summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Day <eday@oddments.org>2010-08-18 18:25:16 -0700
committerEric Day <eday@oddments.org>2010-08-18 18:25:16 -0700
commit47e98cdae2a6233cb475c34207758a29c0ef7a4c (patch)
tree82e83fb3d52735d9bc5e135212e0c92e670d0eec
parent663667cdcf1bd16be33dc9b993123b7fc566caed (diff)
downloadnova-47e98cdae2a6233cb475c34207758a29c0ef7a4c.tar.gz
nova-47e98cdae2a6233cb475c34207758a29c0ef7a4c.tar.xz
nova-47e98cdae2a6233cb475c34207758a29c0ef7a4c.zip
Removed old cloud_topic queue setup, it is no longer used.
-rwxr-xr-xbin/nova-api8
-rw-r--r--nova/endpoint/cloud.py1
-rw-r--r--nova/flags.py1
-rw-r--r--nova/tests/cloud_unittest.py4
4 files changed, 0 insertions, 14 deletions
diff --git a/bin/nova-api b/bin/nova-api
index 13baf22a7..a3ad5a0e1 100755
--- a/bin/nova-api
+++ b/bin/nova-api
@@ -26,7 +26,6 @@ from tornado import httpserver
from tornado import ioloop
from nova import flags
-from nova import rpc
from nova import server
from nova import utils
from nova.endpoint import admin
@@ -43,14 +42,7 @@ def main(_argv):
'Admin': admin.AdminController()}
_app = api.APIServerApplication(controllers)
- conn = rpc.Connection.instance()
- consumer = rpc.AdapterConsumer(connection=conn,
- topic=FLAGS.cloud_topic,
- proxy=controllers['Cloud'])
-
io_inst = ioloop.IOLoop.instance()
- _injected = consumer.attach_to_tornado(io_inst)
-
http_server = httpserver.HTTPServer(_app)
http_server.listen(FLAGS.cc_port)
logging.debug('Started HTTP server on %s', FLAGS.cc_port)
diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py
index 30634429d..8e2beb1e3 100644
--- a/nova/endpoint/cloud.py
+++ b/nova/endpoint/cloud.py
@@ -45,7 +45,6 @@ from nova.volume import service
FLAGS = flags.FLAGS
-flags.DEFINE_string('cloud_topic', 'cloud', 'the topic clouds listen on')
def _gen_key(user_id, key_name):
diff --git a/nova/flags.py b/nova/flags.py
index e3feb252d..f46017f77 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -168,7 +168,6 @@ def DECLARE(name, module_string, flag_values=FLAGS):
DEFINE_string('connection_type', 'libvirt', 'libvirt, xenapi or fake')
DEFINE_integer('s3_port', 3333, 's3 port')
DEFINE_string('s3_host', '127.0.0.1', 's3 host')
-#DEFINE_string('cloud_topic', 'cloud', 'the topic clouds listen on')
DEFINE_string('compute_topic', 'compute', 'the topic compute nodes listen on')
DEFINE_string('volume_topic', 'volume', 'the topic volume nodes listen on')
DEFINE_string('network_topic', 'network', 'the topic network nodes listen on')
diff --git a/nova/tests/cloud_unittest.py b/nova/tests/cloud_unittest.py
index 3501771cc..900ff5a97 100644
--- a/nova/tests/cloud_unittest.py
+++ b/nova/tests/cloud_unittest.py
@@ -47,10 +47,6 @@ class CloudTestCase(test.BaseTestCase):
# set up our cloud
self.cloud = cloud.CloudController()
- self.cloud_consumer = rpc.AdapterConsumer(connection=self.conn,
- topic=FLAGS.cloud_topic,
- proxy=self.cloud)
- self.injected.append(self.cloud_consumer.attach_to_tornado(self.ioloop))
# set up a service
self.compute = service.ComputeService()