[Pacemaker] crm shell issues
Dejan Muhamedagic
dejanmm at fastmail.fm
Wed Oct 3 10:46:28 CEST 2012
On Tue, Sep 18, 2012 at 04:21:46PM +0200, Dejan Muhamedagic wrote:
> Hi,
>
> On Fri, Sep 14, 2012 at 02:54:56PM +0300, Borislav Borisov wrote:
> > Hi all, Dejan,
> >
> >
> > I am struggling to get the latest crmsh version (812:b58a3398bf11) to work
> > with the latest pacemaker version () and so far I've encountered couple of
> > issues.
>
> There's quite a bit of new code in v1.1.8 which obviously
> behaves in a slightly different way.
>
> > The first one, which was already discussed on the list, INFO: object
> > Cluster-Server-1 cannot be represented in the CLI notation. Because you
> > never replied to what Vladislav Bogdanov reported in his last reply - I
> > just added the type="normal" parameter using crm edit xml, to fix the issue.
> >
> > The next thing that I encountered, I believe that it was discussed earlier
> > this year:
> >
> > > crm(live)configure# primitive dummy ocf:heartbeat:Dummy
> > > ERROR: pengine:metadata: could not parse meta-data:
> > >
> >
> > Which was fixed with the following patch:
> >
> > > diff -r b58a3398bf11 configure.ac
> > > --- a/configure.ac Thu Sep 13 12:19:56 2012 +0200
> > > +++ b/configure.ac Fri Sep 14 14:35:17 2012 +0300
> > > @@ -190,11 +190,9 @@
> > > AC_DEFINE_UNQUOTED(CRM_DTD_DIRECTORY,"$CRM_DTD_DIRECTORY", Where to keep
> > > CIB configuration files)
> > > AC_SUBST(CRM_DTD_DIRECTORY)
> > >
> > > -dnl Eventually move out of the heartbeat dir tree and create
> > > compatability code
> > > -dnl CRM_DAEMON_DIR=$libdir/pacemaker
> > > -GLUE_DAEMON_DIR=`extract_header_define $GLUE_HEADER GLUE_DAEMON_DIR`
> > > -AC_DEFINE_UNQUOTED(GLUE_DAEMON_DIR,"$GLUE_DAEMON_DIR", Location for
> > > Pacemaker daemons)
> > > -AC_SUBST(GLUE_DAEMON_DIR)
> > > +CRM_DAEMON_DIR=`$PKGCONFIG pcmk --variable=daemondir`
> > > +AC_DEFINE_UNQUOTED(CRM_DAEMON_DIR,"$CRM_DAEMON_DIR", Location for the
> > > Pacemaker daemons)
> > > +AC_SUBST(CRM_DAEMON_DIR)
> > >
> > > CRM_CACHE_DIR=${localstatedir}/cache/crm
> > > AC_DEFINE_UNQUOTED(CRM_CACHE_DIR,"$CRM_CACHE_DIR", Where crm shell keeps
> > > the cache)
> > > diff -r b58a3398bf11 modules/vars.py.in
> > > --- a/modules/vars.py.in Thu Sep 13 12:19:56 2012 +0200
> > > +++ b/modules/vars.py.in Fri Sep 14 14:35:17 2012 +0300
> > > @@ -200,7 +200,7 @@
> > > crm_schema_dir = "@CRM_DTD_DIRECTORY@"
> > > pe_dir = "@PE_STATE_DIR@"
> > > crm_conf_dir = "@CRM_CONFIG_DIR@"
> > > - crm_daemon_dir = "@GLUE_DAEMON_DIR@"
> > > + crm_daemon_dir = "@CRM_DAEMON_DIR@"
> > > crm_daemon_user = "@CRM_DAEMON_USER@"
> > > crm_version = "@VERSION@ (Build @BUILD_VERSION@)"
> > >
>
> Yes, the daemons moved to another location and the glue has been
> completely removed anyway. Thanks for the patch. Though I'm not
> sure if I can take it as is.
Applied a slightly different patch. Thanks!
Cheers,
Dejan
More information about the Pacemaker
mailing list