summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Day <eday@oddments.org>2010-08-30 06:23:17 +0000
committerTarmac <>2010-08-30 06:23:17 +0000
commit5f14a7955b9ef90afed91bda0343130d83e15a73 (patch)
tree9b23311ba976cf05e8fcef635bf0872ed4ce92d1
parent75eaa1b8f871753b9bd61c2ccd93efd813d651f9 (diff)
parent47e98cdae2a6233cb475c34207758a29c0ef7a4c (diff)
Dead code removal.
-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 6f9f906dd..2bca36f7e 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -169,7 +169,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()