ensemble status is broken wrt to peer relations

Bug #804120 reported by Juan L. Negron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Medium
Kapil Thangavelu

Bug Description

negronjl@negronjl-laptop:~/src/ensemble/formulas$ ensemble status
2011-06-30 23:29:23,048 INFO Connecting to environment.
machines:
  0: {dns-name: ec2-184-73-90-26.compute-1.amazonaws.com, instance-id: i-39000557}
  1: {dns-name: ec2-50-17-135-210.compute-1.amazonaws.com, instance-id: i-872520e9}
  2: {dns-name: ec2-50-19-4-115.compute-1.amazonaws.com, instance-id: i-a52722cb}
  3: {dns-name: ec2-50-19-46-146.compute-1.amazonaws.com, instance-id: i-a72326c9}
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@negronjl-laptop:~/src/ensemble/formulas$ ensemble add-relation tomcat6/0 tomcat6/1
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@negronjl-laptop:~/src/ensemble/formulas$ ensemble add-relation tomcat6 tomcat6
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@negronjl-laptop:~/src/ensemble/formulas$ ensemble status
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

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

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.

summary: - add-relation between add-unit instances gives instances out of range
+ ensemble status is broken wrt to peer relations
Changed in ensemble:
assignee: nobody → Kapil Thangavelu (hazmat)
milestone: none → dublin
importance: Undecided → Medium
status: New → In Progress
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.