-
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#17134 from wallyworld/retry-charm-sha256
juju#17134 It's been observed when running some smoke tests that the unit agent can error when deploying / refreshing a charm - the agent goes to failure status with an error that the charm's sha256 is empty. It turns out his can happen if the charm is not yet saved to the database when the unit agent makes the api call during deploy / refresh. The root cause here is ultimately the transition to async deploys. But there's mistakes in that implementation if the unit agent is allowed to start or upgrade before the charm is ready. This PR adds a defensive retry to the unit agent facade when looking up the sha256 - if the charm is reported as not found (since it's still pending etc), it retries. This will solve the intermittent issue until the more extensive work is done to fix async deploys and refresh. ## QA steps ./main.sh -v -s 'test_build' smoke ## Links Partial fix for https://bugs.launchpad.net/juju/+bug/2059990 **Jira card:** JUJU-5797
- Loading branch information
Showing
2 changed files
with
78 additions
and
7 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