CharmStore.py failure on checking available relations

Bug #1273312 reported by Charles Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Amulet
Fix Released
High
Marco Ceppi

Bug Description

2014-01-27 11:26:50 Deployment complete in 31.56 seconds
Traceback (most recent call last):
  File "./200_deploy.test", line 88, in <module>
    validate_relationships()
  File "./200_deploy.test", line 81, in validate_relationships
    d.sentry.unit['configsvr/0'].relation('configsvr', 'mongos:mongos-cfg')
  File "/usr/local/lib/python3.3/dist-packages/amulet-1.2.0-py3.3.egg/amulet/sentry.py", line 103, in relation
    rel_data = charmstore.get_relation(self.info['service'], from_rel)
  File "/usr/local/lib/python3.3/dist-packages/amulet-1.2.0-py3.3.egg/amulet/charmstore.py", line 22, in get_relation
    relations = c['charm']['relations']
TypeError: 'bool' object is not subscriptable

Note: I am currently renaming the services, and I believe this to be root cause of the issue:
d.add('mongos', charm='mongodb', units=scale)
d.add('shard1', charm='mongodb', units=scale)
d.add('shard2', charm='mongodb', units=scale)

This behavior does not exist in the amulet tests I'm running that are not renaming the service identifier.

Marco Ceppi (marcoceppi)
Changed in amulet:
milestone: none → 1.2.2
assignee: nobody → Marco Ceppi (marcoceppi)
importance: Undecided → High
status: New → Triaged
Marco Ceppi (marcoceppi)
Changed in amulet:
status: Triaged → In Progress
Marco Ceppi (marcoceppi)
Changed in amulet:
status: In Progress → Fix Committed
Marco Ceppi (marcoceppi)
Changed in amulet:
milestone: 1.2.2 → 1.3.0
Marco Ceppi (marcoceppi)
Changed in amulet:
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.