cert-provider relation departed results in hook-failure

Bug #1950501 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Docker Registry Charm
Fix Released
Medium
Adam Dyess

Bug Description

if the `charm.docker-registry.client-configured` flag is set when this relation departs, the charm fails with this hook-failure:

unit-docker-registry-0: 16:11:59 ERROR unit.docker-registry/0.juju-log cert-provider:17: Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-docker-registry-0/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 74, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-docker-registry-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 390, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-docker-registry-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 359, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-docker-registry-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 181, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-docker-registry-0/charm/reactive/docker_registry.py", line 232, in remove_certs
    configure_client()
  File "/var/lib/juju/agents/unit-docker-registry-0/charm/reactive/docker_registry.py", line 138, in configure_client
    registry.set_registry_config(netloc, **data)
AttributeError: 'NoneType' object has no attribute 'set_registry_config'

unit-docker-registry-0: 16:11:59 ERROR juju.worker.uniter.operation hook "cert-provider-relation-departed" (via explicit, bespoke hook script) failed: exit status 1

Revision history for this message
Adam Dyess (addyess) wrote :

Charm Version: cs:~containers/docker-registry-218
Series: focal

Revision history for this message
Adam Dyess (addyess) wrote :
Changed in layer-docker-registry:
status: New → In Progress
Adam Dyess (addyess)
Changed in layer-docker-registry:
status: In Progress → Fix Committed
Adam Dyess (addyess)
Changed in layer-docker-registry:
status: Fix Committed → In Progress
Cory Johns (johnsca)
Changed in layer-docker-registry:
assignee: nobody → Adam Dyess (addyess)
importance: Undecided → Medium
milestone: none → 1.23
Cory Johns (johnsca)
Changed in layer-docker-registry:
status: In Progress → Fix Committed
George Kraft (cynerva)
Changed in layer-docker-registry:
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.