Beispiel #1
0
 def setUp(self):
     super(TestManager, self).setUp()
     zun.conf.CONF.set_override(
         'container_driver',
         'zun.tests.unit.container.fake_driver.FakeDriver')
     self.compute_manager = manager.Manager()
     self.compute_manager._resource_tracker = FakeResourceTracker()
Beispiel #2
0
def main():
    zun_service.prepare_service(sys.argv)

    LOG.info('Starting server in PID %s', os.getpid())
    CONF.log_opt_values(LOG, logging.DEBUG)

    CONF.import_opt('topic', 'zun.conf.compute', group='compute')

    endpoints = [
        compute_manager.Manager(),
    ]

    server = rpc_service.Service.create(CONF.compute.topic,
                                        CONF.host,
                                        endpoints,
                                        binary='zun-compute')
    launcher = service.launch(CONF, server)
    launcher.wait()
Beispiel #3
0
def main():
    priv_context.init(root_helper=shlex.split(utils.get_root_helper()))
    zun_service.prepare_service(sys.argv)

    LOG.info('Starting server in PID %s', os.getpid())
    CONF.log_opt_values(LOG, logging.DEBUG)

    CONF.import_opt('topic', 'zun.conf.compute', group='compute')

    from zun.compute import manager as compute_manager
    endpoints = [
        compute_manager.Manager(),
    ]

    server = rpc_service.Service.create(CONF.compute.topic,
                                        CONF.host,
                                        endpoints,
                                        binary='zun-compute')
    launcher = service.launch(CONF, server, restart_method='mutate')
    launcher.wait()