<div>Thanks Andrew, I downloaded and compiled libxml2 2.8.7-1. Resource editing with crm now work, but I am still having problems with resource stopping. Any idea-a why whole node exits and rejoins the cluster?</div><div><br>
</div><br><div class="gmail_quote">On Thu, Nov 25, 2010 at 10:22 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Wed, Nov 24, 2010 at 5:55 PM, Marko Potocnik<br>
<<a href="mailto:marko.potocnik@gmail.com">marko.potocnik@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> I’m also having problem with pacemaker / heartbeat on RHEL 4.8.<br>
><br>
> First of all clusterlabs repo for epel doesn’t work with yum on RHEL 4.8<br>
> (yum is installed from EPEL):<br>
><br>
><br>
><br>
> [root@lucija ~]# yum search pacemaker<br>
><br>
> Searching Packages:<br>
><br>
> Setting up repositories<br>
><br>
> epel                      100% |=========================| 3.8 kB    00:00<br>
><br>
> clusterlabs               100% |=========================| 1.2 kB    00:00<br>
><br>
> Reading repository metadata in from local files<br>
><br>
> 534b70e747a5d8683eaf75a00 100% |=========================| 653 kB    00:00<br>
><br>
> epel      : ################################################## 1946/1946<br>
><br>
> Added 1946 new packages, deleted 0 old in 4.81 seconds<br>
><br>
> primary.xml.gz            100% |=========================|  62 kB    00:00<br>
><br>
> clusterlab:<br>
> #####################                              122/278Traceback (most<br>
> recent call last):<br>
><br>
>   File "/usr/bin/yum", line 29, in ?<br>
><br>
>     yummain.main(sys.argv[1:])<br>
><br>
>   File "/usr/share/yum-cli/yummain.py", line 97, in main<br>
><br>
>     result, resultmsgs = do()<br>
><br>
>   File "/usr/share/yum-cli/cli.py", line 596, in doCommands<br>
><br>
>     return self.search()<br>
><br>
>   File "/usr/share/yum-cli/cli.py", line 1216, in search<br>
><br>
>     matching = self.searchPackages(searchlist, args,<br>
> callback=self.matchcallback)<br>
><br>
>   File "__init__.py", line 1061, in searchPackages<br>
><br>
>   File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup<br>
><br>
>     self.doSackSetup(thisrepo=thisrepo)<br>
><br>
>   File "__init__.py", line 260, in doSackSetup<br>
><br>
>   File "repos.py", line 287, in populateSack<br>
><br>
>   File "sqlitecache.py", line 96, in getPrimary<br>
><br>
>   File "sqlitecache.py", line 89, in _getbase<br>
><br>
>   File "sqlitecache.py", line 359, in updateSqliteCache<br>
><br>
>   File "sqlitecache.py", line 251, in addPrimary<br>
><br>
>   File "sqlitecache.py", line 197, in insertHash<br>
><br>
>   File "sqlitecache.py", line 449, in values<br>
><br>
>   File "sqlitecache.py", line 441, in __getitem__<br>
><br>
>   File "mdparser.py", line 73, in __getitem__<br>
><br>
> KeyError: 'sourcerpm'<br>
><br>
><br>
><br>
> Here is the pacemaker.repo:<br>
><br>
> [root@lucija ~]# cat /etc/yum.repos.d/pacemaker.repo<br>
><br>
> [clusterlabs]<br>
><br>
> name=High Availability/Clustering server technologies (epel-4)<br>
><br>
> baseurl=<a href="http://www.clusterlabs.org/rpm/epel-4" target="_blank">http://www.clusterlabs.org/rpm/epel-4</a><br>
><br>
> type=rpm-md<br>
><br>
> gpgcheck=0<br>
><br>
> enabled=1<br>
><br>
><br>
><br>
> If I install it by hand if says it need python2.4, so I installed it from<br>
> fedora rpms (<a href="http://www.python.org/download/releases/2.4.2/rpms/" target="_blank">http://www.python.org/download/releases/2.4.2/rpms/</a>). I then<br>
> copied crm python files to python2.4 and modified crm script to use<br>
> python2.4.<br>
><br>
> Pacemaker, heartbeat and crm now run, but are buggy:<br>
><br>
><br>
><br>
> - If I edit configuration I often get an error that xml in CIB can not be<br>
> replaced. I got this when I tried to change res_ftp monitor timeout to 40s:<br>
<br>
</div></div>I think this is due to an old bug in libxml2.<br>
NTT posted about the same problem recently.<br>
<div><div></div><div class="h5"><br>
><br>
><br>
><br>
> [root@ankaran ~]# crm configure edit<br>
><br>
> ERROR: could not replace rg_ftp<br>
><br>
> INFO: offending xml: <group id="rg_ftp"><br>
><br>
>         <primitive class="ocf" id="res_ip_ftp" provider="heartbeat"<br>
> type="IPaddr2"><br>
><br>
>                 <instance_attributes id="res_ip_ftp-instance_attributes"><br>
><br>
>                         <nvpair id="res_ip_ftp-instance_attributes-ip"<br>
> name="ip" value="172.18.251.6"/><br>
><br>
>                         <nvpair<br>
> id="res_ip_ftp-instance_attributes-cidr_netmask" name="cidr_netmask"<br>
> value="24"/><br>
><br>
>                 </instance_attributes><br>
><br>
>                 <operations><br>
><br>
>                         <op id="res_ip_ftp-monitor-15s" interval="15s"<br>
> name="monitor" timeout="30s"/><br>
><br>
>                 </operations><br>
><br>
>         </primitive><br>
><br>
>         <primitive class="lsb" id="res_ftp" type="vsftpd"><br>
><br>
>                 <operations><br>
><br>
>                         <op id="res_ftp-monitor-15s" interval="15s"<br>
> name="monitor" timeout="40s"/><br>
><br>
>                 </operations><br>
><br>
>         </primitive><br>
><br>
> </group><br>
><br>
><br>
><br>
> - If I try to stop a group rg_ftp, I the node on which group runs exits and<br>
> rejoins the cluster:<br>
><br>
><br>
><br>
> [root@lucija ~]# date<br>
><br>
> Tue Nov 23 08:33:26 CET 2010<br>
><br>
> [root@lucija ~]# crm resource stop rg_ftp<br>
><br>
><br>
><br>
> crm_mon on ankaran:<br>
><br>
> ============<br>
><br>
> Last updated: Tue Nov 23 08:33:03 2010<br>
><br>
> Stack: Heartbeat<br>
><br>
> Current DC: <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a> (1e7ca0d8-0bbc-4a1b-a1ce-3117975c6862) -<br>
> partition with quorum<br>
><br>
> Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677<br>
><br>
> 2 Nodes configured, unknown expected votes<br>
><br>
> 1 Resources configured.<br>
><br>
> ============<br>
><br>
><br>
><br>
> Node <a href="http://lucija.iskratel.si" target="_blank">lucija.iskratel.si</a> (620b4679-8f8f-4d43-9b32-b67af24df67f): standby<br>
><br>
> Online: [ <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a> ]<br>
><br>
><br>
><br>
> Full list of resources:<br>
><br>
><br>
><br>
>  Resource Group: rg_ftp<br>
><br>
>      res_ip_ftp (ocf::heartbeat:IPaddr2):       Started <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a><br>
><br>
>      res_ftp    (lsb:vsftpd):   Started <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a><br>
><br>
><br>
><br>
> Migration summary:<br>
><br>
> * Node <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a>:<br>
><br>
> * Node <a href="http://lucija.iskratel.si" target="_blank">lucija.iskratel.si</a>:<br>
><br>
> Connection to the CIB terminated<br>
><br>
> Reconnecting...<br>
><br>
><br>
><br>
> Then after a few seconds:<br>
><br>
><br>
><br>
> ============<br>
><br>
> Last updated: Tue Nov 23 08:33:33 2010<br>
><br>
> Stack: Heartbeat<br>
><br>
> Current DC: NONE<br>
><br>
> 2 Nodes configured, unknown expected votes<br>
><br>
> 1 Resources configured.<br>
><br>
> ============<br>
><br>
><br>
><br>
> OFFLINE: [ <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a> <a href="http://lucija.iskratel.si" target="_blank">lucija.iskratel.si</a> ]<br>
><br>
><br>
><br>
> Full list of resources:<br>
><br>
><br>
><br>
>  Resource Group: rg_ftp<br>
><br>
>      res_ip_ftp (ocf::heartbeat:IPaddr2):       Stopped<br>
><br>
>      res_ftp    (lsb:vsftpd):   Stopped<br>
><br>
><br>
><br>
> Migration summary:<br>
><br>
><br>
><br>
> Here is the configuration on RHEL4.8:<br>
><br>
><br>
><br>
> node $id="1e7ca0d8-0bbc-4a1b-a1ce-3117975c6862" <a href="http://ankaran.iskratel.si" target="_blank">ankaran.iskratel.si</a><br>
><br>
> node $id="620b4679-8f8f-4d43-9b32-b67af24df67f" <a href="http://lucija.iskratel.si" target="_blank">lucija.iskratel.si</a> \<br>
><br>
>         attributes standby="on"<br>
><br>
> primitive res_ftp lsb:vsftpd \<br>
><br>
>         op monitor interval="15s" timeout="30s"<br>
><br>
> primitive res_ip_ftp ocf:heartbeat:IPaddr2 \<br>
><br>
>         params ip="172.18.251.6" cidr_netmask="24" \<br>
><br>
>         op monitor interval="15s" timeout="30s"<br>
><br>
> group rg_ftp res_ip_ftp res_ftp<br>
><br>
> property $id="cib-bootstrap-options" \<br>
><br>
>         dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \<br>
><br>
>         cluster-infrastructure="Heartbeat" \<br>
><br>
>         stonith-enabled="false" \<br>
><br>
>         default-resource-stickiness="200" \<br>
><br>
>         no-quorum-policy="ignore" \<br>
><br>
>         last-lrm-refresh="1290158718"<br>
><br>
><br>
><br>
> Regards,<br>
><br>
> Marko<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs:<br>
> <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</blockquote></div><br>