#when using heat to deploy an autoscaling group with os::aodh::alarm to trigger scaling aodh responds to heat with 503 no service available.
#from heat
Resource Create Failed: Clientexception: Resources.Cpu Alarm Low: <Html><Body><H1>503 Service Unavailable</H1> No Server Is Available To Handle This Request. </Body></Html> (Http 503)
#from heatengine.log
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource Traceback (most recent call last):
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/heat/engine/resource.py", line 831, in _action_reco
rder
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource yield
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/heat/engine/resource.py", line 939, in _do_action
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource yield self.action_handler_task(action, args=handler_args)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/heat/engine/scheduler.py", line 334, in wrapper
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource step = next(subtask)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/heat/engine/resource.py", line 884, in action_handler_task
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource handler_data = handler(*args)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/heat/engine/resources/openstack/aodh/alarm.py", line 178, in handle_create
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource alarm = self.client().alarm.create(props)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/aodhclient/v2/alarm.py", line 100, in create
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource data=jsonutils.dumps(alarm)).json()
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/aodhclient/v2/base.py", line 41, in _post
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource return self.client.api.post(*args, **kwargs)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 294, in post
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource return self.request(url, 'POST', **kwargs)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource File "/openstack/venvs/heat-16.0.6/lib/python2.7/site-packages/aodhclient/client.py", line 38, in request
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource raise exceptions.from_response(resp, url, method)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource ClientException: <html><body><h1>503 Service Unavailable</h1>
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource No server is available to handle this request.
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource </body></html>
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource (HTTP 503)
Feb 18 13:30:25 infra1-heat-engine-container-e9de764c heat-engine: 2018-02-18 13:30:23.738 361 ERROR heat.engine.resource
#aodh logs are mostly empty
#gnocchi logs don't call out any errors
#ceilometer agent notification log is ridden with these type of errors, polling logs seems fine:
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.122 393 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource instance-00000a25-32898cd2-ee2d-46ec-8984-2646e1c37b21
-tapab06918d-41: Resource type instance_network_interface does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance_network_interface does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.145 393 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource instance-000008ab-2e1a6fda-ac99-4714-9b5d-0077e8ae1188
-tap0b0000d1-1c: Resource type instance_network_interface does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance_network_interface does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.158 396 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource a0564f3b-d9fc-4710-99a7-052ed7f28896: Resource type instance does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.172 393 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource instance-000009dd-c44a3f24-41e9-4c91-816c-eb85d447553f-tap4b03c715-8a: Resource type instance_network_interface does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance_network_interface does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.190 396 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource 2e1a6fda-ac99-4714-9b5d-0077e8ae1188: Resource type instance does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.196 393 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource instance-000009e6-a0564f3b-d9fc-4710-99a7-052ed7f28896-tap782845d7-54: Resource type instance_network_interface does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance_network_interface does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.214 396 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource 32898cd2-ee2d-46ec-8984-2646e1c37b21: Resource type instance does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.225 393 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource instance-000009ef-f24de1f6-d176-4169-a38d-ff22240653eb-tapc44a28a4-84: Resource type instance_network_interface does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance_network_interface does not exist (HTTP 404)
Feb 18 13:34:33 infra1-ceilometer-central-container-276155f1 ceilometer-agent-notification: 2018-02-18 13:34:30.241 396 ERROR ceilometer.dispatcher.gnocchi [-] Error creating resource c44a3f24-41e9-4c91-816c-eb85d447553f: Resource type instance does not exist (HTTP 404): ResourceTypeNotFound: Resource type instance does not exist (HTTP 404)
#an example alarm from the template
cpu_alarm_high:
type: OS::Aodh::Alarm
properties:
meter_name: cpu_util
description: scale up if cpu is >70% for an entire minute
statistic: avg
period: 60
evaluation_periods: 1
threshold: 70
alarm_actions:
- {get_attr: [ scaleup_policy, alarm_url ] }
comparison_operator: gt
matching_metadata: { 'metadata.user_metadata.stack': { get_param: "OS::stack_id" } }
#other observations:
# gnocchi status
Unable to establish connection to http://localhost:8041/v1/status?details=False: HTTPConnectionPool(host='localhost', port=8041): Max retries exceeded with url: /v1/status?details=False (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2eec650>: Failed to establish a new connection: [Errno 111] Connection refused',))
# aodh alarm list
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
(HTTP 503)
(openstack) alarm list
Unable to establish connection to https://192.168.10.3:8042/v2/alarms: HTTPSConnectionPool(host='192.168.10.3', port=8042): Max retries exceeded with url: /v2/alarms (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))
(openstack) metric status
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
root@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
(HTTP 500)
#environments are deployed with: orchestration_hosts, metering-infra_hosts, metering-alarm_hosts,metrics_hosts, metering-compute_hosts as per some of the templates. nothing special.
Hey Gokhan, could you have a look at this, please? Thank you.