Esempio n. 1
0
 def _report_state(self):
     try:
         self.agent_state.get('configurations').update(
             self.cache.get_state())
         ctx = context.get_admin_context_without_session()
         self.state_rpc.report_state(ctx, self.agent_state, self.use_call)
     except AttributeError:
         # This means the server does not support report_state
         LOG.warn(_("VNF server does not support state report."
                    " State report for this agent will be disabled."))
         self.heartbeat.stop()
         return
     except Exception:
         LOG.exception(_("Failed reporting state!"))
         return
Esempio n. 2
0
 def __init__(self, host=None):
     super(VNFManager, self).__init__(host=host)
     self.vplugin_rpc = VNFPluginCallbacks(topics.PLUGIN, cfg.CONF.host)
     self.needs_resync_reasons = []
     self.drv_conf = dict()
     self.conf = cfg.CONF
     self.ctx = context.get_admin_context_without_session()
     self.ns_config = dict()
     self.nsd_id = self.conf.vnfm_conf_d['service']['nsd_id']
     self._condition = threading.Condition()
     monitor_daemon = threading.Thread(target=self.monitor_thread_pool)
     monitor_daemon.setDaemon(True)
     LOG.warn(_("Waiter Daemon Starting"))
     self.configure_vdus(self.ctx, self.conf.vnfm_conf_d)
     monitor_daemon.start()
Esempio n. 3
0
 def __init__(self, host=None):
     super(VNFManager, self).__init__(host=host)
     self.vplugin_rpc = VNFPluginCallbacks(topics.PLUGIN,
                                            cfg.CONF.host)
     self.needs_resync_reasons = []
     self.conf = cfg.CONF
     self.ctx = context.get_admin_context_without_session()
     self.ns_config = self.conf.vnfm_conf_d['service']
     self.drv_conf = self._extract_drivers()
     self.launched_devs = list()
     self._condition = threading.Condition()
     monitor_daemon = threading.Thread(target=self.monitor_thread_pool)
     monitor_daemon.setDaemon(True)
     LOG.warn(_("Waiter Daemon Starting"))
     self.configure_vdus(self.ctx)
     monitor_daemon.start()
Esempio n. 4
0
 def _report_state(self):
     try:
         self.agent_state.get('configurations').update(
             self.cache.get_state())
         ctx = context.get_admin_context_without_session()
         self.state_rpc.report_state(ctx, self.agent_state, self.use_call)
     except AttributeError:
         # This means the server does not support report_state
         LOG.warn(
             _("VNF server does not support state report."
               " State report for this agent will be disabled."))
         self.heartbeat.stop()
         return
     except Exception:
         LOG.exception(_("Failed reporting state!"))
         return
Esempio n. 5
0
 def __init__(self, host=None):
     super(VNFManager, self).__init__(host=host)
     self.vplugin_rpc = VNFPluginCallbacks(topics.PLUGIN,
                                            cfg.CONF.host)
     self.needs_resync_reasons = []
     self.drv_conf = dict()
     self.conf = cfg.CONF
     self.ctx = context.get_admin_context_without_session()
     self.ns_config = dict()
     self.nsd_id = self.conf.vnfm_conf_d['service']['nsd_id']
     #self.ns_config['fg'] = self.conf.vnfm_conf_d['service']['fg']
     self.monitor = self.conf.vnfm_conf_d['service']['monitor']
     self._extract_monitor_drv()
     self.timer_started = False
     self._condition = threading.Condition()
     monitor_daemon = threading.Thread(target=self.monitor_thread_pool)
     monitor_daemon.setDaemon(True)
     LOG.warn(_("Waiter Daemon Starting"))
     self.configure_vdus(self.ctx, self.conf.vnfm_conf_d)
     monitor_daemon.start()