Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After postgresql restore, and deleting old backup from S3 container, postgresql/leader remains blocked with Move restored cluster to another S3 bucket #733

Open
nsakkos opened this issue Jan 19, 2025 · 1 comment
Labels
bug Something isn't working as expected

Comments

@nsakkos
Copy link

nsakkos commented Jan 19, 2025

Steps to reproduce

  1. Deploy postgresql charm, integrated with s3-integrator for backups and tls-certificates-operator
  2. Create a backup with juju run postgres/0 create-backup
  3. Remove postgresql application
  4. Follow restore instructions
  5. Once cluster is restored, postgresql is blocked with "the S3 repository has backups from another cluster".
  6. Following instructions here, clean the container

Expected behavior

I expected the charm to detect that the container was now empty, become unblocked, and allow me to re-use the container for new backups.

Actual behavior

postgresql/leader remained in blocked status with message Move restored cluster to another S3 bucket. I tried restarting the jujud system service and restarting the VM, but the unit remained blocked. The only solution was to create a new bucket.

juju status: https://pastebin.canonical.com/p/X23QQnGJW6/

Versions

Operating system: Ubuntu 22.04.5 LTS

Juju CLI: 3.5.5-ubuntu-amd64

Juju agent: 3.5.5

Charm revision: postgresql 14/stable 468

Log output

Juju debug log: https://pastebin.canonical.com/p/jMVZ6JTtZx/

@nsakkos nsakkos added the bug Something isn't working as expected label Jan 19, 2025
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-6399.

This message was autogenerated

@nsakkos nsakkos changed the title After restore and deleting old backup from S3 container, postgresql/leader remains blocked with "Move restored cluster to another S3 bucket" After postgresql restore, and deleting old backup from S3 container, postgresql/leader remains blocked with Move restored cluster to another S3 bucket Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant