summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-26 21:47:29 +0000
committerGerrit Code Review <review@openstack.org>2012-10-26 21:47:29 +0000
commit9d3c2083c5d1db383f250acd7f34dc359d04baff (patch)
tree6835ba38b199e2878a75be74960ae58217d1790c /bin
parent6a10cfc111c079ce4d91ce044de72c65945d437f (diff)
parent0bf28bec6097d128aa439b288b249fafcac7dbc0 (diff)
downloadnova-9d3c2083c5d1db383f250acd7f34dc359d04baff.tar.gz
nova-9d3c2083c5d1db383f250acd7f34dc359d04baff.tar.xz
nova-9d3c2083c5d1db383f250acd7f34dc359d04baff.zip
Merge "Fix hardcoded topic strings with constants."
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-cert3
-rwxr-xr-xbin/nova-compute4
-rwxr-xr-xbin/nova-console4
-rwxr-xr-xbin/nova-consoleauth5
-rwxr-xr-xbin/nova-network4
-rwxr-xr-xbin/nova-scheduler4
-rwxr-xr-xbin/nova-volume4
7 files changed, 20 insertions, 8 deletions
diff --git a/bin/nova-cert b/bin/nova-cert
index 81189492a..ebdd0e0b9 100755
--- a/bin/nova-cert
+++ b/bin/nova-cert
@@ -39,8 +39,9 @@ from nova import utils
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
utils.monkey_patch()
- server = service.Service.create(binary='nova-cert')
+ server = service.Service.create(binary='nova-cert', topic=FLAGS.cert_topic)
service.serve(server)
service.wait()
diff --git a/bin/nova-compute b/bin/nova-compute
index 0a8432b1e..2a2a0013a 100755
--- a/bin/nova-compute
+++ b/bin/nova-compute
@@ -41,8 +41,10 @@ from nova import utils
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup('nova')
utils.monkey_patch()
- server = service.Service.create(binary='nova-compute')
+ server = service.Service.create(binary='nova-compute',
+ topic=FLAGS.compute_topic)
service.serve(server)
service.wait()
diff --git a/bin/nova-console b/bin/nova-console
index 97b152930..f664040b7 100755
--- a/bin/nova-console
+++ b/bin/nova-console
@@ -39,7 +39,9 @@ from nova import service
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
- server = service.Service.create(binary='nova-console')
+ server = service.Service.create(binary='nova-console',
+ topic=FLAGS.console_topic)
service.serve(server)
service.wait()
diff --git a/bin/nova-consoleauth b/bin/nova-consoleauth
index f8277daf6..58ecd37b3 100755
--- a/bin/nova-consoleauth
+++ b/bin/nova-consoleauth
@@ -39,8 +39,9 @@ from nova import service
if __name__ == "__main__":
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
-
- server = service.Service.create(binary='nova-consoleauth')
+ server = service.Service.create(binary='nova-consoleauth',
+ topic=FLAGS.consoleauth_topic)
service.serve(server)
service.wait()
diff --git a/bin/nova-network b/bin/nova-network
index ca9a97551..36343bb73 100755
--- a/bin/nova-network
+++ b/bin/nova-network
@@ -41,8 +41,10 @@ from nova import utils
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
utils.monkey_patch()
- server = service.Service.create(binary='nova-network')
+ server = service.Service.create(binary='nova-network',
+ topic=FLAGS.network_topic)
service.serve(server)
service.wait()
diff --git a/bin/nova-scheduler b/bin/nova-scheduler
index e100156df..64dadb9e4 100755
--- a/bin/nova-scheduler
+++ b/bin/nova-scheduler
@@ -43,8 +43,10 @@ from nova import utils
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
utils.monkey_patch()
- server = service.Service.create(binary='nova-scheduler')
+ server = service.Service.create(binary='nova-scheduler',
+ topic=FLAGS.scheduler_topic)
service.serve(server)
service.wait()
diff --git a/bin/nova-volume b/bin/nova-volume
index 2c10c99f5..602b332b7 100755
--- a/bin/nova-volume
+++ b/bin/nova-volume
@@ -41,8 +41,10 @@ from nova import utils
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
utils.monkey_patch()
- server = service.Service.create(binary='nova-volume')
+ server = service.Service.create(binary='nova-volume',
+ topic=FLAGS.volume_topic)
service.serve(server)
service.wait()