Merge lp:~thedac/charms/trusty/neutron-api/status into lp:~openstack-charmers-archive/charms/trusty/neutron-api/next
| Status: | Work in progress |
|---|---|
| Proposed branch: | lp:~thedac/charms/trusty/neutron-api/status |
| Merge into: | lp:~openstack-charmers-archive/charms/trusty/neutron-api/next |
| Diff against target: |
638 lines (+246/-37) 6 files modified
hooks/charmhelpers/contrib/openstack/context.py (+8/-0) hooks/charmhelpers/contrib/openstack/utils.py (+83/-1) hooks/charmhelpers/core/hookenv.py (+84/-16) hooks/neutron_api_hooks.py (+25/-1) hooks/neutron_api_utils.py (+8/-0) unit_tests/test_neutron_api_hooks.py (+38/-19) |
| To merge this branch: | bzr merge lp:~thedac/charms/trusty/neutron-api/status |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| James Page | 2015-07-09 | Needs Fixing on 2015-07-16 | |
|
Review via email:
|
|||
Commit Message
Add workload status settings
Description of the Change
Based on Liam Young's original work add workload status settings to the neutron-api charm as a proof of concept.
The plan is to move context_status, set_context_status and incomplete_contexts to charmhelpers.
Looking for feedback before proceeding.
| David Ames (thedac) wrote : | # |
- 118. By David Ames on 2015-07-10
-
More status sets for install process
- 119. By David Ames on 2015-07-10
-
Use functools wraps
- 120. By David Ames on 2015-07-10
-
With @wraps in the decorator can now apply context_status to *_joined functions
- 121. By David Ames on 2015-07-13
-
Set status when waiting on a particular variable in a given context
Compound the status messages keeping the highest priority workload state
| David Ames (thedac) wrote : | # |
charmhelpers.
It is important to note that in practice these statuses are ephemeral as the context_status decorator comes around and runs set_context_status which is a bit more of a hammer. This is necessary to make sure we set a known state rather than just the last set state wins.
I am very much open to ideas to get us further granularity into set_context_status. set_context_status relies on charmhelpers.
ates.OSConfigRe
- 122. By David Ames on 2015-07-14
-
Updates to status_set
- 123. By David Ames on 2015-07-17
-
Set workload state waiting or blocked
- 124. By David Ames on 2015-07-17
-
Let the decorator set the status
- 125. By David Ames on 2015-07-17
-
Fix unit tests for new related(interface) check
Unmerged revisions
- 125. By David Ames on 2015-07-17
-
Fix unit tests for new related(interface) check
- 124. By David Ames on 2015-07-17
-
Let the decorator set the status
- 123. By David Ames on 2015-07-17
-
Set workload state waiting or blocked

Status functions moved to charm helpers
Please also see /code.launchpad .net/~thedac/ charm-helpers/ openstack- workload- status/ +merge/ 264353
https:/