From 8ee87b2ab76e5099a020cbc13b16c8111f15682c Mon Sep 17 00:00:00 2001 From: Peter Piela Date: Wed, 6 Jul 2016 09:32:34 -0400 Subject: [PATCH] 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 --- monasca_setup/detection/plugins/ironic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monasca_setup/detection/plugins/ironic.py b/monasca_setup/detection/plugins/ironic.py index c77d4ea5..9cf29003 100644 --- a/monasca_setup/detection/plugins/ironic.py +++ b/monasca_setup/detection/plugins/ironic.py @@ -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)