haproxy-16 (and 19) charms fail deployment in Juju 2.0 with "hook "config-changed" failed" error

Bug #1623504 reported by Dario Molinari
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
haproxy (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

Tried deploying landscape-maas-dense bundle on LXD containers on both bare metal and virtual machines but charm haproxy (16 and 19) consistently fails with "hook "config-changed" failed"

unit-haproxy-1.log attached:

2016-09-14 13:26:40 INFO config-changed return parse_services_yaml(services, config_data['services'])
2016-09-14 13:26:40 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-1/charm/hooks/charmhelpers/core/hookenv.py", line 255, in __getitem__
2016-09-14 13:26:40 INFO config-changed return (self._prev_dict or {})[key]
2016-09-14 13:26:40 INFO config-changed KeyError: 'services'
2016-09-14 13:26:40 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1
2016-09-14 13:26:40 INFO juju.worker.uniter resolver.go:100 awaiting error resolution for "config-changed" hook
2016-09-14 13:26:55 INFO juju.worker.leadership tracker.go:182 haproxy/1 will renew haproxy leadership at 2016-09-14 13:27:25.166047664 +0000 UTC

Revision history for this message
Sergio dos Santos Oliveira (sergio-oliveira-r) wrote :

I get same error, with landscape-scalable on jujucharm, unit-haproxy-3.log:

2017-09-01 21:07:34 INFO config-changed ^MReading state information... 0%^MReading state information... 2%^MReading state information... Done
2017-09-01 21:07:34 INFO config-changed Traceback (most recent call last):
2017-09-01 21:07:34 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-3/charm/hooks/config-changed", line 1367, in <module>
2017-09-01 21:07:34 INFO config-changed main(hook_name)
2017-09-01 21:07:34 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-3/charm/hooks/config-changed", line 1325, in main
2017-09-01 21:07:34 INFO config-changed config_changed()
2017-09-01 21:07:34 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-3/charm/hooks/config-changed", line 946, in config_changed
2017-09-01 21:07:34 INFO config-changed if not create_services():
2017-09-01 21:07:34 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-3/charm/hooks/config-changed", line 603, in create_services
2017-09-01 21:07:34 INFO config-changed services_dict = get_config_services()
2017-09-01 21:07:34 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-3/charm/hooks/config-changed", line 471, in get_config_services
2017-09-01 21:07:34 INFO config-changed return parse_services_yaml(services, config_data['services'] )
2017-09-01 21:07:34 INFO config-changed File "/var/lib/juju/agents/unit-haproxy-3/charm/hooks/charmhelpers/core/hookenv.py", line 255, in __getitem__
2017-09-01 21:07:34 INFO config-changed return (self._prev_dict or {})[key]
2017-09-01 21:07:34 INFO config-changed KeyError: 'services'
2017-09-01 21:07:34 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1

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.