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

Bug #2032415 reported by Bas de Bruijne
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ceph Dashboard Charm
New
Undecided
Unassigned

Bug Description

In testrun https://solutions.qa.canonical.com/testruns/0383c7d7-adb8-4da4-b1ac-240fe74dae32/, 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/charm.py", line 632, in <module>
    main(CephDashboardCharm)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/main.py", line 431, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/main.py", line 142, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/framework.py", line 316, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/framework.py", line 784, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops/framework.py", line 857, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops_openstack/core.py", line 203, in on_update_status
    self.update_status()
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/venv/ops_openstack/core.py", line 152, in update_status
    _result = check()
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/./src/charm.py", line 363, in check_dashboard
    if not check_f():
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/./src/charm.py", line 347, in _check_grafana_config
    if self.grafana_dashboard.dashboard_relation:
  File "/var/lib/juju/agents/unit-ceph-dashboard-2/charm/src/interface_grafana_dashboard.py", 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/model.py", 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/model.py", 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:
https://oil-jenkins.canonical.com/artifacts/0383c7d7-adb8-4da4-b1ac-240fe74dae32/index.html

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.