Use the dedicated virtual IP for Nagios UI

Change-Id: I68b3ff1625e7165a9f4d0a2afdbb268d49ca871f
This commit is contained in:
Swann Croiset 2016-06-21 18:06:12 +02:00
parent 2b5dc4ccf7
commit 3551d601f5
2 changed files with 6 additions and 2 deletions

View File

@ -38,7 +38,11 @@ class InfraAlertingPluginApi(base_test.PluginApi):
self.settings.name, self.settings.version, options)
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):
logger.info("Check that the Nagios server is running")

View File

@ -17,7 +17,7 @@ from stacklight_tests import settings
name = 'lma_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
version = helpers.get_plugin_version(plugin_path)