Need high-level API to model relation endpoints

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

Bug Description

Ensemble currently provides a low-level API in ensemble.state to manage the ZooKeeper znodes. In particular, ensemble.state.service and ensemble.state.relation provides classes to manage the topology of relations and services, as stored under the /topology znode.

Ensemble also will expose a high-level command line interface for managing relations.

Currently we lack a bridge between this low-level API and what's needed for the high-level CLI. For example, the CLI needs to support establishing a relation between two arbitrary services. (The discussion of removing a relation is
similar.) Users specify the desired relation indirectly by describing the services they would like to connect by the two relation descriptors:

<service name 1>[:<relation name>] <service name 2>[:<relation name>]

We need support for these descriptors as well as support to construct relation endpoints, which add in the relation role and interface (aka relation type).

Related branches

Jim Baker (jimbaker)
Changed in ensemble:
assignee: nobody → Jim Baker (jimbaker)
status: New → In Progress
Changed in ensemble:
importance: Undecided → Medium
milestone: none → 0.3
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.

Other bug subscribers

Remote bug watches

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