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