httpd.service fails to start in an HA config

asked 2020-01-08 17:48:23 -0500

jamesopst gravatar image

updated 2020-01-09 10:56:22 -0500

hi, I am creating a Stein sandbox environment from rpms and am running stuck configuring it for HA (3 controllers).
I have a few issues I am sure. For now I am looking at one where the httpd.service is failing on controller-1.
I have the VIP set up and controller-1 has the VIP.
I must be running up against a port conflict? Am I required to use a network namespace for haproxy to run in?
Any advice in this area would be appreciated! (I can post more config files if you need thx!)

Here is a netstat:

  netstat -anp | grep "5000"
  tcp      0    0*               LISTEN      1461/haproxy
  tcp      0    0       TIME_WAIT   -

Here is the httpd status:

systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
   Active: failed (Result: exit-code) since Wed 2020-01-08 23:35:34 UTC; 3min 10s ago
     Docs: man:httpd(8)
  Process: 7946 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 7818 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  Process: 2928 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/ compress --force -v0 (code=exited, status=0/SUCCESS)
  Process: 1501 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/ collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS)
 Main PID: 7818 (code=exited, status=1/FAILURE)

Jan 08 23:35:34 httpd[7818]: (98)Address already in use: AH00073: make_sock: unable to listen for connections on address [::]:5000
Jan 08 23:35:34 httpd[7818]: (98)Address already in use: AH00073: make_sock: unable to listen for connections on address
Jan 08 23:35:34 httpd[7818]: no listening sockets available, shutting down
Jan 08 23:35:34 httpd[7818]: AH00015: Unable to open logs
Jan 08 23:35:34 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 08 23:35:34 kill[7946]: kill: cannot find process ""
Jan 08 23:35:34 systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 08 23:35:34 systemd[1]: Failed to start The Apache HTTP Server.
Jan 08 23:35:34 systemd[1]: Unit httpd.service entered failed state.
Jan 08 23:35:34 systemd[1]: httpd.service failed.

Here is the pcsd status:

pcs status
Cluster name: stein_ha_cluster
Stack: corosync
Current DC: stein-controller-3 (version 1.1.20-5.el7_7.1-3c4c782f70) - partition with quorum
Last updated: Wed Jan  8 23:04:45 2020
Last change: Tue Dec 31 20:54:41 2019 by root via cibadmin on stein-controller-1

3 nodes configured
4 resources configured

Online ...
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2020-01-14 10:34:01 -0500

jamesopst gravatar image

i was able to move past this problem (i think) by changing the ports in haproxy.cfg so they do not conflict with httpd and other services. I am still miles away from getting it to work. I am missing some concepts on HA for sure. I have lots of uncertainty. Like:
Are the services that are on the non-active nodes supposed to be in the started state when non-active, or do they get started when HA makes it the active node.
How can they start if the VIP is not available until it becomes an active node.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-01-08 17:48:23 -0500

Seen: 101 times

Last updated: Jan 14