neutron-gateway failing install hook because of misconfigured haproxy package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Gateway Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Neutron-gateway charm install hook is failing with: https:/
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/
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/
2019-05-02 19:32:39 DEBUG install Process: 10812 ExecStart=
2019-05-02 19:32:39 DEBUG install Process: 10805 ExecStartPre=
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-
2019-05-02 19:32:39 DEBUG install Setting up libsnmp30:amd64 (5.7.3+
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-
2019-05-02 19:32:40 DEBUG install neutron-
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/
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/
Full charm neutron-gateway logs: https:/
Bundle: https:/
Moving to Invalid as this is a transient state during deployment and eventually goes away.