ensemble status is broken wrt to peer relations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Kapil Thangavelu |
Bug Description
negronjl@
2011-06-30 23:29:23,048 INFO Connecting to environment.
machines:
0: {dns-name: ec2-184-
1: {dns-name: ec2-50-
2: {dns-name: ec2-50-
3: {dns-name: ec2-50-
services:
tomcat6:
formula: local:tomcat6-1
relations: {}
units:
tomcat6/0:
machine: 1
relations: {}
state: started
tomcat6/1:
machine: 2
relations: {}
state: started
tomcat6/2:
machine: 3
relations: {}
state: null
2011-06-30 23:29:28,933 INFO 'status' command finished successfully
negronjl@
2011-06-30 23:29:49,631 INFO Connecting to environment.
Service 'tomcat6/0' was not found
2011-06-30 23:29:51,798 ERROR Service 'tomcat6/0' was not found
negronjl@
2011-06-30 23:30:04,279 INFO Connecting to environment.
2011-06-30 23:30:07,816 INFO Added tomcat-cluster relation to all service units.
2011-06-30 23:30:07,817 INFO 'add_relation' command finished successfully
negronjl@
2011-06-30 23:30:22,052 INFO Connecting to environment.
list index out of range
2011-06-30 23:30:26,005 ERROR list index out of range
Related branches
- Gustavo Niemeyer: Approve
-
Diff: 147 lines (+61/-10)2 files modifiedensemble/control/status.py (+10/-5)
ensemble/control/tests/test_status.py (+51/-5)
Changed in ensemble: | |
status: | In Progress → Fix Released |
The problem here is not in add-relation but in status, updating description to reflect the actual bug. add-relation correctly reports when attempting to add a relation between units that the 'service' was not found.