IndexError when adding a new landscape-server unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
haproxy (Juju Charms Collection) |
Fix Released
|
High
|
Данило Шеган |
Bug Description
I did a landscape-server deployment from the trunk charm (lp:landscape-charm) which went fine. I then added a landscape-server unit, and haproxy failed with this backtrace in reverseproxy-
Traceback (most recent call last):
File "/var/lib/
main(hook_name)
File "/var/lib/
reverseprox
File "/var/lib/
config_
File "/var/lib/
if not create_services():
File "/var/lib/
relation_
File "/var/lib/
services.
File "/var/lib/
servers.
IndexError: list index out of range
Related branches
- David Britton (community): Approve
- Whit Morriss (community): Needs Fixing
- Björn Tillenius (community): Approve
-
Diff: 152 lines (+93/-17)2 files modifiedhooks/hooks.py (+53/-17)
hooks/tests/test_reverseproxy_hooks.py (+40/-0)
description: | updated |
Changed in haproxy (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in haproxy (Juju Charms Collection): | |
status: | In Progress → Fix Released |
FWIW, the root of the problem is that Landscape tries to do something like the following:
https:/ /pastebin. canonical. com/131488/
Basically, old_service has more backends than the new_service. I see no reason why this should be allowed, but if I am missing something, please let me know.