Skip to content

Charms goes into error state after recreating certificates integration #173

@arturo-seijas

Description

@arturo-seijas

Bug Description

I've deployed gateway-api with lego and integrated. When I removed and integrated again, the charm fell in error state:

unit-gateway-api-0: 08:44:05 ERROR juju.worker.uniter.context cannot apply changes: creating secrets: secret with label "private-key-opencti-pfe.canonical.com" already exists
unit-gateway-api-0: 08:44:06 ERROR juju.worker.uniter.operation hook "certificates-relation-created" (via hook dispatching script: dispatch) failed: creating secrets: secret with label "private-key-opencti-pfe.canonical.com" already exists

To Reproduce

juju deploy gateway-api
juju deploy lego
juju integrate gateway-api lego
juju remove-relation gateway-api lego
juju integrate gateway-api lego

Environment

.

Relevant log output

unit-gateway-api-0: 08:44:05 ERROR juju.worker.uniter.context cannot apply changes: creating secrets: secret with label "private-key-opencti-pfe.canonical.com" already exists
unit-gateway-api-0: 08:44:06 ERROR juju.worker.uniter.operation hook "certificates-relation-created" (via hook dispatching script: dispatch) failed: creating secrets: secret with label "private-key-opencti-pfe.canonical.com" already exists

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions