KeyError when related to haproxy with no units

Bug #1383272 reported by Andreas Hasenack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Released
High
Andreas Hasenack

Bug Description

2014-10-18 15:52:58 INFO vhost-config-relation-changed Traceback (most recent call last):
2014-10-18 15:52:58 INFO vhost-config-relation-changed File "/var/lib/juju/agents/unit-landscape-0/charm/hooks/vhost-config-relation-changed", line 906, in <module>
2014-10-18 15:52:58 INFO vhost-config-relation-changed hooks[hook]()
2014-10-18 15:52:58 INFO vhost-config-relation-changed File "/var/lib/juju/agents/unit-landscape-0/charm/hooks/vhost-config-relation-changed", line 429, in vhost_config_relation_changed
2014-10-18 15:52:58 INFO vhost-config-relation-changed haproxy_service_name = _get_haproxy_service_name()
2014-10-18 15:52:58 INFO vhost-config-relation-changed File "/var/lib/juju/agents/unit-landscape-0/charm/hooks/vhost-config-relation-changed", line 114, in _get_haproxy_service_name
2014-10-18 15:52:58 INFO vhost-config-relation-changed haproxy_service = haproxy_relation_units[0].rsplit("/", 1)[0]
2014-10-18 15:52:58 INFO vhost-config-relation-changed IndexError: list index out of range
2014-10-18 15:52:58 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

Related branches

tags: removed: kanban
Changed in landscape-charm:
status: In Progress → Fix Committed
Changed in landscape-charm:
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.