I am trying to add a relation between percona-cluster and keystone juju charms but i am getting the hook failed: "shared-db-relation-changed" for percona-cluster:shared-db.

My Openstack setup is having the internet access via the proxy. I have set the http/https proxy and no_proxy parameters in juju model-config.

I am getting the following error in debug-logs of keystone:-

2018-08-15 15:13:13 DEBUG shared-db-relation-changed     return self._list("/OS-KSADM/services", "OS-KSADM:services")
2018-08-15 15:13:13 DEBUG shared-db-relation-changed   File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 124, in _list
2018-08-15 15:13:13 DEBUG shared-db-relation-changed     resp, body = self.client.get(url, **kwargs)
2018-08-15 15:13:13 DEBUG shared-db-relation-changed   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 173, in get
2018-08-15 15:13:13 DEBUG shared-db-relation-changed     return self.request(url, 'GET', **kwargs)
2018-08-15 15:13:13 DEBUG shared-db-relation-changed   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 331, in request
2018-08-15 15:13:13 DEBUG shared-db-relation-changed     resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2018-08-15 15:13:13 DEBUG shared-db-relation-changed   File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 98, in request
2018-08-15 15:13:13 DEBUG shared-db-relation-changed     return self.session.request(url, method, **kwargs)
2018-08-15 15:13:13 DEBUG shared-db-relation-changed   File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 94, in inner
2018-08-15 15:13:13 DEBUG shared-db-relation-changed     return func(*args, **kwargs)
2018-08-15 15:13:13 DEBUG shared-db-relation-changed   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 420, in request
2018-08-15 15:13:13 DEBUG shared-db-relation-changed     raise exceptions.from_response(resp, method, url)
2018-08-15 15:13:13 DEBUG shared-db-relation-changed keystoneauth1.exceptions.http.Forbidden: Forbidden (HTTP 403)
2018-08-15 15:13:13 ERROR juju.worker.uniter.operation runhook.go:113 hook "shared-db-relation-changed" failed: exit status 1

I have tried many things but i am unable to resolve this issue. Any kind of suggestions will be helpful.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.