lbaas-member-update weight property does not reflect in haproxy config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Fix Released
|
High
|
Unassigned |
Bug Description
when to update the weight of members, it does not refelect in the haproxy config consistently .please check below two case for more details.
Case 1: update one property in one command
##list the initial member status
stack@nsj29:~$ neutron lbaas-member-list 199110de-
+------
| id | name | address | protocol_port | weight | subnet_id | admin_state_up |
+------
| 4dd3f086-
| 253cf421-
+------
##record the initial config of haproxy
backend 199110de-
mode http
balance roundrobin
stick-table type ip size 10k
stick on src
option forwardfor
server 4dd3f086-
server 253cf421-
##take a update action on node01
stack@nsj29:~$ neutron lbaas-member-update 4dd3f086-
Updated member: 4dd3f086-
##take a update action on node2
stack@nsj29:~$ neutron lbaas-member-update 253cf421-
Updated member: 253cf421-
##wait for 2~3 minutes, check the haproxy configuration
cat /var/lib/
.......
backend 199110de-
mode http
balance roundrobin
stick-table type ip size 10k
stick on src
option forwardfor
server 4dd3f086-
server 253cf421-
##Rerun the update command on node2
stack@nsj29:~$ neutron lbaas-member-update 253cf421-
Updated member: 253cf421-
##check the haproxy configuration,this time it will record the change in haproxy config
backend 199110de-
mode http
balance roundrobin
stick-table type ip size 10k
stick on src
option forwardfor
server 4dd3f086-
server 253cf421-
Case 2: update two update properties in one command
##initial memeber status
stack@nsj29:~$ neutron lbaas-member-list 199110de-
+------
| id | name | address | protocol_port | weight | subnet_id | admin_state_up |
+------
| 4dd3f086-
| 253cf421-
+------
## update on node01
stack@nsj29:~$ neutron lbaas-member-update 4dd3f086-
Updated member: 4dd3f086-
##check the haproxy configuration, nothing changed in the haproxy file
backend 199110de-
mode http
balance roundrobin
stick-table type ip size 10k
stick on src
option forwardfor
server 4dd3f086-
server 253cf421-
##take update on node02
stack@nsj29:~$ neutron lbaas-member-update 253cf421-
Updated member: 253cf421-
##check the haproxy configuration,it will take the previouse command's result into haproxy configure , not the latest command
backend 199110de-
mode http
balance roundrobin
stick-table type ip size 10k
stick on src
option forwardfor
server 4dd3f086-
server 253cf421-
This was fixed in: https:/ /review. openstack. org/#/c/ 280478/