Use the dedicated virtual IP for Nagios UI
Change-Id: I68b3ff1625e7165a9f4d0a2afdbb268d49ca871f
This commit is contained in:
@@ -38,7 +38,11 @@ class InfraAlertingPluginApi(base_test.PluginApi):
|
|||||||
self.settings.name, self.settings.version, options)
|
self.settings.name, self.settings.version, options)
|
||||||
|
|
||||||
def get_plugin_vip(self):
|
def get_plugin_vip(self):
|
||||||
return self.helpers.get_plugin_vip(self.settings.vip_name)
|
try:
|
||||||
|
return self.helpers.get_plugin_vip(
|
||||||
|
'infrastructure_alerting_mgmt_vip')
|
||||||
|
except Exception:
|
||||||
|
return self.helpers.get_plugin_vip(self.settings.vip_name)
|
||||||
|
|
||||||
def check_plugin_online(self):
|
def check_plugin_online(self):
|
||||||
logger.info("Check that the Nagios server is running")
|
logger.info("Check that the Nagios server is running")
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ from stacklight_tests import settings
|
|||||||
|
|
||||||
name = 'lma_infrastructure_alerting'
|
name = 'lma_infrastructure_alerting'
|
||||||
role_name = ['infrastructure_alerting']
|
role_name = ['infrastructure_alerting']
|
||||||
vip_name = 'infrastructure_alerting_mgmt_vip'
|
vip_name = 'infrastructure_alerting_ui'
|
||||||
plugin_path = settings.LMA_INFRA_ALERTING_PLUGIN_PATH
|
plugin_path = settings.LMA_INFRA_ALERTING_PLUGIN_PATH
|
||||||
version = helpers.get_plugin_version(plugin_path)
|
version = helpers.get_plugin_version(plugin_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user