2020-06-10 04:47:05 INFO juju-log identity-notifications:313: Invoking reactive handler: reactive/openstack_service_checks.py:190:configure_nrpe_endpoints
2020-06-10 04:47:06 ERROR juju-log identity-notifications:313: Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-openstack-service-checks-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-openstack-service-checks-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-openstack-service-checks-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-openstack-service-checks-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-openstack-service-checks-0/charm/reactive/openstack_service_checks.py", line 207, in configure_nrpe_endpoints
helper.create_endpoint_checks(creds)
File "lib/lib_openstack_service_checks.py", line 272, in create_endpoint_checks
endpoints = self.keystone_endpoints
File "lib/lib_openstack_service_checks.py", line 363, in keystone_endpoints
return self._keystone_client.endpoints.list()
File "/usr/lib/python3/dist-packages/keystoneclient/v3/endpoints.py", line 125, in list
**kwargs)
File "/usr/lib/python3/dist-packages/keystoneclient/base.py", line 75, in func
return f(*args, **new_kwargs)
File "/usr/lib/python3/dist-packages/keystoneclient/base.py", line 397, in list
self.collection_key)
File "/usr/lib/python3/dist-packages/keystoneclient/base.py", line 125, in _list
resp, body = self.client.get(url, **kwargs)
File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 304, in get
return self.request(url, 'GET', **kwargs)
File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 463, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 189, in request
return self.session.request(url, method, **kwargs)
File "/usr/lib/python3/dist-packages/keystoneclient/session.py", line 343, in request
auth_headers = self.get_auth_headers(auth)
File "/usr/lib/python3/dist-packages/keystoneclient/session.py", line 660, in get_auth_headers
return auth.get_headers(self, **kwargs)
File "/usr/lib/python3/dist-packages/keystoneclient/auth/base.py", line 159, in get_headers
token = self.get_token(session)
File "/usr/lib/python3/dist-packages/keystoneclient/auth/identity/base.py", line 206, in get_token
return self.get_access(session).auth_token
File "/usr/lib/python3/dist-packages/keystoneclient/auth/identity/base.py", line 252, in get_access
self.auth_ref = self.get_auth_ref(session)
File "/usr/lib/python3/dist-packages/keystoneclient/auth/identity/v3/base.py", line 189, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/usr/lib/python3/dist-packages/keystoneclient/session.py", line 543, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python3/dist-packages/keystoneclient/session.py", line 443, in request
raise exceptions.from_response(resp, method, url)
keystoneauth1.exceptions.http.BadRequest: Bad Request (HTTP 400)
2020-06-10 04:47:05 INFO juju-log identity- notifications: 313: Invoking reactive handler: reactive/ openstack_ service_ checks. py:190: configure_ nrpe_endpoints notifications: 313: Hook error: juju/agents/ unit-openstack- service- checks- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ __init_ _.py", line 74, in main dispatch( restricted= restricted_ mode) juju/agents/ unit-openstack- service- checks- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 390, in dispatch other_handlers) juju/agents/ unit-openstack- service- checks- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 359, in _invoke invoke( ) juju/agents/ unit-openstack- service- checks- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 181, in invoke _action( *args) juju/agents/ unit-openstack- service- checks- 0/charm/ reactive/ openstack_ service_ checks. py", line 207, in configure_ nrpe_endpoints create_ endpoint_ checks( creds) openstack_ service_ checks. py", line 272, in create_ endpoint_ checks endpoints openstack_ service_ checks. py", line 363, in keystone_endpoints client. endpoints. list() python3/ dist-packages/ keystoneclient/ v3/endpoints. py", line 125, in list python3/ dist-packages/ keystoneclient/ base.py" , line 75, in func python3/ dist-packages/ keystoneclient/ base.py" , line 397, in list collection_ key) python3/ dist-packages/ keystoneclient/ base.py" , line 125, in _list get(url, **kwargs) python3/ dist-packages/ keystoneauth1/ adapter. py", line 304, in get python3/ dist-packages/ keystoneauth1/ adapter. py", line 463, in request nAdapter, self).request( *args, **kwargs) python3/ dist-packages/ keystoneauth1/ adapter. py", line 189, in request request( url, method, **kwargs) python3/ dist-packages/ keystoneclient/ session. py", line 343, in request auth_headers( auth) python3/ dist-packages/ keystoneclient/ session. py", line 660, in get_auth_headers headers( self, **kwargs) python3/ dist-packages/ keystoneclient/ auth/base. py", line 159, in get_headers token(session) python3/ dist-packages/ keystoneclient/ auth/identity/ base.py" , line 206, in get_token access( session) .auth_token python3/ dist-packages/ keystoneclient/ auth/identity/ base.py" , line 252, in get_access auth_ref( session) python3/ dist-packages/ keystoneclient/ auth/identity/ v3/base. py", line 189, in get_auth_ref ed=False, log=False, **rkwargs) python3/ dist-packages/ keystoneclient/ session. py", line 543, in post python3/ dist-packages/ keystoneclient/ session. py", line 443, in request from_response( resp, method, url) exceptions. http.BadRequest : Bad Request (HTTP 400)
2020-06-10 04:47:06 ERROR juju-log identity-
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
helper.
File "lib/lib_
endpoints = self.keystone_
File "lib/lib_
return self._keystone_
File "/usr/lib/
**kwargs)
File "/usr/lib/
return f(*args, **new_kwargs)
File "/usr/lib/
self.
File "/usr/lib/
resp, body = self.client.
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
resp = super(LegacyJso
File "/usr/lib/
return self.session.
File "/usr/lib/
auth_headers = self.get_
File "/usr/lib/
return auth.get_
File "/usr/lib/
token = self.get_
File "/usr/lib/
return self.get_
File "/usr/lib/
self.auth_ref = self.get_
File "/usr/lib/
authenticat
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
raise exceptions.
keystoneauth1.