[Pacemaker] HA for apache, doesnot work with pacemaker

Gopi Krishna B gopi97468 at gmail.com
Wed May 29 05:48:39 EDT 2013


Hi All
Could some help in pointing out which step I am wrongly configuring due to
which HA for Apache doesnot start.
Followed the steps in cluster from scratch doc to provide HA for Apache,
but it doesnot work.


*Setup*: Fedora 18, Openstack Grizzly, Pacemaker1.1.9/Corosync
2 node cluster.

*Configuration*:
1.) In Resource agents "/usr/lib/ocf/resource.d/heartbeat/apache"
a) changed IP address to ClusterIP or VirtualIp
 WGETOPTS="-O- -q -L --no-proxy --bind-address=10.102.228.60

b) changed to point to httpd.conf
DEFAULT_NORMCONFIG="/etc/httpd/conf/httpd.conf"

2.) In "/etc/httpd/conf/httpd.conf"
a) changed IP address to ClusterIP or VirtualIp
Listen 10.102.228.60:80
ServerAdmin root at 10.102.228.60
ServerName 10.102.228.60

b) added these lines at the end of httpd.conf
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 10.102.228.60
</Location>

ExtendedStatus On


3. ) In "/etc/openstack-dashboard/local_settings"
a) changed IP address to ClusterIP or VirtualIp
OPENSTACK_HOST = "10.102.228.60"

4.)
pcs cluster cib apache.cfg
pcs -f apache.cfg resource create openstack_dashboard ocf:heartbeat:apache \
configfile=/etc/httpd/conf/httpd.conf \
statusurl="http://10.102.228.60/server-status" op monitor interval=1min
pcs -f apache.cfg constraint colocation add openstack_dashboard ClusterIP
INFINITY
pcs -f apache.cfg constraint order ClusterIP then openstack_dashboard
pcs cluster push cib apache.cfg

After all the configuration changes pcs status displays

 ClusterIP      (ocf::heartbeat:IPaddr2):       Started cirrus
 openstack_dashboard    (ocf::heartbeat:apache):        Stopped


-- 
Regards
Gopi Krishna
Mobile: +358 4 5150 4499
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130529/cf8ee678/attachment-0002.html>


More information about the Pacemaker mailing list