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