Re: [Linux-HA] Error compiling pacemaker gui on Centos 6

2012-09-06 Thread Gao,Yan
On 09/06/12 23:16, Marcelo Genaro wrote:
> Exactly same problem with
> ClusterLabs-pacemaker-mgmt-pacemaker-mgmt-2.1.0-0-ge609be1.zip
> and
> ClusterLabs-pacemaker-mgmt-pacemaker-mgmt-2.1.1-0-ge4db9d3.zip
> 
> My pacemaker version is pacemaker-1.1.7-6.el6.x86_64
> 
> /bin/sh ../../libtool --tag=CC   --tag=CC   --mode=compile gcc
> -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include
> -I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
> -I../../linux-ha -I../..  -I../..  -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2 -I../../include
>  -I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
> -I../../linux-ha -I../..  -I../.. -g -O2
> -I/usr/include/heartbeat -I/usr/include/pacemaker   -fgnu89-inline
> -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo
> -c -o libhbmgmt_la-mgmt_lib.lo `test -f 'mgmt_lib.c' || echo
> './'`mgmt_lib.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../include -I../../libltdl -I../../libltdl
> -I../../linux-ha -I../../linux-ha -I../.. -I../..
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/libxml2 -I../../include -I../../include -I../../libltdl
> -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -g
> -O2 -I/usr/include/heartbeat -I/usr/include/pacemaker -fgnu89-inline
> -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo
> -c mgmt_lib.c  -fPIC -DPIC -o .libs/libhbmgmt_la-mgmt_lib.o
> cc1: warnings being treated as errors
> mgmt_lib.c: In function ‘init_mgmt_lib’:
> mgmt_lib.c:97: error: implicit declaration of function ‘is_heartbeat_cluster’
> gmake[2]: *** [libhbmgmt_la-mgmt_lib.lo] Error 1
> 
> 
> 
> Can be this a dependencies problem???
Weird. Haven't met any problem to build it against pacemaker-1.1.7.

> Anyone has succesfully installed gui on centos 6?
I guess you have installed the corresponding pacemaker-libs-devel,
right? If so, can you please try the attached patch?

Regards,
  Gao,Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
diff --git a/mgmt/daemon/mgmt_lib.c b/mgmt/daemon/mgmt_lib.c
index 9a064c6..2a6a62f 100644
--- a/mgmt/daemon/mgmt_lib.c
+++ b/mgmt/daemon/mgmt_lib.c
@@ -51,6 +51,7 @@
 #include 
 
 #include 
+#include 
 
 #ifdef SUPPORT_AIS
 #undef SUPPORT_AIS
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Re: [Linux-HA] Error compiling pacemaker gui on Centos 6

2012-09-06 Thread Gao,Yan
 -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char
> Libraries = -lbz2 -lplumb -lpils -lxml2 -lc -lpam -lrt -ldl -lltdl
> Now type 'gmake' to compile the system, noting that
> 'gmake' is often available as 'make'.
> 
> when i do gmake...
> 
> gmake[1]: Entering directory `/tmp/hb/Pacemaker-Python-GUI-efff2a4588e5/mgmt'
> Making all in daemon
> gmake[2]: Entering directory
> `/tmp/hb/Pacemaker-Python-GUI-efff2a4588e5/mgmt/daemon'
> /bin/sh ../../libtool --tag=CC --tag=CC --mode=compile gcc -std=gnu99
> -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include
> -I../../libltdl -I../../libltdl -I../../linux-ha -I../../linux-ha
> -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/libxml2 -I../../include -I../../include -I../../libltdl
> -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -g
> -O2 -I/usr/include/heartbeat -I/usr/include/pacemaker -fgnu89-inline
> -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo
> -c -o libhbmgmt_la-mgmt_lib.lo `test -f 'mgmt_lib.c' || echo
> './'`mgmt_lib.c
> libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../include -I../../libltdl -I../../libltdl
> -I../../linux-ha -I../../linux-ha -I../.. -I../..
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/include/libxml2 -I../../include -I../../include -I../../libltdl
> -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -g
> -O2 -I/usr/include/heartbeat -I/usr/include/pacemaker -fgnu89-inline
> -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ansi
> -D_GNU_SOURCE -DANSI_ONLY -ggdb3 -funsigned-char -MT
> libhbmgmt_la-mgmt_lib.lo -MD -MP -MF .deps/libhbmgmt_la-mgmt_lib.Tpo
> -c mgmt_lib.c -fPIC -DPIC -o .libs/libhbmgmt_la-mgmt_lib.o
> cc1: warnings being treated as errors
> mgmt_lib.c: In function ‘init_mgmt_lib’:
> mgmt_lib.c:97: error: implicit declaration of function ‘is_heartbeat_cluster’
> gmake[2]: *** [libhbmgmt_la-mgmt_lib.lo] Error 1
> gmake[2]: Leaving directory
> `/tmp/hb/Pacemaker-Python-GUI-efff2a4588e5/mgmt/daemon'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/tmp/hb/Pacemaker-Python-GUI-efff2a4588e5/mgmt'
> gmake: *** [all-recursive] Error 1
> 
> 
> any clues anyone? Pacemaker works OK, my problem is compiling gui only
Which version of pacemaker are you using?

If you are using pacemaker-1.1.x, you should use pacemaker-mgmt-2.1.x:
https://github.com/ClusterLabs/pacemaker-mgmt/

For pacemaker-1.0.x, use pacemaker-mgmt-2.0.x:
https://github.com/ClusterLabs/pacemaker-mgmt/tree/2.0

Regards,
  Gao,Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Re: [Linux-HA] The active trap of the SNMP is delayed.

2012-01-10 Thread Gao,Yan
Hi,

On 01/11/12 15:11, renayama19661...@ybb.ne.jp wrote:
> Hi Andrew, 
> Hi Yan,
> 
>> My bad, I didn't see Yan's reply.
>> He should have permissions now.
Andrew, thanks!

> 
> Thank you for comment!!


> 
> To Yan : 
>   * If you complete the commit to a repository of Andrew, I hope for release 
> of pygui2.0.1.
>   * We are going to release it in a site of Japan.
Hideo, all latest commits in "master" and "2.0" branch with "2.0.1" tag
have been pushed.

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-12-05 Thread Gao,Yan
Hi Andrew,

On 11/30/11 19:01, Gao,Yan wrote:
> Hi Andrew,
> 
> On 11/28/11 07:53, Andrew Beekhof wrote:
>> On Thu, Nov 24, 2011 at 7:50 PM, Gao,Yan  wrote:
>>> Hi Hideo,
>>>
>>> On 11/24/11 15:48, renayama19661...@ybb.ne.jp wrote:
>>>> Hi Yan,
>>>>
>>>> About this matter, were you selected?
>>>>
>>>> Best Regards,
>>>> Hideo Yamauchi.
>>>>
>>>> --- On Wed, 2011/9/21, Gao,Yan  wrote:
>>>>
>>>>>
>>>>> On 09/19/11 12:19, renayama19661...@ybb.ne.jp wrote:
>>>>>> Hi Andrew,
>>>>>>
>>>>>>> I can create a place for it on clusterlabs.org or github if thats
>>>>>>> where Yan would like it to live,
>>>>> Thanks!
>>>>>
>>>>>> but the conversion itself it for the
>>>>>>> project owner to do (and verify)  ;-)
>>>>> OK. I'll convert it and decide where to host it.
>>> I've converted it, and for now put it to:
>>> https://github.com/gao-yan/pacemaker-mgmt
>>>
>>> Andrew, how do you think to create a place for it from
>>> https://github.com/ClusterLabs?
>>
>> I've cloned it into the ClusterLabs area. 
> Thanks for doing that!
> 
>> Let me know if you can't push there.
> OK. I think I'll do the first push soon. :-)
It seems that I don't have the permission to the repo:

ERROR: Permission to ClusterLabs/pacemaker-mgmt.git denied to gao-yan.
fatal: The remote end hung up unexpectedly

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-12-05 Thread Gao,Yan
Hi Hideo,

On 12/02/11 14:38, renayama19661...@ybb.ne.jp wrote:
> Hi Yan,
> Hi Andrew,
> 
> I confirmed movement in combination with Pacemaker1.0.12 in a repository of 
> your test.
>  * https://github.com/gao-yan/pacemaker-mgmt/commits/2.0-test
> 
> 
> On my test, both SNMP and GUI worked without a problem.
> 
> Please release the contents of this repository as GUI for Pacemaker1.0 system.
Created 2.0 branch and tagged "pacemaker-mgmt-2.0.1" which is compatible
with pacemaker-1.0.x.

https://github.com/gao-yan/pacemaker-mgmt/tree/2.0

Please verify it before I pushed it to ClusterLabs.

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Antw: Re: Q: "cib-last-written"

2011-12-01 Thread Gao,Yan
On 12/01/11 16:10, Ulrich Windl wrote:
>>>> "Gao,Yan"  schrieb am 01.12.2011 um 06:55 in Nachricht
> <4ed716be.9090...@suse.com>:
>> Hi,
>>
>> On 11/30/11 21:35, Ulrich Windl wrote:
>>> Hi!
>>>
>>> Simple question: when is the attribute "cib-last-written" in XML's "cib" 
>> element updated?
>> When "//cib/configuration" is changed.
> 
> So why isn't that an attribute of  then?
Actually besides that, changes on some attributes of  will trigger
to update "cib-last-written" too, such as "validate-with".

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Q: "cib-last-written"

2011-11-30 Thread Gao,Yan
Hi,

On 11/30/11 21:35, Ulrich Windl wrote:
> Hi!
> 
> Simple question: when is the attribute "cib-last-written" in XML's "cib" 
> element updated?
When "//cib/configuration" is changed.

> 
> I have a CIB that was changed (new epoch) today, but the "cib-last-written" 
> is "Thu Sep 29 08:24:01 2011"
> 
> Regards,
> Ulrich
> 
> 
> ___
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> 
> 

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-11-30 Thread Gao,Yan
Hi Andrew,

On 11/28/11 07:53, Andrew Beekhof wrote:
> On Thu, Nov 24, 2011 at 7:50 PM, Gao,Yan  wrote:
>> Hi Hideo,
>>
>> On 11/24/11 15:48, renayama19661...@ybb.ne.jp wrote:
>>> Hi Yan,
>>>
>>> About this matter, were you selected?
>>>
>>> Best Regards,
>>> Hideo Yamauchi.
>>>
>>> --- On Wed, 2011/9/21, Gao,Yan  wrote:
>>>
>>>>
>>>> On 09/19/11 12:19, renayama19661...@ybb.ne.jp wrote:
>>>>> Hi Andrew,
>>>>>
>>>>>> I can create a place for it on clusterlabs.org or github if thats
>>>>>> where Yan would like it to live,
>>>> Thanks!
>>>>
>>>>> but the conversion itself it for the
>>>>>> project owner to do (and verify)  ;-)
>>>> OK. I'll convert it and decide where to host it.
>> I've converted it, and for now put it to:
>> https://github.com/gao-yan/pacemaker-mgmt
>>
>> Andrew, how do you think to create a place for it from
>> https://github.com/ClusterLabs?
> 
> I've cloned it into the ClusterLabs area. 
Thanks for doing that!

> Let me know if you can't push there.
OK. I think I'll do the first push soon. :-)

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-11-30 Thread Gao,Yan
Hi Hideo,

On 11/25/11 08:26, renayama19661...@ybb.ne.jp wrote:
> Hi Yan,
> 
> I confirmed contents.
> I think that I do not have any problem.
Nice, thanks for doing that!

> 
> I demand that I prepare the tag of 2.0.1 version that applied the next patch.
>  * http://hg.clusterlabs.org/pacemaker/pygui/rev/c08b84a8203f
> 
> Because we want latest GUI for Pacemaker1.0.
I pushed a new branch "2.0-test" which is supposed to be compatible with
pacemaker-1.0.x:

https://github.com/gao-yan/pacemaker-mgmt/commits/2.0-test

Could you please build and test it against pacemaker-1.0 branch?

If everything works fine, I'll make a "2.0" branch and tag a 2.0.1 version.

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-11-24 Thread Gao,Yan
Hi Hideo,

On 11/24/11 15:48, renayama19661...@ybb.ne.jp wrote:
> Hi Yan,
> 
> About this matter, were you selected?
> 
> Best Regards,
> Hideo Yamauchi.
> 
> --- On Wed, 2011/9/21, Gao,Yan  wrote:
> 
>>
>> On 09/19/11 12:19, renayama19661...@ybb.ne.jp wrote:
>>> Hi Andrew,
>>>
>>>> I can create a place for it on clusterlabs.org or github if thats
>>>> where Yan would like it to live,
>> Thanks!
>>
>>> but the conversion itself it for the
>>>> project owner to do (and verify)  ;-)
>> OK. I'll convert it and decide where to host it.
I've converted it, and for now put it to:
https://github.com/gao-yan/pacemaker-mgmt

Andrew, how do you think to create a place for it from
https://github.com/ClusterLabs?

Thanks,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Q: Utilization and resource groups

2011-10-12 Thread Gao,Yan
On 10/12/11 15:42, Ulrich Windl wrote:
> Hello,
> 
> I have a question: when I have a resource group where the last resource has 
> utilization attributes, I see the following effect (SLES11 SP1):
> 
> All the resources start up on one node, but not the one with utilization 
> attributes. So effectively the group does not start up successfully. This is 
> especially bad that another node in the cluster would have the capacity to 
> start up that resource with utilization attributes.
Could you please send out your configuration?

> 
> So do I have to set utilization attributes at the group level?
No, we can only set utilization for primitive resources.

> If so, that would be inconsistent with stickiness (for example) where all the 
> stickinesses are added to form the group's stickiness.
> 
> Also with the great policy engine: Can't it find out that the capacity on one 
> node is insufficient to start all the resources in one group? Instead of 
> starting to fire up a dead end, why not migrating the resource group to 
> another node?
> 
> Is it a bug in the policy engine or LRM?
> 

Regards,
  Gaoyan
--
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-09-20 Thread Gao,Yan

On 09/19/11 12:19, renayama19661...@ybb.ne.jp wrote:
> Hi Andrew,
> 
>> I can create a place for it on clusterlabs.org or github if thats
>> where Yan would like it to live,
Thanks!

> but the conversion itself it for the
>> project owner to do (and verify)  ;-)
OK. I'll convert it and decide where to host it.

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-08-21 Thread Gao,Yan
Hi Hideo,

On 08/04/11 08:13, renayama19661...@ybb.ne.jp wrote:
> Hi Yan,
> 
>> Pushed. Since we don't have a separate branch, you might need to
>> back-port this patch to pacemaker-mgmt-2.0.0, which is compatible with
>> pacemaker-1.0.x
> 
> Thanks!!
> 
> However, we need the release of pacemaker-mgmt for Pacemaker1.0.
> 
> Is it impossible you apply a patch to a repository of pacemaker-mgmt-2.0.0, 
> and to release?
Probably we'll need to ask Andrew to help move pacemaker-mgmt to git
later. Then we can create a separate branch/repo for pacemaker-mgmt-2.0
which would be keeping compatible with pacemaker-1.0

BTW, pacemaker-1.1 has been merged with devel repo. The tip of
pacemaker-mgmt can be built against pacemaker-1.1 now.

Regards,
  Gaoyan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-08-03 Thread Gao,Yan
Hi Hideo,

On 08/02/11 09:14, renayama19661...@ybb.ne.jp wrote:
> Hi Yan,
> 
> I confirmed that a trap was transmitted with a patch definitely.
OK, thanks!

> 
> We request that we apply a patch to each pacemaker-mgmt of pacemaker1.0 and 
> pacemaker1.1.
Pushed. Since we don't have a separate branch, you might need to
back-port this patch to pacemaker-mgmt-2.0.0, which is compatible with
pacemaker-1.0.x

>  
>  * After this correction, pacemaker-mgmt of Pacemaker1.0 hopes that a new 
> version is released.( pacemaker-mgmt-2.1.0 ? )
>
We'll probably tag a new version in the near future.

Regards,
  Gao,Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-07-28 Thread Gao,Yan


On 07/29/11 08:29, renayama19661...@ybb.ne.jp wrote:
>>>
>>> I think that the following correction is necessary.
>>> snmp_subagent/hbagent.c
>>> (snip)
>>>  } else {
>>>
>>>  /* snmp request */
>>>  snmp_read(&fdset);
>>>
>>>  ret = handle_heartbeat_msg(); > read 
>>> queueing msg.!!
>>
>> I suggest to place this before the select instead.
>> Or immediately after each call that involves the read_api_msg or
>> enqueue_msg.
>>
>> Probably easier to just place it before the select, or any other call
>> that may sleep or block for some time.
> 
> Thank you for the suggestion of the correction.
> I want to wait for the opinion of Mr. Yan.
> 
>> As hbagent.c was dropped from the heartbeat source tree three years ago,
>> you will have to carry that patch yourself, I'm affraid.
>>
>> Unless someone resurrects the hbagent for current heartbeat,
>> if still applicable, and possibly improves/integrates it
>> with the pacemaker side of things.
> 
> We do not think about the correction of Heartbeat, too for the moment.
> We think that only the correction of Pacemaker-mgmt is enough.
That attached patch places it at the end of the loop. I think it should
work. Please give it a test.

Regards,
  Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.

-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
diff -r 1a1d9055abec snmp_subagent/hbagent.c
--- a/snmp_subagent/hbagent.c	Wed Jun 01 16:32:23 2011 +0800
+++ b/snmp_subagent/hbagent.c	Fri Jul 29 12:09:39 2011 +0800
@@ -1669,6 +1669,15 @@ process_pending:
 		run_alarms();
 		netsnmp_check_outstanding_agent_requests();
 
+#if SUPPORT_HEARTBEAT
+		if (is_heartbeat_cluster()) {
+			if ((ret = handle_heartbeat_msg()) == HA_FAIL) {
+cl_log(LOG_DEBUG, "no heartbeat. quit now.");
+hb_already_dead = 1;
+break;
+			}
+		}
+#endif
 	}
 
 	/* at shutdown time */
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Re: [Linux-HA] The active trap of the SNMP is delayed.

2011-07-27 Thread Gao,Yan
On 07/26/11 12:43, renayama19661...@ybb.ne.jp wrote:
> Hi Lars,
> Hi All,
> 
> A cause to be delayed became clear.
> 
> This problem occurs by a timing.
> 
> When hbagent receives F_STATUS message while hbagent waits for a reply of the 
> api communication, 
Under this circumstance, is there a specific heartbeat op that hbagent
is waiting for?

> F_STATUS is performed queueing of.
> 
> When hbagent caught the event from Heartbeat, this message is handled.
> Therefore, it is handled at the time of events such as one down of the 
> inter-connect.
> 
> Therefore, the active trap of the node is transmitted when inter-connect fell.
> 
> /*
>  * Read an API message.  All other messages are enqueued to be read later.
>  */
> static struct ha_msg *
> read_api_msg(llc_private_t* pi)
> {
> 
>   for (;;) {
>   struct ha_msg*  msg;
>   const char *type;
>   
>   pi->chan->ops->waitin(pi->chan);
>   if (pi->chan->ch_status  == IPC_DISCONNECT){
>   break;
>   }
>   if ((msg=msgfromIPC(pi->chan, 0)) == NULL) {
>   ha_api_perror("read_api_msg: "
> "Cannot read reply from IPC channel");
>   continue;
>   }
>   if ((type=ha_msg_value(msg, F_TYPE)) != NULL
>   &&  strcmp(type, T_APIRESP) == 0) {
>   return(msg);
>   }
>   /* Got an unexpected non-api message */
>   /* Queue it up for reading later */
>   enqueue_msg(pi, msg);
>   }
>   /*NOTREACHED*/
>   return(NULL);
> }
> 
> 
> 
> I think that the following correction is necessary.
> snmp_subagent/hbagent.c
> (snip)
> } else {
> 
> /* snmp request */
> snmp_read(&fdset);
> 
> ret = handle_heartbeat_msg(); > read 
> queueing msg.!!
> }
> (snip)
I'm still confused about invoking handle_heartbreat_msg() when select()
finds that the SNMP socket has input. Is it an appropriate timing?

Regards,
  Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] mgmtd: [xxx]: ERROR: on_listen attach server socket failed

2011-06-15 Thread Gao,Yan
On 06/15/11 13:13, 전양백 wrote:
> Hi,
> 
>  
> 
> We are getting "mgmtd: [xxx]: ERROR: on_listen attach server socket failed"
> 
> errors in logs time to time.
> 
>  
> 
> Any idea what it means and what is the cause ?  Cluster looks OK though.
After accepting a connection request from the client, mgmtd will need to
create a gnutls session on the socket for communication.  While it seems
to have failed for you.  You need to confirm the mgmtd was compiled
against the corresponding gnutls.

Regards,
  Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Re: [Linux-HA] mgmtd: [1122]: ERROR: on_listen protocol mismatch. Want 2.1 but got 1.0

2011-06-10 Thread Gao,Yan


On 06/10/11 09:47, Tim Serong wrote:
> On 10/06/11 07:14, Michael Pelletier wrote:
>> Please help this is driving me nutts
>>
>> On Jun 09, 2011, at 04:48 PM, Michael Pelletier  
>> wrote:
>>
>>> Hello,
>>>
>>> I get this error when trying to connect to mgmtd from the Pacemaker GUI 
>>> Client.
>>>
>>> mgmtd: [1122]: ERROR: on_listen protocol mismatch Want 2.1 but got 1.0
>>>
>>> I am using the client heartbeat-gui-2.1.3-3.el5.centos
>>>
>>> Anyone know what is wrong?
> 
> I'm guessing you need a newer version of the GUI on your client, i.e. 
> one that matches the version of heartbeat-gui or pacemaker-mgmt, or 
> whatever is installed on your cluster node(s).
Indeed. On the client machine, you could only install the
pacemaker-mgmt-client.

Regards,
  Yan
-- 
Gao,Yan 
Software Engineer
China Server Team, SUSE.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems