ensemble status should take into account unit and relation workflows and unit agent status

Bug #737949 reported by Kapil Thangavelu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Medium
Jim Baker

Bug Description

The topology reflects planned state, not nesc. actual state. For entities with associated agents, it would be useful to display the presence of their agents.

Related branches

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

As well as for unit relations to show the relation status.

summary: - ensemble status should take into account agent statuses
+ ensemble status should take into account unit and relation workflows and
+ unit agent status
Changed in ensemble:
milestone: none → budapest
importance: Undecided → Medium
Jim Baker (jimbaker)
Changed in ensemble:
assignee: nobody → Jim Baker (jimbaker)
Jim Baker (jimbaker)
Changed in ensemble:
status: New → In Progress
Revision history for this message
Jim Baker (jimbaker) wrote :

Per conversation on #ubuntu-ensemble:

Unit anrd relation workflow is currently written to ZK for global observability. (And tested, see test_workflow.WorkflowTestBase.read_persistent_state) . However, there's no way to currently construct what that state is. Kapil recommends subclassing UnitWorkflowState and RelationWorkflowState such that they be instantiated from ZK instead of the local file store. ensemble status can then interrogate these state objects much like it does for other aspects of status.

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

also such implementations should not allow storing, ie they need to override _load/_store. _load to read from zk, and _store to raise an error. multiprocess usage of the workflow in r/w fashion requires additional coordination.

Jim Baker (jimbaker)
Changed in ensemble:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.