Hi Kazunori-san, On Thu, May 12, 2011 at 03:22:31PM +0900, Kazunori INOUE wrote: > Hi all, > > We found that crm shell (configure node) failed on Heartbeat-3.0.4 stack. > I attached a patch for crm shell in Pacemaker-1.1 (e872eeb39a5f). > > [failed case] > (1) Set node's attributes/utilization with crm shell > ('crm configure load update cli-file'). > > # service heartbeat start > # cat test1.cli > node srv-a1 utilization capacity="1" > # > # crm configure load update test1.cli > # crm_mon -1 > ============ > Last updated: Thu May 12 13:16:49 2011 > Stack: Heartbeat > Current DC: srv-a2 (68057c1e-6a5e-402b-be84-c56b98d5c985) - partition > with quorum > Version: 1.1.5-1.25.el6-5bdfc629f35af0305bb87676297d81251f0511ea > 3 Nodes configured, unknown expected votes > 0 Resources configured. > ============ > > -> Node srv-a1: UNCLEAN (offline) > Online: [ srv-a2 srv-a1 ] > > # > # crm configure show > node $id="68057c1e-6a5e-402b-be84-c56b98d5c985" srv-a2 > node $id="0cd9d2df-13fa-4b11-93d3-27a57192caeb" srv-a1 > node srv-a1 \ > utilization capacity="1" > property $id="cib-bootstrap-options" \ > > dc-version="1.1.5-1.25.el6-5bdfc629f35af0305bb87676297d81251f0511ea" \ > cluster-infrastructure="Heartbeat" > # > > > In following CLI, node's attribute was set correctly. > However, it is inconvenient to specify ID of the cluster node. > # cat test2.cli > node $id="0cd9d2df-13fa-4b11-93d3-27a57192caeb" \ > srv-a1 utilization capacity="1" > # > > (2) Set node's attributes/utilization with crm shell > ('crm configure node xxx'). > > # service heartbeat start > # crm configure node srv-a1 attributes attr1=val1 > # crm_mon -A1 > ============ > Last updated: Thu May 12 11:56:17 2011 > Stack: Heartbeat > Current DC: srv-a2 (68057c1e-6a5e-402b-be84-c56b98d5c985) - partition > with quorum > Version: 1.1.5-1.25.el6-5bdfc629f35af0305bb87676297d81251f0511ea > 3 Nodes configured, unknown expected votes > 0 Resources configured. > ============ > > -> Node srv-a1: UNCLEAN (offline) > Online: [ srv-a2 srv-a1 ] > > Node Attributes: > * Node srv-a2: > -> * Node srv-a1: > # > > Regards, > Kazunori INOUE
OK, I can imagine what's going on, but I'm not so sure about the proposed patch. Instead of fixing the id of the node afterwards it should have the right value from the beginning, i.e. after parsing XML. Or would there be other issues because of that? Cheers, Dejan _______________________________________________ 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