[ClusterLabs] WebSite_start_0 on node2 'error' (1): call=6, status='complete', exitreason='Failed to access httpd status page.'

Jason Long hack3rcon at yahoo.com
Sun Mar 21 08:21:22 EDT 2021


Hello,
I used "Clusters from Scratch" to configuration two nodes. I got below error:

# pcs status
Cluster name: mycluster
Cluster Summary:
  * Stack: corosync
  * Current DC: node1 (version 2.0.5-10.fc33-ba59be7122) - partition with quorum
  * Last updated: Sun Mar 21 15:35:18 2021
  * Last change:  Sun Mar 21 15:29:38 2021 by root via cibadmin on node1
  * 2 nodes configured
  * 2 resource instances configured

Node List:
  * Online: [ node1 node2 ]

Full List of Resources:
  * WebSite    (ocf::heartbeat:apache):     Stopped
  * ClusterIP    (ocf::heartbeat:IPaddr2):     Started node1

Failed Resource Actions:
  * WebSite_start_0 on node1 'error' (1): call=6, status='complete', exitreason='Failed to access httpd status page.', last-rc-change='2021-03-21 15:23:45 +03:30', queued=0ms, exec=1318ms
  * WebSite_start_0 on node2 'error' (1): call=6, status='complete', exitreason='Failed to access httpd status page.', last-rc-change='2021-03-21 15:23:47 +03:30', queued=0ms, exec=1380ms

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled


*********
I have some questions:

1- In "Chapter 6. Add Apache HTTP Server as a Cluster Service", an important note said:
"Do not enable the httpd service. Services that are intended to be managed via the cluster software should never be managed by the OS. It is often useful, however, to manually start the service, verify that it works, then stop it again, before adding it to the cluster. This allows you to resolve any non-cluster-related problems before continuing. Since this is a simple example, we’ll skip that step here."

If the Apache service is not enabled they how can I connect to it via below command:

# wget -O - http://localhost/server-status
--2021-03-21 15:38:39--  http://localhost/server-status
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:80... failed: Connection timed out.
Connecting to localhost (localhost)|::1|:80... failed: Network is unreachable.



2- Below commands must be run on both nodes or just one node?

# pcs resource create ClusterIP ocf:heartbeat:IPaddr2 ip="IP_That_Never_Used_In_The_Network" cidr_netmask=32 op monitor interval=30s

# pcs resource create WebSite ocf:heartbeat:apache configfile=/etc/httpd/conf/httpd.conf statusurl="http://localhost/server-status" op monitor interval=20s


3- Why "* WebSite    (ocf::heartbeat:apache):     Stopped" ?

Logs are:
https://paste.ubuntu.com/p/MtkfXyRX4P/


Thank you.


More information about the Users mailing list