LBaaS Agent does not clean up HAproxy PIDs that are spawned during when stopped.

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux Openstack Platform 4.0

Issue

  • The LBaaS Agent does not clean up HAproxy PIDs that are spawned by it upon stopping the agent, this leaves orphaned Programs that are hard to administer.

Resolution

  • All agents don't stop their spawned services when they are stopped or restarted. For example the L3 agent doesn't kill its routers when it is stopped.
  • This is by design, so that the control plane and the data plane are kept separated.

  • One of the possible fix for this is to modify stop) section of the case statement in the init script and add the following command to kill haproxy when stopping agent :

pkill -u nobody haproxy
  • OpenStack launches all haproxy proxies as nobody and this would also ensure that the haproxy of an HA environment (if neutron was running on the same server) is not killed off.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments