MachineState must enable MachineAgent monitoring

Bug #617046 reported by Gustavo Niemeyer
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Medium
Kapil Thangavelu

Bug Description

The MachineState should enable the MachineAgent reponsible for this machine to be monitored.

Here is a suggested API:

class MachineState:

    def has_agent(self):
        """Return boolean deferred informing whether an agent is connected."""

    def watch_agent(self):
        """Return two boolean deferreds informing whether an agent is connected, and whether a change happened."""

    def connect_agent(self):
        """Inform Ensemble that this is a machine agent alive."""

This is needed by the MachineAgent (bug #617042) and future work in the ProvisioningAgent (bug #616565).

Tags: spike

Related branches

description: updated
Changed in ensemble:
status: New → Confirmed
importance: Undecided → Medium
Changed in ensemble:
assignee: nobody → Jim Baker (jimbaker)
Jim Baker (jimbaker)
Changed in ensemble:
assignee: Jim Baker (jimbaker) → Kapil Thangavelu (hazmat)
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

i'm working on this in conjunction with generic agent monitoring for domain objects, likely as a mixin state class.

Changed in ensemble:
status: Confirmed → In Progress
milestone: none → 0.3
Changed in ensemble:
status: In Progress → Fix Committed
Changed in ensemble:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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