Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created January 21, 2013 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hub-cap/4588322 to your computer and use it in GitHub Desktop.
Save hub-cap/4588322 to your computer and use it in GitHub Desktop.
if __name__ == '__main__':
flags.parse_args(sys.argv)
logging.setup("cinder")
utils.monkey_patch()
launcher = service.ProcessLauncher()
for backend in FLAGS.enabled_backends:
server = service.Service.create(binary='cinder-volume',
# service.Service tries to use topic name for the manager if its not sent down
manager=FLAGS.volume_manager,
topic='cinder-volume-%s' % backend)
launcher.launch_server(server)
launcher.wait()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment