VIP network interface in the qlbaas namespaces are not recreated when the OpenStack cluster is standby/unstandby
Issue
- VIP network interface in the qlbaas namespaces are not recreated when the OpenStack cluster is standby/unstandby
(1) Standby OpenStack cluster
[root@os3ctrl03 ~]# pcs cluster standby --all
(2) Note HAProxy loadbalancer process is still running:
[root@os3ctrl03 ~]# ps -ef | grep lbaas
nobody 22148 1 0 10:22 ? 00:00:00 haproxy -f /var/lib/neutron/lbaas/e9adbe8b-fbe3-4c1d-9a49-42b6113de190/conf -p /var/lib/neutron/lbaas/e9adbe8b-fbe3-4c1d-9a49-42b6113de190/pid -sf 18150
(3) Unstandby cluster
[root@os3ctrl03 ~]# pcs cluster unstandby --all
(4) Note same HAProxy loadbalancer process is respawned on a new PID
neutron 14529 1 11 10:29 ? 00:00:00 /usr/bin/python /usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /usr/share/neutron/neutron-lbaas-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini --config-dir /etc/neutron/conf.d/neutron-lbaas-agent --log-file /var/log/neutron/lbaas-agent.log
nobody 14759 1 0 10:29 ? 00:00:00 haproxy -f /var/lib/neutron/lbaas/e9adbe8b-fbe3-4c1d-9a49-42b6113de190/conf -p /var/lib/neutron/lbaas/e9adbe8b-fbe3-4c1d-9a49-42b6113de190/pid -sf 22148
(5) Check network interfaces in the namespace of the loadbalancer. Note the VIP network interface is missing!
[root@os3ctrl03 neutron(openstack_admin)]# ip netns exec qlbaas-e9adbe8b-fbe3-4c1d-9a49-42b6113de190 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
(6) Note restarts of neutron-lbaas-agent do not resolve.
Environment
- Red Hat Open Stack 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
