[Pacemaker] Latest pacemaker-dev - having problems verifing config

Dejan Muhamedagic dejanmm at fastmail.fm
Mon Jan 10 09:54:30 EST 2011


On Sun, Jan 09, 2011 at 05:20:45PM +1100, Angus Salkeld wrote:
> On Fri, Jan 07, 2011 at 11:44:41AM +0100, Dejan Muhamedagic wrote:
> > Hi,
> > 
> > On Thu, Jan 06, 2011 at 01:30:53PM +1100, Angus Salkeld wrote:
> > > Hi
> > > 
> > > I am trying to get the latest (in hg) pacemker running on a super simple config.
> > > This is simply to run CTS.
> > > 
> > > crm(live) configure# show xml
> > > <?xml version="1.0" ?>
> > > <cib admin_epoch="0" cib-last-written="Thu Jan  6 12:33:38 2011" crm_feature_set="3.0.5"
> > > dc-uuid="r2" epoch="7" have-quorum="1" num_updates="30" validate-with="pacemaker-1.2">
> > 
> > This should be validate-with="pacemaker-1.1".  How did you create
> > the CIB?
> 
> Ok, that's probably the problem. How do I update/upgrade it?
> Or recreate it?

The shell doesn't allow modifying validate-with (though it
probably should). You can use cibadmin:

# cibadmin -Q > my.cib
# edit my.cib  # replace validate-with with pacemaker-1.1
# cibadmin -R -x my.cib

Thanks,

Dejan

> > 
> > >   <configuration>
> > >     <crm_config>
> > >       <cluster_property_set id="cib-bootstrap-options">
> > >         <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.4-unknown"/>
> > >         <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure"
> > > value="openais"/>
> > >         <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes"
> > > value="3"/>
> > >         <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
> > >       </cluster_property_set>
> > >     </crm_config>
> > >     <rsc_defaults/>
> > >     <op_defaults/>
> > >     <nodes>
> > >       <node id="r1" type="normal" uname="r1"/>
> > >       <node id="r2" type="normal" uname="r2"/>
> > >       <node id="r3" type="normal" uname="r3"/>
> > >     </nodes>
> > >     <resources/>
> > >     <constraints/>
> > >     <acls/>
> > 
> > And shell shouldn't create empty optional sections. Will fix
> > that.
> 
> Cool, thanks.
> 
> > 
> > Thanks,
> > 
> > Dejan
> > 
> > >   </configuration>
> > > </cib>
> > > 
> > > crm(live)configure# verify  
> > > element acls: Relax-NG validity error : Element configuration has extra content: acls
> > > element cib: Relax-NG validity error : Element cib failed to validate content
> > > crm_verify[18946]: 2011/01/06_13:25:12 ERROR: main: CIB did not pass DTD/schema validation
> > > Errors found during check: config not valid
> > > 
> > > 
> > > I have tried:
> > >  ./configure --with-acl=yes
> > >  ./configure --with-acl=no
> > > 
> > > This doesn't seem to make a difference.
> > > 
> > > Any ideas?
> > > 
> > > The actual xml file does not seem to have the "acls" entry.
> > > 
> > > 
> > > Regards
> > > Angus Salkeld
> > > 
> > > 
> > > _______________________________________________
> > > Pacemaker mailing list: Pacemaker at 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 at 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 at 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




More information about the Pacemaker mailing list