canonical / kratos-operator

Charmed Ory Kratos
https://charmhub.io/kratos
Apache License 2.0
3 stars 1 forks source link

Unit scale down failure #166

Closed nsklikas closed 9 months ago

nsklikas commented 9 months ago

Bug Description

When scaling down a unit, the relation departed/broken event is triggered. This causes the unit to try to remove the migration version from the peer databag. If the unit is not the leader then this raises an error.

This is also wrong because if the unit is scaled down, then it should not try to clean up the migration version as other units are still connected with the database.

To Reproduce

juju scale-application hydra 3 juju scale-application hydra 1

syncronize-issues-to-jira[bot] commented 9 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-516.

This message was autogenerated