charm fails hook "update-status" when relating both COS and LMA

Bug #2032415 reported by Bas de Bruijne
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Dashboard Charm

Bug Description

In testrun, we are using both cos and lma along with the following versions:

maas 3.2.9-
juju 3.1.5
cpe-foundation 2.21+git.17.g5883367a
infra-ubuntu focal
ceph quincy/stable
charms yoga/stable

The "update-status" of ceph-dashboard fails after initializing vault. In the crashdump we see:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/./src/", line 632, in <module>
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 431, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 142, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 316, in emit
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 784, in _emit
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 857, in _reemit
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops_openstack/", line 203, in on_update_status
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops_openstack/", line 152, in update_status
    _result = check()
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/./src/", line 363, in check_dashboard
    if not check_f():
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/./src/", line 347, in _check_grafana_config
    if self.grafana_dashboard.dashboard_relation:
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/src/", line 126, in dashboard_relation
    return self.model.get_relation(self.relation_name)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 246, in get_relation
    return self.relations._get_unique(relation_name, relation_id)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/", line 622, in _get_unique
    raise TooManyRelatedAppsError(relation_name, num_related, 1)
ops.model.TooManyRelatedAppsError: Too many remote applications on grafana-dashboard (2 > 1)

I'm not sure if this is a result of ceph-dashboard configuring itself twice, or an error due to having both COS and LMA related to ceph-dashboard. Is COS+LMA a supported configuration?

More information and crashdumps can be found here:

tags: added: cdo-qa foundations-engine
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.