Merge lp://staging/~wallyworld/python-jujuclient/retry-on-upgrade into lp://staging/python-jujuclient
Status: | Merged |
---|---|
Merged at revision: | 59 |
Proposed branch: | lp://staging/~wallyworld/python-jujuclient/retry-on-upgrade |
Merge into: | lp://staging/python-jujuclient |
Diff against target: |
101 lines (+47/-8) 2 files modified
jujuclient.py (+27/-7) test_jujuclient.py (+20/-1) |
To merge this branch: | bzr merge lp://staging/~wallyworld/python-jujuclient/retry-on-upgrade |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Collard (community) | Needs Fixing | ||
Kapil Thangavelu | Approve | ||
John A Meinel (community) | Approve | ||
Review via email: mp+260658@code.staging.launchpad.net |
Commit message
A small moment of time after a freshly bootstrapped Juju environment accepts connections, it may be in an upgrading state.
This branch changes the RPC calls so that if an "upgrade in progress" error is reported, then then RPC call is retried. The retries occur every 1 second, up to a minute.
This change allows the deployer to be more robust to Juju upgrades, since it will now not simply error out.
Description of the change
Fixes bug bug 146017
A small moment of time after a freshly bootstrapped Juju environment accepts connections, it may be in an upgrading state.
This branch changes the RPC calls so that if an "upgrade in progress" error is reported, then then RPC call is retried. The retries occur every 1 second, up to a minute.
This change allows the deployer to be more robust to Juju upgrades, since it will now not simply error out.
Overall I think LGTM. I do have a couple comments.