peer storage cluster relation race: get_admin_passwd

Bug #1783943 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Keystone Charm
Fix Released
High
Frode Nordahl

Bug Description

2018-07-27 06:00:52 DEBUG juju-log Database is initialised
2018-07-27 06:00:53 DEBUG config-changed /usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py:179: UserWarning: Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1.
2018-07-27 06:00:53 DEBUG config-changed warnings.warn('Using keystoneclient sessions has been deprecated. '
2018-07-27 06:00:54 DEBUG juju-log Created new domain: default
2018-07-27 06:00:54 DEBUG juju-log Created new domain: admin_domain
2018-07-27 06:00:55 DEBUG juju-log Created new domain: service_domain
2018-07-27 06:00:55 DEBUG juju-log Created new tenant 'admin' in domain 'admin_domain'
2018-07-27 06:00:55 DEBUG juju-log Created new tenant 'services' in domain 'service_domain'
2018-07-27 06:00:55 DEBUG juju-log Created new role 'service'
2018-07-27 06:00:55 DEBUG juju-log Created new tenant 'admin' in domain 'default'
2018-07-27 06:00:55 DEBUG juju-log Created new tenant 'services' in domain 'default'
2018-07-27 06:00:55 DEBUG config-changed Traceback (most recent call last):
2018-07-27 06:00:55 DEBUG config-changed File "./hooks/config-changed-postupgrade", line 818, in <module>
2018-07-27 06:00:55 DEBUG config-changed main()
2018-07-27 06:00:55 DEBUG config-changed File "./hooks/config-changed-postupgrade", line 811, in main
2018-07-27 06:00:55 DEBUG config-changed hooks.execute(sys.argv)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 823, in execute
2018-07-27 06:00:55 DEBUG config-changed self._hooks[hook_name]()
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1453, in wrapped_f
2018-07-27 06:00:55 DEBUG config-changed restart_functions)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 730, in restart_on_change_helper
2018-07-27 06:00:55 DEBUG config-changed r = lambda_f()
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1452, in <lambda>
2018-07-27 06:00:55 DEBUG config-changed (lambda: f(*args, **kwargs)), restart_map, stopstart,
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 79, in _harden_inner2
2018-07-27 06:00:55 DEBUG config-changed return f(*args, **kwargs)
2018-07-27 06:00:55 DEBUG config-changed File "./hooks/config-changed-postupgrade", line 245, in config_changed_postupgrade
2018-07-27 06:00:55 DEBUG config-changed ensure_initial_admin(config)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1178, in ensure_initial_admin
2018-07-27 06:00:55 DEBUG config-changed return _ensure_initial_admin(config)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/decorators.py", line 40, in _retry_on_exception_inner_2
2018-07-27 06:00:55 DEBUG config-changed return f(*args, **kwargs)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1144, in _ensure_initial_admin
2018-07-27 06:00:55 DEBUG config-changed domain=ADMIN_DOMAIN)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1290, in create_user_credentials
2018-07-27 06:00:55 DEBUG config-changed passwd = passwd_get_callback(user)
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_utils.py", line 1041, in get_admin_passwd
2018-07-27 06:00:55 DEBUG config-changed peer_retrieve('{}_passwd'.format(user)) is None):
2018-07-27 06:00:55 DEBUG config-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/peerstorage/__init__.py", line 169, in peer_retrieve
2018-07-27 06:00:55 DEBUG config-changed 'peer relation {}'.format(relation_name))
2018-07-27 06:00:55 DEBUG config-changed ValueError: Unable to detectpeer relation cluster
2018-07-27 06:00:55 ERROR juju.worker.uniter.operation runhook.go:114 hook "config-changed" failed: exit status 1

Frode Nordahl (fnordahl)
Changed in charm-keystone:
status: New → Triaged
importance: Undecided → High
milestone: none → 18.08
Revision history for this message
Frode Nordahl (fnordahl) wrote :
Changed in charm-keystone:
assignee: nobody → Frode Nordahl (fnordahl)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-keystone (master)

Reviewed: https://review.openstack.org/586537
Committed: https://git.openstack.org/cgit/openstack/charm-keystone/commit/?id=3f58b2861b70473e49d8b53d09d13b34e77a133f
Submitter: Zuul
Branch: master

commit 3f58b2861b70473e49d8b53d09d13b34e77a133f
Author: Frode Nordahl <email address hidden>
Date: Fri Jul 27 14:11:22 2018 +0200

    Use leader storage for passwords

    There are no relation-level concerns for these values.

    Any pre-existing deployments with recent charms (as in released
    2015 or later) will have already migrated the peer storage to
    leader storage, so this change can build on that work directly.

    Ref: https://github.com/juju/charm-helpers/blame/master/charmhelpers/contrib/peerstorage/__init__.py

    Change-Id: I85d1746bdf3e9d3e1ff514e6dd2b4c565dee4dfc
    Closes-Bug: #1783943

Changed in charm-keystone:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-keystone:
status: Fix Committed → Fix Released
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.