HAproxy will not start
Issue
-
After running the openstack deploy command and performing a pcs resource cleanup, the HAproxy bundle will not restart. Receive error that "newly created container exits after start"
-
pcs status
shows error similar to this one:
Failed Actions:
* haproxy-bundle-docker-0_start_0 on overcloud-controller-2 'unknown error' (1): call=676, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:09:49 2020', queued=0ms, exec=1667ms
* haproxy-bundle-docker-1_start_0 on overcloud-controller-2 'unknown error' (1): call=674, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:09:47 2020', queued=0ms, exec=1551ms
* haproxy-bundle-docker-2_start_0 on overcloud-controller-2 'unknown error' (1): call=678, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:09:51 2020', queued=0ms, exec=1562ms
* haproxy-bundle-docker-0_start_0 on overcloud-controller-0 'unknown error' (1): call=702, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:09:47 2020', queued=0ms, exec=1544ms
* haproxy-bundle-docker-2_start_0 on overcloud-controller-0 'unknown error' (1): call=704, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:09:49 2020', queued=0ms, exec=1590ms
* haproxy-bundle-docker-1_start_0 on overcloud-controller-0 'unknown error' (1): call=705, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:09:51 2020', queued=0ms, exec=1713ms
* haproxy-bundle-docker-0_start_0 on overcloud-controller-1 'unknown error' (1): call=115, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:10:33 2020', queued=0ms, exec=1601ms
* haproxy-bundle-docker-1_start_0 on overcloud-controller-1 'unknown error' (1): call=129, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:11:34 2020', queued=0ms, exec=1861ms
* haproxy-bundle-docker-2_start_0 on overcloud-controller-1 'unknown error' (1): call=155, status=complete, exitreason='Newly created docker container exited after start',
last-rc-change='Tue Mar 31 16:14:45 2020', queued=0ms, exec=1811ms
/var/log/messages
contains similar failures:
Mar 31 16:09:49 overcloud-controller-0 journal: + echo 'Running command: '\''/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg'\'''
Mar 31 16:09:49 overcloud-controller-0 journal: + exec /usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg
Mar 31 16:09:49 overcloud-controller-0 journal: Running command: '/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg'
Mar 31 16:09:49 overcloud-controller-0 journal: <7>haproxy-systemd-wrapper: executing /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ds
Mar 31 16:09:49 overcloud-controller-0 journal: [WARNING] 090/160949 (10) : parsing [/etc/haproxy/haproxy.cfg:192] : 'option httplog' not usable with proxy 'nova_metadata' (needs 'mode http'). Falling back to 'option tcplog'.
Mar 31 16:09:49 overcloud-controller-0 journal: [WARNING] 090/160949 (10) : parsing [/etc/haproxy/haproxy.cfg:244] : 'option httplog' not usable with proxy 'panko' (needs 'mode http'). Falling back to 'option tcplog'.
Mar 31 16:09:49 overcloud-controller-0 journal: [WARNING] 090/160949 (10) : Setting tune.ssl.default-dh-param to 1024 by default, if your workload permits it you should set it to at least 2048. Please set a value >= 1024 to make this warning disappear.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy aodh started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy cinder started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy glance_api started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy gnocchi started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy haproxy.stats started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy heat_api started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy heat_cfn started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy horizon started.
Mar 31 16:09:49 overcloud-controller-0 journal: [ALERT] 090/160949 (10) : Starting proxy swift_proxy_server: cannot listen to socket [0.0.0.0:8080]
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy keystone_admin started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy keystone_public started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy mysql started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy neutron started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy nova_metadata started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy nova_novncproxy started.
Mar 31 16:09:49 overcloud-controller-0 journal: <5>haproxy-systemd-wrapper: exit, haproxy RC=1
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy nova_osapi started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy nova_placement started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy panko started.
Mar 31 16:09:49 overcloud-controller-0 haproxy[10]: Proxy redis started.
Environment
- Red Hat OpenStack Platform 13.0 (RHOSP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.