Fixed search pattern in Ironic detection plugin

The original pattern .*200 OK.* does not match the output from the specified
ironic-api url, and exanple of which is shown below. The .*v1.* seems like
a better choice, and is consistent with other plugins.

{"default_version": {"id": "v1", "links": [{"href":
"http://localhost:6385/v1/","rel": "self"}]}, "versions": [{"id": "v1",
"links": [{"href": "http://localhost:6385/v1/", "rel": "self"}]}],
"name": "OpenStack Ironic API", "description":
"Ironic is an OpenStack project which aims to provision baremetal machines."}

Change-Id: I2b44253705d7f8240b2962070893588152ef3257
This commit is contained in:
Peter Piela 2016-07-06 09:32:34 -04:00
parent 872fe374bd
commit 8ee87b2ab7
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Ironic(monasca_setup.detection.ServicePlugin):
'service_name': 'baremetal',
'process_names': ['ironic-api', 'ironic-conductor'],
'service_api_url': "http://localhost:6385",
'search_pattern': '.*200 OK.*',
'search_pattern': '.*v1.*',
}
super(Ironic, self).__init__(service_params)