Ask Your Question
0

httpd.service fails to start in an HA config

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

jamesopst gravatar image

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

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 10.27.240.226:5000    0.0.0.0:*               LISTEN      1461/haproxy
  tcp      0    0 10.27.240.41:50000    10.27.240.41:3306       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
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Wed 2020-01-08 23:35:34 UTC; 3min 10s ago
     Docs: man:httpd(8)
           man:apachectl(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/manage.py compress --force -v0 (code=exited, status=0/SUCCESS)
  Process: 1501 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS)
 Main PID: 7818 (code=exited, status=1/FAILURE)

Jan 08 23:35:34 stein-controller-1.mydom.com httpd[7818]: (98)Address already in use: AH00073: make_sock: unable to listen for connections on address [::]:5000
Jan 08 23:35:34 stein-controller-1.mydom.com httpd[7818]: (98)Address already in use: AH00073: make_sock: unable to listen for connections on address 0.0.0.0:5000
Jan 08 23:35:34 stein-controller-1.mydom.com httpd[7818]: no listening sockets available, shutting down
Jan 08 23:35:34 stein-controller-1.mydom.com httpd[7818]: AH00015: Unable to open logs
Jan 08 23:35:34 stein-controller-1.mydom.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jan 08 23:35:34 stein-controller-1.mydom.com kill[7946]: kill: cannot find process ""
Jan 08 23:35:34 stein-controller-1.mydom.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 08 23:35:34 stein-controller-1.mydom.com systemd[1]: Failed to start The Apache HTTP Server.
Jan 08 23:35:34 stein-controller-1.mydom.com systemd[1]: Unit httpd.service entered failed state.
Jan 08 23:35:34 stein-controller-1.mydom.com 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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 62 times

Last updated: Jan 14