Merge lp:~hloeung/charm-helpers/status-set-retry-a-few-times into lp:charm-helpers
Proposed by
Haw Loeung
Status: | Rejected |
---|---|
Rejected by: | Haw Loeung |
Proposed branch: | lp:~hloeung/charm-helpers/status-set-retry-a-few-times |
Merge into: | lp:charm-helpers |
Diff against target: |
40 lines (+15/-7) 1 file modified
charmhelpers/core/hookenv.py (+15/-7) |
To merge this branch: | bzr merge lp:~hloeung/charm-helpers/status-set-retry-a-few-times |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Needs Fixing | ||
Review via email: mp+318438@code.launchpad.net |
Description of the change
We're constantly seeing update-status hook failures where a 'juju resolved --retry' would fix. The latest example:
| ksplice/2 error idle 1.25.8 10.25.9.229 hook failed: "update-status"
Juju logs shows the following:
| 2017-02-28 06:20:49 INFO juju-log Application Version: 1.2.31
| 2017-02-28 06:20:49 INFO update-status error: connection is shut down
| 2017-02-28 06:20:49 INFO juju-log status-set failed: active Effective kernel 4.4.0-64-generic
This makes status_set() retry up to 10 times before actually failing.
To post a comment you must log in.
Unmerged revisions
- 696. By Haw Loeung
-
Updated status_set() to re-try at least 10 times with random splay.
Is there a Juju bug for the problem this is working around? It should be cited in the comments so future-us knows when the work around can be removed.