-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Issue * The Sharding + TLS test is flaky on `test_tls_inconsistent_rels`. * Sometimes it stalls and a unit stays in state `[active] executing` after we remove TLS * Sometimes, `juju status` returns an error because a volume is defined but not filesystem associated with it can be found. ## Solution * First problem : the `destroy_cluster` method was using `ops_test.fast_forward` in an unsafe way which globally lowered the `update-status-hook-interval` to 10s which is way too low and would stall a unit. * Second problem : Update `destroy_cluster` to destroy the storage safely when destroying the cluster so we are sure that the volumes are cleaned before doing anymore tests. * On top of that, two minor fixes, one making a call to `juju status` fail on errors, and an update in the charm to prevent `AttributeError`s when accessing `self.peers.units` in an unsafe way. --------- Co-authored-by: Mia Altieri <[email protected]>
- Loading branch information
1 parent
b33d036
commit 1eaae43
Showing
5 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1 | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters