canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
10 stars 9 forks source link

DPE-2218 Better handling of broken s3 relation #71

Closed delgod closed 1 year ago

delgod commented 1 year ago

from bug report https://github.com/canonical/postgresql-operator/issues/180 by @kian99

Hey folks, a relation problem. I've deployed Postgresql from 14/stable. I related it to another charm "s3-integrator" that provides it with config for communicating with an S3 bucket. I then removed the relation with --force and went through the process of adding and removing the relation a few times as I worked on some firewall issues.

Now i'm facing an issue where Postrgres thinks the s3-integrator charm is still related (see below) and further operations are failing because of some checks in the charm expecting only a single relation. $ juju exec --unit postgresql/0 -- relation-ids s3-parameters s3-parameters:13 s3-parameters:14