2016-04-14 17:56:45 DEBUG juju-log Database is initialised
2016-04-14 17:56:46 INFO juju-log Retrying 'get_keystone_manager' 5 more times (delay=3)
2016-04-14 17:56:49 INFO juju-log Retrying 'get_keystone_manager' 4 more times (delay=6)
2016-04-14 17:56:55 INFO juju-log Retrying 'get_keystone_manager' 3 more times (delay=9)
2016-04-14 17:57:04 INFO juju-log Retrying 'get_keystone_manager' 2 more times (delay=12)
2016-04-14 17:57:16 INFO juju-log Retrying 'get_keystone_manager' 1 more times (delay=15)
2016-04-14 17:57:31 INFO config-changed Traceback (most recent call last):
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/config-changed", line 699, in <module>
2016-04-14 17:57:31 INFO config-changed main()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/config-changed", line 692, in main
2016-04-14 17:57:31 INFO config-changed hooks.execute(sys.argv)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute
2016-04-14 17:57:31 INFO config-changed self._hooks[hook_name]()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1573, in wrapped_f
2016-04-14 17:57:31 INFO config-changed restart_functions)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 478, in restart_on_change_helper
2016-04-14 17:57:31 INFO config-changed r = lambda_f()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1572, in <lambda>
2016-04-14 17:57:31 INFO config-changed (lambda: f(*args, **kwargs)), restart_map, stopstart,
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1459, in inner_synchronize_ca_if_changed2
2016-04-14 17:57:31 INFO config-changed ret = f(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 81, in _harden_inner2
2016-04-14 17:57:31 INFO config-changed return f(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/config-changed", line 173, in config_changed
2016-04-14 17:57:31 INFO config-changed config_changed_postupgrade()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1573, in wrapped_f
2016-04-14 17:57:31 INFO config-changed restart_functions)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 478, in restart_on_change_helper
2016-04-14 17:57:31 INFO config-changed r = lambda_f()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1572, in <lambda>
2016-04-14 17:57:31 INFO config-changed (lambda: f(*args, **kwargs)), restart_map, stopstart,
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1447, in inner_synchronize_ca_if_changed2
2016-04-14 17:57:31 INFO config-changed return f(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 81, in _harden_inner2
2016-04-14 17:57:31 INFO config-changed return f(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/config-changed", line 198, in config_changed_postupgrade
2016-04-14 17:57:31 INFO config-changed update_all_identity_relation_units()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/config-changed", line 287, in update_all_identity_relation_units
2016-04-14 17:57:31 INFO config-changed ensure_initial_admin(config)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 941, in ensure_initial_admin
2016-04-14 17:57:31 INFO config-changed return _ensure_initial_admin(config)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/decorators.py", line 42, in _retry_on_exception_inner_2
2016-04-14 17:57:31 INFO config-changed return f(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 906, in _ensure_initial_admin
2016-04-14 17:57:31 INFO config-changed create_tenant("admin")
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 691, in create_tenant
2016-04-14 17:57:31 INFO config-changed manager = get_manager()
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 770, in get_manager
2016-04-14 17:57:31 INFO config-changed api_version)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/decorators.py", line 42, in _retry_on_exception_inner_2
2016-04-14 17:57:31 INFO config-changed return f(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/manager.py", line 60, in get_keystone_manager
2016-04-14 17:57:31 INFO config-changed for svc in manager.api.services.list():
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/services.py", line 32, in list
2016-04-14 17:57:31 INFO config-changed return self._list("/OS-KSADM/services", "OS-KSADM:services")
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 124, in _list
2016-04-14 17:57:31 INFO config-changed resp, body = self.client.get(url, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
2016-04-14 17:57:31 INFO config-changed return self.request(url, 'GET', **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 206, in request
2016-04-14 17:57:31 INFO config-changed resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request
2016-04-14 17:57:31 INFO config-changed return self.session.request(url, method, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2016-04-14 17:57:31 INFO config-changed return func(*args, **kwargs)
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 386, in request
2016-04-14 17:57:31 INFO config-changed resp = send(**kwargs)
2016-04-14 17:57:31 INFO config-changed File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 430, in _send_request
2016-04-14 17:57:31 INFO config-changed raise exceptions.ConnectionRefused(msg)
2016-04-14 17:57:31 INFO config-changed keystoneclient.exceptions.ConnectionRefused: Unable to establish connection to http://localhost:35347/v2.0/OS-KSADM/services
2016-04-14 17:57:31 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1
It seems they keystone service is down and simply restarting it fixes things.
Last log entry is:
(keystone.cmd.cli): 2016-04-14 17:56:43,959 WARNING keystone-manage pki_setup is not recommended for production use.