Re: Can't get apache resource agent working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am trying to add a apache resource to a service, and I can't get it to
> work.
>
> Here's my service :
>
>     <service autostart="0" domain="cybercat" exclusive="0" name="SandBox">
>       <clusterfs ref="SandBox">
>         <ip address="192.168.110.29" monitor_link="on" sleeptime="1"/>
>         <ip address="192.168.112.29" monitor_link="on" sleeptime="1"/>
>         <apache config_file="/CyberCat/SandBox/etc/httpd.conf"
> name="SandBoxHttpd"/>
>       </clusterfs>
>     </service>
>
> The apache config file is basicly a copy of /etc/httpd/conf/httpd.conf,
> tailored to my needs, with PidFIle
> "/var/run/cluster/apache/apache:SandBoxHttpd.pid" in it.
>
> If I do :
>
> /usr/sbin/httpd -f /CyberCat/SandBox/etc/httpd.conf
>
> It works perfectly fine, and it creates the pid ar the proper location.
>
> So I used rg_test :
>
> rg_test test ./cluster.conf start service SandBox
>
> Starting SandBox...
> <debug>  /dev/dm-11 already mounted
> [clusterfs] /dev/dm-11 already mounted
> <debug>  192.168.110.29 already configured
> [ip] 192.168.110.29 already configured
> <debug>  192.168.112.29 already configured
> [ip] 192.168.112.29 already configured
> <debug>  Verifying Configuration Of apache:SandBoxHttpd
> [apache] Verifying Configuration Of apache:SandBoxHttpd
> <debug>  Checking Syntax Of The File /CyberCat/SandBox/etc/httpd.conf
> [apache] Checking Syntax Of The File /CyberCat/SandBox/etc/httpd.conf
> <debug>  Checking Syntax Of The File /CyberCat/SandBox/etc/httpd.conf >
> Succeed
> [apache] Checking Syntax Of The File /CyberCat/SandBox/etc/httpd.conf >
> Succeed
> <debug>  Monitoring Service apache:SandBoxHttpd
> [apache] Monitoring Service apache:SandBoxHttpd
> <error>  Checking Existence Of File
> /var/run/cluster/apache/apache:SandBoxHttpd.pid [apache:SandBoxHttpd] >
> Failed
> [apache] Checking Existence Of File
> /var/run/cluster/apache/apache:SandBoxHttpd.pid [apache:SandBoxHttpd] >
> Failed
> <error>  Monitoring Service apache:SandBoxHttpd > Service Is Not Running
> [apache] Monitoring Service apache:SandBoxHttpd > Service Is Not Running
> <info>   Starting Service apache:SandBoxHttpd
> [apache] Starting Service apache:SandBoxHttpd
> <debug>  Looking For IP Addresses
> [apache] Looking For IP Addresses
> <debug>  0 IP addresses found for SandBox/SandBoxHttpd
> [apache] 0 IP addresses found for SandBox/SandBoxHttpd
> <error>  Looking For IP Addresses [apache:SandBoxHttpd] > Failed - No IP
> Addresses Found
> [apache] Looking For IP Addresses [apache:SandBoxHttpd] > Failed - No IP
> Addresses Found
> Failed to start SandBox
>
> So it seems rgmanager can't find IP addresses for this service, and I
> can't figure why. I have other services that uses mysql resource agent,
> and the work perfectly with the exact same hiearchy of service/fs/ip,etc.
>
> I've also tried this config :
>
>     <service autostart="0" domain="cybercat" exclusive="0" name="SandBox">
>       <ip address="192.168.110.29" monitor_link="on" sleeptime="1"/>
>       <ip address="192.168.112.29" monitor_link="on" sleeptime="1"/>
>       <apache config_file="/CyberCat/SandBox/etc/httpd.conf"
> name="SandBoxHttpd"/>
>       <clusterfs ref="SandBox"/>
>     </service>
>
> With the same outcome.
>
> Thanks for any insights.
>
Even if I add a new service with ccs like this :

ccs -f cluster.conf --addservice SandBox3
ccs -f cluster.conf --addsubservice SandBox3 ip address="192.168.112.29"
ccs -f cluster.conf --addsubservice SandBox3 apache name="testapache"

It fails to find any IP addresses.

-- 
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux