Created Bootstrapper to handle Nova bootstrapping logic.

This commit is contained in:
Brian Lamar
2011-06-23 21:31:00 -04:00
parent 324efdc71b
commit d3648e45ea

View File

@@ -25,17 +25,18 @@ Starts both the EC2 and OpenStack APIs in separate processes.
import sys
import nova.log
import nova.service
import nova.utils
def main():
"""Launch EC2 and OSAPI services."""
launcher = nova.service.Launcher(sys.argv)
nova.utils.Bootstrapper.bootstrap_binary(sys.argv)
ec2 = nova.service.WSGIService("ec2")
osapi = nova.service.WSGIService("osapi")
launcher = nova.service.Launcher()
launcher.launch_service(ec2)
launcher.launch_service(osapi)