Charm in error with intermediate_cert_requests feature

Bug #2039452 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EasyRSA Charm
In Progress
Critical
Adam Dyess

Bug Description

https://github.com/juju-solutions/interface-tls-certificates/pull/31

introduced support for intermediate_cert_requests, however a misspelling wasn't caught in the layer which causes failures in the provider sides of the interface-tls-certificates relation

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-easyrsa-0/.venv/lib/python3.10/site-packages/charms/reactive/__init__.py", line 74, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-easyrsa-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 390, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-easyrsa-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 359, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-easyrsa-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 181, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-easyrsa-0/charm/hooks/relations/tls-certificates/provides.py", line 55, in joined
    self.expand_name("{endpoint_name}.certs.requested"), self.new_requests
  File "/var/lib/juju/agents/unit-easyrsa-0/charm/hooks/relations/tls-certificates/provides.py", line 249, in new_requests
    return [req for req in self.all_requests if not req.is_handled]
  File "/var/lib/juju/agents/unit-easyrsa-0/charm/hooks/relations/tls-certificates/provides.py", line 216, in all_requests
    reqs = unit.receive["intermediate_cert_requests"] or {}
AttributeError: 'RelatedUnit' object has no attribute 'receive'

Revision history for this message
Adam Dyess (addyess) wrote :
Changed in charm-easyrsa:
milestone: none → 1.29
assignee: nobody → Adam Dyess (addyess)
importance: Undecided → Critical
status: New → In Progress
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.