Charm does not process radosgw per unit keys

Bug #1899634 reported by Liam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Ceph-Proxy Charm
Fix Released
High
Liam Young

Bug Description

The charm ignores key_name on the radosgw relation so never provides radosgw units with the new style per unit keys. This causes the ceph-radosgw charm to fail to perform a zone list.

Below is replicated in this pastebin: https://paste.ubuntu.com/p/WxyTjkMSQz/

2020-10-13 08:41:34 [ERROR] Model default_alias (zaza-b1fb9b174193)
2020-10-13 08:41:35 [ERROR] Applications in error state: ceph-radosgw
2020-10-13 08:41:35 [ERROR] Units in error state: ceph-radosgw/0
2020-10-13 08:41:35 [ERROR] Juju log for ceph-radosgw/0
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1718, in wrapped_f
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed return restart_on_change_helper(
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/charmhelpers/core/host.py", line 747, in restart_on_change_helper
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed r = lambda_f()
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1719, in <lambda>
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed (lambda: f(*args, **kwargs)), __restart_map_cache['cache'],
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/mon-relation-changed", line 328, in _mon_relation
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed if zone not in multisite.list_zones():
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/multisite.py", line 68, in _list
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed result = json.loads(_check_output(cmd))
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/charmhelpers/core/decorators.py", line 40, in _retry_on_exception_
inner_2
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed return f(*args, **kwargs)
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/var/lib/juju/agents/unit-ceph-radosgw-0/charm/hooks/multisite.py", line 32, in _check_output
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed return subprocess.check_output(cmd).decode('UTF-8')
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed File "/usr/lib/python3.8/subprocess.py", line 512, in run
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed raise CalledProcessError(retcode, process.args,
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 DEBUG mon-relation-changed subprocess.CalledProcessError: Command '['radosgw-admin', '--id=rgw.juju-dc1c28-zaza-b1fb9b174193-10', 'zone', 'list']' returne
d non-zero exit status 1.
2020-10-13 08:41:36 [ERROR] 2020-10-13 08:41:32 ERROR juju.worker.uniter.operation runhook.go:132 hook "mon-relation-changed" failed: exit status 1

Liam Young (gnuoy)
Changed in charm-ceph-proxy:
importance: Undecided → High
assignee: nobody → Liam Young (gnuoy)
status: New → Confirmed
milestone: none → 20.10
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-proxy (master)

Fix proposed to branch: master
Review: https://review.opendev.org/757866

Changed in charm-ceph-proxy:
status: Confirmed → In Progress
David Ames (thedac)
Changed in charm-ceph-proxy:
milestone: 20.10 → 21.01
Changed in charm-ceph-proxy:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-ceph-proxy:
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.