Esempio n. 1
0
 def start(self):
     servicegroup.setup(CONF, self.binary, self.tg)
     periodic.setup(CONF, self.tg)
     for endpoint in self.endpoints:
         self.tg.add_dynamic_timer(
             endpoint.run_periodic_tasks,
             periodic_interval_max=CONF.periodic_interval_max,
             context=context.get_admin_context(all_tenants=True))
     self._server.start()
Esempio n. 2
0
 def start(self):
     servicegroup.setup(CONF, self.binary, self.tg)
     for endpoint in self.endpoints:
         if hasattr(endpoint, 'init_containers'):
             endpoint.init_containers(
                 context.get_admin_context(all_projects=True))
         self.tg.add_dynamic_timer(
             endpoint.run_periodic_tasks,
             periodic_interval_max=CONF.periodic_interval_max,
             context=context.get_admin_context(all_projects=True))
     self._server.start()
Esempio n. 3
0
 def start(self):
     servicegroup.setup(CONF, self.binary, self.tg)
     periodic.setup(CONF, self.tg)
     for endpoint in self.endpoints:
         if isinstance(endpoint, compute_manager.Manager):
             endpoint.init_containers(
                 context.get_admin_context(all_tenants=True))
         self.tg.add_dynamic_timer(
             endpoint.run_periodic_tasks,
             periodic_interval_max=CONF.periodic_interval_max,
             context=context.get_admin_context(all_tenants=True))
     self._server.start()
Esempio n. 4
0
 def start(self):
     servicegroup.setup(CONF, self.binary, self.tg)
     for endpoint in self.endpoints:
         if hasattr(endpoint, 'init_containers'):
             endpoint.init_containers(
                 context.get_admin_context(all_projects=True))
         self.tg.add_dynamic_timer(
             endpoint.run_periodic_tasks,
             periodic_interval_max=CONF.periodic_interval_max,
             context=context.get_admin_context(all_projects=True)
         )
     self._server.start()
Esempio n. 5
0
 def start(self):
     servicegroup.setup(CONF, self.binary, self.tg)
     periodic.setup(CONF, self.tg)
     self._server.start()