neutron-gateway failing install hook because of misconfigured haproxy package

Bug #1827434 reported by Pedro Guimarães
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron Gateway Charm
Invalid
Undecided
Unassigned

Bug Description

Neutron-gateway charm install hook is failing with: https://pastebin.canonical.com/p/cQnbwPc5Qk/
From:

2019-05-02 19:32:39 DEBUG install Job for haproxy.service failed because the control process exited with error code.
2019-05-02 19:32:39 DEBUG install See "systemctl status haproxy.service" and "journalctl -xe" for details.
2019-05-02 19:32:39 DEBUG install invoke-rc.d: initscript haproxy, action "start" failed.
2019-05-02 19:32:39 DEBUG install ● haproxy.service - HAProxy Load Balancer
2019-05-02 19:32:39 DEBUG install Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; vendor preset: enabled)
2019-05-02 19:32:39 DEBUG install Active: activating (auto-restart) (Result: exit-code) since Thu 2019-05-02 19:32:39 UTC; 10ms ago
2019-05-02 19:32:39 DEBUG install Docs: man:haproxy(1)
2019-05-02 19:32:39 DEBUG install file:/usr/share/doc/haproxy/configuration.txt.gz
2019-05-02 19:32:39 DEBUG install Process: 10812 ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS (code=exited, status=1/FAILURE)
2019-05-02 19:32:39 DEBUG install Process: 10805 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=0/SUCCESS)
2019-05-02 19:32:39 DEBUG install Main PID: 10812 (code=exited, status=1/FAILURE)
2019-05-02 19:32:39 DEBUG install dpkg: error processing package haproxy (--configure):
2019-05-02 19:32:39 DEBUG install installed haproxy package post-installation script subprocess returned error exit status 1
2019-05-02 19:32:39 DEBUG install Setting up python-requestsexceptions (1.3.0-3) ...
2019-05-02 19:32:39 DEBUG install Setting up libsnmp30:amd64 (5.7.3+dfsg-1.8ubuntu3.1) ...
2019-05-02 19:32:39 DEBUG install Setting up python-networkx (1.11-1ubuntu3) ...
2019-05-02 19:32:40 DEBUG install Setting up python-chardet (3.0.4-1) ...
2019-05-02 19:32:40 DEBUG install Setting up python-kombu (4.1.0-1) ...
2019-05-02 19:32:40 DEBUG install Setting up python-pycparser (2.18-2) ...
2019-05-02 19:32:40 DEBUG install dpkg: dependency problems prevent configuration of neutron-lbaas-common:
2019-05-02 19:32:40 DEBUG install neutron-lbaas-common depends on haproxy; however:
2019-05-02 19:32:40 DEBUG install Package haproxy is not configured yet.

Neutron-* packages depend on haproxy working correctly in order to be installed, which depends on haproxy service working fine.
Manually restarting haproxy returns:
May 02 19:34:55 osev2-1418 systemd[1]: Stopped HAProxy Load Balancer.
May 02 19:34:55 osev2-1418 systemd[1]: Starting HAProxy Load Balancer...
May 02 19:34:55 osev2-1418 haproxy[12774]: [ALERT] 121/193455 (12774) : Starting frontend GLOBAL: cannot bind UNIX socket [/run/haproxy/admin.sock]
May 02 19:34:55 osev2-1418 systemd[1]: haproxy.service: Main process exited, code=exited, status=1/FAILURE
May 02 19:34:55 osev2-1418 systemd[1]: haproxy.service: Failed with result 'exit-code'.
May 02 19:34:55 osev2-1418 systemd[1]: Failed to start HAProxy Load Balancer.

Solution is to manually create "/run/haproxy" folder with:
juju run --application neutron-gateway "mkdir /run/haproxy"
juju run --application neutron-gateway "systemctl restart haproxy"

I am not sure if this a temporary condition, as I can see on templates/haproxy.cfg that it is set for /var/run/haproxy rather than /run. However, charm did not reached the point of rendering that file in the first place.

Full charm neutron-gateway logs: https://pastebin.canonical.com/p/cQnbwPc5Qk/
Bundle: https://pastebin.canonical.com/p/GZ4v9Xxdjy/

Revision history for this message
Pedro Guimarães (pguimaraes) wrote :

Moving to Invalid as this is a transient state during deployment and eventually goes away.

Changed in charm-neutron-gateway:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.