Deploy fails with preferred-api-version=3 , logs show keystoneclient.exceptions.ConnectionRefused

Bug #1556846 reported by Liam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystone (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

When deploying keystone with preferred-api-version=3 the shared-db-relation-changed hook fails with:

2016-03-14 09:31:29 INFO juju-log shared-db:15: Rendering from template: haproxy.cfg
2016-03-14 09:31:29 INFO juju-log shared-db:15: Wrote template /etc/haproxy/haproxy.cfg.
2016-03-14 09:31:29 DEBUG juju-log shared-db:15: Database is initialised
2016-03-14 09:31:29 INFO shared-db-relation-changed Traceback (most recent call last):
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed", line 657, in <module>
2016-03-14 09:31:29 INFO shared-db-relation-changed main()
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed", line 650, in main
2016-03-14 09:31:29 INFO shared-db-relation-changed hooks.execute(sys.argv)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute
2016-03-14 09:31:29 INFO shared-db-relation-changed self._hooks[hook_name]()
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 435, in wrapped_f
2016-03-14 09:31:29 INFO shared-db-relation-changed f(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1395, in inner_synchronize_ca_if_changed2
2016-03-14 09:31:29 INFO shared-db-relation-changed ret = f(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed", line 313, in db_changed
2016-03-14 09:31:29 INFO shared-db-relation-changed leader_init_db_if_ready(use_current_context=True)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed", line 302, in leader_init_db_if_ready
2016-03-14 09:31:29 INFO shared-db-relation-changed update_all_identity_relation_units(check_db_ready=False)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed", line 270, in update_all_identity_relation_units
2016-03-14 09:31:29 INFO shared-db-relation-changed identity_changed(relation_id=rid, remote_unit=unit)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 435, in wrapped_f
2016-03-14 09:31:29 INFO shared-db-relation-changed f(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1395, in inner_synchronize_ca_if_changed2
2016-03-14 09:31:29 INFO shared-db-relation-changed ret = f(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed", line 349, in identity_changed
2016-03-14 09:31:29 INFO shared-db-relation-changed add_service_to_keystone(relation_id, remote_unit)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1543, in add_service_to_keystone
2016-03-14 09:31:29 INFO shared-db-relation-changed manager = get_manager()
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 709, in get_manager
2016-03-14 09:31:29 INFO shared-db-relation-changed api_version)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/manager.py", line 36, in get_keystone_manager
2016-03-14 09:31:29 INFO shared-db-relation-changed for svc in manager.api.services.list():
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2016-03-14 09:31:29 INFO shared-db-relation-changed return func(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/v3/services.py", line 58, in list
2016-03-14 09:31:29 INFO shared-db-relation-changed **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 75, in func
2016-03-14 09:31:29 INFO shared-db-relation-changed return f(*args, **new_kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 388, in list
2016-03-14 09:31:29 INFO shared-db-relation-changed self.collection_key)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 124, in _list
2016-03-14 09:31:29 INFO shared-db-relation-changed resp, body = self.client.get(url, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
2016-03-14 09:31:29 INFO shared-db-relation-changed return self.request(url, 'GET', **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 206, in request
2016-03-14 09:31:29 INFO shared-db-relation-changed resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request
2016-03-14 09:31:29 INFO shared-db-relation-changed return self.session.request(url, method, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2016-03-14 09:31:29 INFO shared-db-relation-changed return func(*args, **kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 386, in request
2016-03-14 09:31:29 INFO shared-db-relation-changed resp = send(**kwargs)
2016-03-14 09:31:29 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 430, in _send_request
2016-03-14 09:31:29 INFO shared-db-relation-changed raise exceptions.ConnectionRefused(msg)
2016-03-14 09:31:29 INFO shared-db-relation-changed keystoneclient.exceptions.ConnectionRefused: Unable to establish connection to http://localhost:35347/v3/services
2016-03-14 09:31:29 ERROR juju.worker.uniter.operation runhook.go:107 hook "shared-db-relation-changed" failed: exit status 1

Revision history for this message
James Page (james-page) wrote :

As we released v3 support, marking this as Fix Released.

Changed in keystone (Juju Charms Collection):
status: New → Fix Released
milestone: none → 16.10
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.