<div dir="ltr">Hi All<div>Could some help in pointing out which step I am wrongly configuring due to which HA for Apache doesnot start.</div><div>Followed the steps in cluster from scratch doc to provide HA for Apache, but it doesnot work.</div>
<div><br></div><div><br></div><div><b>Setup</b>: Fedora 18, Openstack Grizzly, Pacemaker1.1.9/Corosync</div><div style>2 node cluster.</div><div><br></div><div><b>Configuration</b>:</div><div style>1.) In Resource agents &quot;/usr/lib/ocf/resource.d/heartbeat/apache&quot;</div>
<div style>a) changed IP address to ClusterIP or VirtualIp</div><div style> WGETOPTS=&quot;-O- -q -L --no-proxy --bind-address=10.102.228.60</div><div style><br></div><div style><div>b) changed to point to httpd.conf</div>
<div>DEFAULT_NORMCONFIG=&quot;/etc/httpd/conf/httpd.conf&quot;</div><div><br></div></div><div>2.) In &quot;/etc/httpd/conf/httpd.conf&quot;</div><div><div style>a) changed IP address to ClusterIP or VirtualIp</div><div style>
<div>Listen <a href="http://10.102.228.60:80">10.102.228.60:80</a></div><div><div>ServerAdmin <a href="mailto:root@10.102.228.60">root@10.102.228.60</a></div></div><div><div>ServerName 10.102.228.60</div></div><div><br></div>
<div style>b) added these lines at the end of httpd.conf</div><div style><div>&lt;Location /server-status&gt;</div><div>    SetHandler server-status</div><div>    Order deny,allow</div><div>    Deny from all</div><div>    Allow from 10.102.228.60</div>
<div>&lt;/Location&gt;</div><div><br></div><div>ExtendedStatus On</div><div><br></div></div><div><br></div><div style>3. ) In &quot;/etc/openstack-dashboard/local_settings&quot;</div><div style>a) changed IP address to ClusterIP or VirtualIp</div>
<div style><div>OPENSTACK_HOST = &quot;10.102.228.60&quot;</div><div><br></div><div>4.)</div><div><div>pcs cluster cib apache.cfg</div><div>pcs -f apache.cfg resource create openstack_dashboard ocf:heartbeat:apache \</div>
<div>configfile=/etc/httpd/conf/httpd.conf \</div><div>statusurl=&quot;<a href="http://10.102.228.60/server-status">http://10.102.228.60/server-status</a>&quot; op monitor interval=1min</div><div>pcs -f apache.cfg constraint colocation add openstack_dashboard ClusterIP INFINITY</div>
<div>pcs -f apache.cfg constraint order ClusterIP then openstack_dashboard</div><div>pcs cluster push cib apache.cfg</div></div><div><br></div><div style>After all the configuration changes pcs status displays</div><div style>
<div><br></div><div> ClusterIP      (ocf::heartbeat:IPaddr2):       Started cirrus</div><div> openstack_dashboard    (ocf::heartbeat:apache):        Stopped<br></div></div><div style><div><br></div><div><br></div></div></div>
</div>-- <br>Regards<br>Gopi Krishna<br>Mobile: +358 4 5150 4499<br><br><br>
</div></div>