Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Jun 14, 2023

Issue

The charm doesn't recovers automatically from a blocked state due to connection blocked by firewall rules after they are fixed neither allow the user to do some action to fix the blocked status.

Solution

Instead of setting a blocked status when any operation related to the stanza happens, raise an error, which enables the user to call juju resolve after the network issue is fixed.

This was changed in three different places in case the connection is blocked in specific protocols, allowing one operation but timing out in the next one.

Closes #129.

@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #164 (1494791) into main (0fb1356) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
+ Coverage   80.30%   80.37%   +0.07%     
==========================================
  Files           8        8              
  Lines        1589     1595       +6     
  Branches      244      246       +2     
==========================================
+ Hits         1276     1282       +6     
  Misses        274      274              
  Partials       39       39              
Impacted Files Coverage Δ
src/backups.py 94.93% <100.00%> (+0.07%) ⬆️

@marceloneppel marceloneppel marked this pull request as ready for review June 14, 2023 21:01
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@marceloneppel marceloneppel merged commit 0b315cf into main Jun 17, 2023
@marceloneppel marceloneppel deleted the dpe-1712-stanza-timeout-errors-resolution branch June 17, 2023 01:16
BON4 pushed a commit to BON4/postgresql-operator that referenced this pull request Apr 23, 2024
github-actions bot added a commit to canonical/test-runners-2-is-arm64-postgresql-operator that referenced this pull request Sep 4, 2024
github-actions bot added a commit to canonical/test-runners-2-is-x64-postgresql-operator that referenced this pull request Sep 5, 2024
github-actions bot added a commit to canonical/test-runners-2-github-x64-postgresql-operator that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Charm in blocked status without clear messaging and not cleared after fixing connection to s3 endpoint

3 participants