Merge lp:~jimbaker/pyjuju/juju-status-changes-spec into lp:~juju/pyjuju/docs
Proposed by
Jim Baker
Status: | Merged |
---|---|
Approved by: | Kapil Thangavelu |
Approved revision: | 7 |
Merge reported by: | Mark Mims |
Merged at revision: | not available |
Proposed branch: | lp:~jimbaker/pyjuju/juju-status-changes-spec |
Merge into: | lp:~juju/pyjuju/docs |
Diff against target: |
55 lines (+51/-0) 1 file modified
source/drafts/juju-status-changes.rst (+51/-0) |
To merge this branch: | bzr merge lp:~jimbaker/pyjuju/juju-status-changes-spec |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kapil Thangavelu (community) | Approve | ||
Review via email: mp+97738@code.launchpad.net |
Description of the change
Fix `juju status` bug when working with multiple relations for a service.
Fix a bug in `juju status` status for the scenario that a service
has multiple established relations to consuming clients, each
using the same relation name from the provider's perspective. This
fix does introduce a backwards breaking change.
To post a comment you must log in.
Reviewers: mp+97738_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix `juju status` bug when working with multiple relations for a
service.
Fix a bug in `juju status` status for the scenario that a service
has multiple established relations to consuming clients, each
using the same relation name from the provider's perspective. This
fix does introduce a backwards breaking change.
https:/ /code.launchpad .net/~jimbaker/ juju/juju- status- changes- spec/+merge/ 97738
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/5837051/
Affected files: drafts/ juju-status- changes. rst
A [revision details]
A source/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: source/ drafts/ juju-status- changes. rst drafts/ juju-status- changes. rst' drafts/ juju-status- changes. rst 1970-01-01 00:00:00 +0000 drafts/ juju-status- changes. rst 2012-03-15 19:45:16 +0000 ------- ------- ------- ------- -----
=== added file 'source/
--- source/
+++ source/
@@ -0,0 +1,26 @@
+Relation information in ``juju status``
+------
+
+For each service and each service unit, `juju status` currently
+outputs the ``relations`` key, which maps relation names to a service
+and a the state of the relation unit lifecycle. This is a bug in Juju:
+currently in `juju status`, the implementation will collect status
+information such that only the *last* relation iterated over for a
+service or unit is recorded for a given relation name.
+
+To fix this bug, the following backwards breaking changes are made:
+
+ * For the relations key for each service, a list of dictionaries
+ including the relation name and service name is output. Example::
+
+ relations: - {name: db, service: blog1}
+ - {name: db, service: blog2}
+
+ * For the relations key for each service unit, a list of dictionaries
+ including the relation name and relation workflow state is
+ output::
+
+ relations: - {name: db, service: blog1, state: up}
+ - {name: db, service: blog2, state: down}
+
+Note that the relation id is not visible in this output.