haproxy issue: backends are in DOWN state after node restarts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Incomplete
|
High
|
ElenaRossokhina | ||
Mitaka |
Invalid
|
High
|
ElenaRossokhina |
Bug Description
Detailed bug description:
On the face of it, the issue seems duplicate of #1608561, because node reset leads to wrong status of backends on different nodes http://
Brief discussion with @isuzdal shows that root cause can differ
Found on CI https:/
Steps to reproduce:
1. Deploy environment with at least 3 controllers
(Or revert existing snapshot)
2. Wait for mysql cluster to become active
3. Run ostf tests before destructive actions
4. Get rabbit master node
5. Move master rabbit resource to slave with pcs
6. Delete pcs constraint for rabbit resource
7. Assert HA services ready
8. Get new rabbit master node
9. Destroy it
10. Assert HA services ready
11. Run sanity and smoke OSTF sets
12. Power on destroyed node
13. Assert HA services ready (fail)
Expected results:
ha suite passed
Actual result:
One of ha tests failed: Check state of haproxy backends on controllers (failure)
tags: | added: area-library |
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
milestone: | none → 10.0 |
Changed in fuel: | |
status: | Confirmed → Invalid |
Hi,
It looks like a haproxy bug. It marks After haproxy restart all nodes go UP as they supposed to be.
# haproxy-status.sh | grep DOWN | grep keysto
keystone-1 node-4 Status: DOWN/L4TOUT Sessions: 0 Rate: 0
keystone-2 node-4 Status: DOWN/L4TOUT Sessions: 0 Rate: 0
# cat /etc/haproxy/ conf.d/ 020-keystone- 1.cfg | grep node-4
server node-4 10.109.6.3:5000 check inter 10s fastinter 2s downinter 2s rise 30 fall 3
# curl http:// 10.109. 6.3:5000 04T00:00: 00Z", "media-types": [{"base": "application/json", "type": "application/ vnd.openstack. identity- v3+json" }], "id": "v3.6", "links": [{"href": "http:// 10.109. 6.3:5000/ v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04- 17T00:00: 00Z", "media-types": [{"base": "application/json", "type": "application/ vnd.openstack. identity- v2.0+json" }], "id": "v2.0", "links": [{"href": "http:// 10.109. 6.3:5000/ v2.0/", "rel": "self"}, {"href": "http:// docs.openstack. org/", "type": "text/html", "rel": "describedby"}]}]}}
{"versions": {"values": [{"status": "stable", "updated": "2016-04-
# killall haproxy
### Wait until pcs restarts haproxy
# haproxy-status.sh | grep node-4 | grep keystone
keystone-1 node-4 Status: UP/L7OK Sessions: 0 Rate: 0
keystone-2 node-4 Status: UP/L7OK Sessions: 0 Rate: 0
# dpkg -l | grep haproxy
ii haproxy 1.6.3-1~u14.04+mos2 amd64 fast and reliable load balancing reverse proxy