forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#13139 from hmlanigan/action-txn
juju#13139 No root cause on why the "state changing too soon" is still seen after the initial change, there is no exact reproducer. I came close with the QA steps below. The changes will improve the txn over all. 1) When enqueuing an operation, include the expected task count to start with. The operations task count may not be the expected count and can change while an operation is running. It's possible that the operation can be completed once the current task count matches the test count, which is not the same as the expected task count. 2) Add an assertion to check the current count is 1 less than expected count before marking an operation complete. ## QA steps ```console $ juju bootstrap localhost testme $ juju deploy ubuntu -n 15 $ juju deploy ntp # Wait for the ubuntu units to settle. $ juju add-relation ubuntu ntp # Once the ntp units have started to install: $ juju run --all -- "ps aux | grep jujud" # Repeat a few times if at least one action failure is not seen. # Should be no errors in the unit logs. # The completed operation should have the same number of expected and completed tasks. # Test upgrade after an operation has run via both upgrade and migration. ``` ## Bug reference https://bugs.launchpad.net/juju/+bug/1931567
- Loading branch information
Showing
33 changed files
with
360 additions
and
106 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
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
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
Oops, something went wrong.