Example #1
0
 def _check_services_requirements(self):
     try:
         error = None
         nsx_svc.check_services_requirements(self.cluster)
     except nsx_exc.InvalidVersion:
         error = _("Unable to run Neutron with config option '%s', as NSX "
                   "does not support it") % cfg.CONF.NSX.agent_mode
     except nsx_exc.ServiceClusterUnavailable:
         error = _("Unmet dependency for config option "
                   "'%s'") % cfg.CONF.NSX.agent_mode
     if error:
         LOG.exception(error)
         raise nsx_exc.NsxPluginException(err_msg=error)
Example #2
0
 def _check_services_requirements(self):
     try:
         error = None
         nsx_svc.check_services_requirements(self.cluster)
     except nsx_exc.InvalidVersion:
         error = _("Unable to run Neutron with config option '%s', as NSX "
                   "does not support it") % cfg.CONF.NSX.agent_mode
     except nsx_exc.ServiceClusterUnavailable:
         error = _("Unmet dependency for config option "
                   "'%s'") % cfg.CONF.NSX.agent_mode
     if error:
         LOG.exception(error)
         raise nsx_exc.NsxPluginException(err_msg=error)