Hi, Dejan.

2008/2/18, Dejan Muhamedagic <[EMAIL PROTECTED]>:
> Hi,
>
> On Mon, Feb 18, 2008 at 02:13:27PM +0900, DAIKI MATSUDA wrote:
> > Hi, all.
> >
> > I recently testing the development tree of Heartbeat and Pacemaker.
> > And I found they are alomost working well, but hb_gui on mgmtd
> > provided Pacemaker-Python-GUI does not work. Because, as errased the
> > part for mgmt from Heartbeat the configure command of Heartbeat does
> > not manage for '--enable-mgmt'. Especially, in heartbeat/config.c
> > MGMT_ENABLED is not defined.
> > So, I defined MGMT_ENABLED on the top of heartbeat/config.c and built.
> > Its binary file manages the mgmtd and hb_gui works.
> >
> > But there is a problem. In the environment not installed mgmtd, the
> > heartbeat failes at the first.
>
> What fails? Compilation? Heartbeat should be aware of the mgmtd
> only insofar as to manage the process (the respawn directive).
> Since having mgmtd around when it's not used is not such a
> biggie, perhaps we should just drop the '#ifdef MGMT_ENABLED'
> from heartbeat/config.c.

As I wrote, Heartbeat supported mgmtd with defined MGMT_ENABLED, fails
to start with following without mgmtd executable.
[EMAIL PROTECTED] crm]# /etc/init.d/heartbeat start
logd is already running
Starting High-Availability services:
                                                           [FAILED]
heartbeat[8830]: 2008/02/18_11:00:43 debug: add_option(crm,on)
heartbeat[8830]: 2008/02/18_11:00:43 info: Version 2 support: on
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
apiauth cib     uid=hacluster
heartbeat[8830]: 2008/02/18_11:00:43 debug: uid=hacluster, gid=<null>
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
apiauth stonithd        uid=root
heartbeat[8830]: 2008/02/18_11:00:43 debug: uid=root, gid=<null>
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
apiauth attrd           uid=hacluster
heartbeat[8830]: 2008/02/18_11:00:43 debug: uid=hacluster, gid=<null>
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
apiauth crmd    uid=hacluster
heartbeat[8830]: 2008/02/18_11:00:43 debug: uid=hacluster, gid=<null>
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
apiauth mgmtd           uid=root
heartbeat[8830]: 2008/02/18_11:00:43 debug: uid=root, gid=<null>
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
apiauth pingd           uid=root
heartbeat[8830]: 2008/02/18_11:00:43 debug: uid=root, gid=<null>
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
failfast  hacluster /usr/lib/heartbeat/ccm
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive:
hacluster /usr/lib/heartbeat/ccm
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
failfast  hacluster /usr/lib/heartbeat/cib
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive:
hacluster /usr/lib/heartbeat/cib
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
respawn root /usr/lib/heartbeat/lrmd -r
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive: root
/usr/lib/heartbeat/lrmd -r
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
respawn root /usr/lib/heartbeat/stonithd
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive: root
/usr/lib/heartbeat/stonithd
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
respawn  hacluster /usr/lib/heartbeat/attrd
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive:
hacluster /usr/lib/heartbeat/attrd
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
failfast  hacluster /usr/lib/heartbeat/crmd
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive:
hacluster /usr/lib/heartbeat/crmd
heartbeat[8830]: 2008/02/18_11:00:43 debug: Implicit directive:
respawn root /usr/lib/heartbeat/mgmtd -v
heartbeat[8830]: 2008/02/18_11:00:43 info: respawn directive: root
/usr/lib/heartbeat/mgmtd -v
heartbeat[8830]: 2008/02/18_11:00:43 ERROR: Client child command
[/usr/lib/heartbeat/mgmtd] is not executable
heartbeat[8830]: 2008/02/18_11:00:43 ERROR: Directive respawn root
/usr/lib/heartbeat/mgmtd -v failed

Before it did not occure, because Heartbeat included all. As Pacemaker
and other tool Pacemaker-Python-GUI discreted, I am currently
confirming whether work or not well.

It is easy to support mgmtd with defining MGMT_ENABLE, but I feel that
there is a little danger for upper log. And I asked the resolving way.

> > So, do you have a good idea for
> > resolving it?
>
> Not now. Those changes were done by Andrew and I'm not familiar
> with that work. I guess that he should have removed references to
> mgmtd completely from the Heartbeat since it has been moved in
> with the gui. BTW, the gui does use mgmt, but perhaps there are
> going to be more clients. Perhaps the package should be named
> mgmt.
>
> Thanks,
>
> Dejan
>
> > Regards
> > MATSUDA, Daiki
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to