Skip to content

Commit

Permalink
Stop haproxy service on standalone network nodes
Browse files Browse the repository at this point in the history
Neutron uses haproxy for the metadata service and when the package is
installed the service will be automatically started on debian/ubuntu.
Neutron runs it's own haproxy instances and the systemd service is
not required to be running.

This patch stops the haproxy service for any neutron metadata hosts
which are not in the OSA haproxy_all ansible group.

Change-Id: I04d933007069e2c3164968b8add48db50210e25c
  • Loading branch information
Jonathan Rosser committed May 26, 2020
1 parent 991b336 commit ccd396e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks/neutron_post_install.yml
Expand Up @@ -182,3 +182,14 @@
- Restart neutron services
when:
- "'bgpvpn' in neutron_plugin_base"

- name: Stop haproxy service on debian derivatives with standalone network nodes
service:
name: haproxy
state: stopped
enabled: false
when:
- ansible_pkg_mgr == 'apt'
- ansible_hostname in groups['neutron_metadata_agent']
- groups['haproxy_all'] is defined
- ansible_hostname not in groups['haproxy_all']

0 comments on commit ccd396e

Please sign in to comment.