Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

Failure of the resource migration from GUI

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


renayama19661014 at ybb

Oct 30, 2008, 11:43 PM

Post #1 of 8 (858 views)
Permalink
Failure of the resource migration from GUI

Hi,

I performed the migration to the other nodes of the group resource from
GUI.(Pacemaker-Python-GUI-373fb737fcc5.tar.gz+OpenAIS+Pacemaker)

I appointed Force, but the resource did not move.

A f option seems not to be sent somehow or other.


The True judgment needs a "//" letter somehow or other.

--------mgmt/daemon/mgmt_crm.c-----------------------

if (STRNCMP_CONST(argv[3], "//True") == 0){
strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
}

-----------------------------------------------------

Because there is already a similar True judgment one place, a revision may be necessary for that.

I ask for judgment and the revision of the revision.

Best Regards,
Hideo Yamauchi.


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


renayama19661014 at ybb

Oct 31, 2008, 12:18 AM

Post #2 of 8 (813 views)
Permalink
Re: Failure of the resource migration from GUI [In reply to]

Hi,


Sorry....

Typo : if (STRNCMP_CONST(argv[3], "\\True") == 0){

Regards,

Hideo Yamauchi.

--- renayama19661014 [at] ybb wrote:

> Hi,
>
> I performed the migration to the other nodes of the group resource from
> GUI.(Pacemaker-Python-GUI-373fb737fcc5.tar.gz+OpenAIS+Pacemaker)
>
> I appointed Force, but the resource did not move.
>
> A f option seems not to be sent somehow or other.
>
>
> The True judgment needs a "//" letter somehow or other.
>
> --------mgmt/daemon/mgmt_crm.c-----------------------
>
> if (STRNCMP_CONST(argv[3], "//True") == 0){
> strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
> }
>
> -----------------------------------------------------
>
> Because there is already a similar True judgment one place, a revision may be necessary for
> that.
>
> I ask for judgment and the revision of the revision.
>
> Best Regards,
> Hideo Yamauchi.
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] clusterlabs
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


ygao at novell

Oct 31, 2008, 3:27 AM

Post #3 of 8 (818 views)
Permalink
Re: Failure of the resource migration from GUI [In reply to]

On Fri, 2008-10-31 at 16:18 +0900, renayama19661014 [at] ybb wrote:
> Hi,
>
>
> Sorry....
>
> Typo : if (STRNCMP_CONST(argv[3], "\\True") == 0){
Hmm, never met the problem. Could you pls add a new line as the
following to see what is printed?

haclient.py:
@@ -1637,6 +1637,7 @@
if migrate == None :
return

+ print migrate
manager.do_cmd("migrate\n%s\n%s\n\%s\n%s"
%(migrate["rsc"], migrate["to_node"], migrate["force"],
migrate["duration"]))
if manager.failed_reason != "" :

>
> Regards,
>
> Hideo Yamauchi.
>
> --- renayama19661014 [at] ybb wrote:
>
> > Hi,
> >
> > I performed the migration to the other nodes of the group resource from
> > GUI.(Pacemaker-Python-GUI-373fb737fcc5.tar.gz+OpenAIS+Pacemaker)
> >
> > I appointed Force, but the resource did not move.
> >
> > A f option seems not to be sent somehow or other.
> >
> >
> > The True judgment needs a "//" letter somehow or other.
> >
> > --------mgmt/daemon/mgmt_crm.c-----------------------
> >
> > if (STRNCMP_CONST(argv[3], "//True") == 0){
> > strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
> > }
> >
> > -----------------------------------------------------
> >
> > Because there is already a similar True judgment one place, a revision may be necessary for
> > that.
> >
> > I ask for judgment and the revision of the revision.
> >
> > Best Regards,
> > Hideo Yamauchi.

--
Yan Gao
China R&D Software Engineer
ygao [at] novell

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


renayama19661014 at ybb

Oct 31, 2008, 4:17 AM

Post #4 of 8 (817 views)
Permalink
RE: Failure of the resource migration from GUI [In reply to]

Hi Yan,

It confirmed it with the machine with a little different environment.
(CentOS5.2 on VirtualMachin, Python 2.4.3)

> + print migrate
Result :
{'duration': '', 'force': 'True', 'to_node': 'cent51-vm2', 'rsc':
'primitive'}

And, crm_resource that goes out to the log is the following.

Oct 31 20:14:22 cent51-vm1 crm_resource: [15882]: info: Invoked:
crm_resource -M -r primitive -H cent51-vm2
Oct 31 20:14:22 cent51-vm1 crm_resource: [15882]: notice: unpack_config: On
loss of CCM Quorum: Ignore

Is the influence of the difference between my environment and your
environment?

Best Regards,
Hideo Yamauchi.


> -----Original Message-----
> From: pacemaker-bounces [at] clusterlabs
> [mailto:pacemaker-bounces [at] clusterlabs]On Behalf Of Yan Gao
> Sent: Friday, October 31, 2008 7:28 PM
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] Failure of the resource migration from GUI
>
>
> On Fri, 2008-10-31 at 16:18 +0900, renayama19661014 [at] ybb wrote:
> > Hi,
> >
> >
> > Sorry....
> >
> > Typo : if (STRNCMP_CONST(argv[3], "\\True") == 0){
> Hmm, never met the problem. Could you pls add a new line as the
> following to see what is printed?
>
> haclient.py:
> @@ -1637,6 +1637,7 @@
> if migrate == None :
> return
>
> + print migrate
> manager.do_cmd("migrate\n%s\n%s\n\%s\n%s"
> %(migrate["rsc"],
> migrate["to_node"], migrate["force"],
> migrate["duration"]))
> if manager.failed_reason != "" :
>
> >
> > Regards,
> >
> > Hideo Yamauchi.
> >
> > --- renayama19661014 [at] ybb wrote:
> >
> > > Hi,
> > >
> > > I performed the migration to the other nodes of the group
> resource from
> > > GUI.(Pacemaker-Python-GUI-373fb737fcc5.tar.gz+OpenAIS+Pacemaker)
> > >
> > > I appointed Force, but the resource did not move.
> > >
> > > A f option seems not to be sent somehow or other.
> > >
> > >
> > > The True judgment needs a "//" letter somehow or other.
> > >
> > > --------mgmt/daemon/mgmt_crm.c-----------------------
> > >
> > > if (STRNCMP_CONST(argv[3], "//True") == 0){
> > > strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
> > > }
> > >
> > > -----------------------------------------------------
> > >
> > > Because there is already a similar True judgment one place, a
> revision may be necessary for
> > > that.
> > >
> > > I ask for judgment and the revision of the revision.
> > >
> > > Best Regards,
> > > Hideo Yamauchi.
>
> --
> Yan Gao
> China R&D Software Engineer
> ygao [at] novell
>
> Novell, Inc.
> SUSE® Linux Enterprise 10
> Your Linux is ready
> http://www.novell.com/linux
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] clusterlabs
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


ygao at novell

Nov 2, 2008, 11:03 PM

Post #5 of 8 (809 views)
Permalink
RE: Failure of the resource migration from GUI [In reply to]

On Fri, 2008-10-31 at 20:17 +0900, HIDEO YAMAUCHI wrote:
> Hi Yan,
>
> It confirmed it with the machine with a little different environment.
> (CentOS5.2 on VirtualMachin, Python 2.4.3)
>
> > + print migrate
> Result :
> {'duration': '', 'force': 'True', 'to_node': 'cent51-vm2', 'rsc':
> 'primitive'}
>
Strange, nothing is wrong. So could you pls add the following line in
mgmt_crm.c, you get "\\True" or "True" in the log?

mgmt/daemon/mgmt_crm.c
@@ -1124,6 +1124,7 @@
}
}

+ mgmt_log(LOG_WARNING, "migrate argument 3: %s", argv[3]);
if (STRNCMP_CONST(argv[3], "True") == 0){
strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
}

> And, crm_resource that goes out to the log is the following.
>
> Oct 31 20:14:22 cent51-vm1 crm_resource: [15882]: info: Invoked:
> crm_resource -M -r primitive -H cent51-vm2
> Oct 31 20:14:22 cent51-vm1 crm_resource: [15882]: notice:
> unpack_config: On
> loss of CCM Quorum: Ignore
>
> Is the influence of the difference between my environment and your
> environment?
>

Regards,
--
Yan Gao
China R&D Software Engineer
ygao [at] novell

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


renayama19661014 at ybb

Nov 3, 2008, 4:52 PM

Post #6 of 8 (798 views)
Permalink
RE: Failure of the resource migration from GUI [In reply to]

Hi Yan,

I referred to your patch.
I gave the following patch.

----------------------- patch ------------------------------------------------------------
+ mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd0:%s",argv[3]);
if (STRNCMP_CONST(argv[3], "True") == 0){
strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd1:%s",argv[3]);
}
+ mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd2:%s",cmd);

if (STRNCMP_CONST(argv[4], "") != 0){
if (regex_match(duration_regex, argv[4])) {
strncat(cmd, " -u \"", sizeof(cmd)-strlen(cmd)-1);
strncat(cmd, argv[4], sizeof(cmd)-strlen(cmd)-1);
strncat(cmd, "\"", sizeof(cmd)-strlen(cmd)-1);
}
else {
mgmt_log(LOG_ERR, "invalid duration specified: \"%s\"", argv[1]);
return strdup(MSG_FAIL"\nInvalid duration.\nPlease refer to "
"http://en.wikipedia.org/wiki/ISO_8601#Duration for examples
of valid durations");
}
}

strncat(cmd, " 2>&1", sizeof(cmd)-strlen(cmd)-1);
+ mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd3:%s",cmd);
------------------------------------------------------------------------------------

And the log when I chose True and False by operation to migrate was the following thing.

[root [at] ais- ~]# tail -f /var/log/messages | grep yamauchi
Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd0:\True
Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd2:crm_resource -M -r group -H
ais-2
Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd3:crm_resource -M -r group -H
ais-2 2>&1
Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd0:\False
Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd2:crm_resource -M -r group -H
ais-1
Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd3:crm_resource -M -r group -H
ais-1 2>&1

After all backslash seems to be in the top.

Possibly will not there be a problem at the time of the transfer of the parameter with the daemon?

Best Regards,
Hideo Yamauchi.

--- Yan Gao <ygao [at] novell> wrote:

> On Fri, 2008-10-31 at 20:17 +0900, HIDEO YAMAUCHI wrote:
> > Hi Yan,
> >
> > It confirmed it with the machine with a little different environment.
> > (CentOS5.2 on VirtualMachin, Python 2.4.3)
> >
> > > + print migrate
> > Result :
> > {'duration': '', 'force': 'True', 'to_node': 'cent51-vm2', 'rsc':
> > 'primitive'}
> >
> Strange, nothing is wrong. So could you pls add the following line in
> mgmt_crm.c, you get "\\True" or "True" $Bo;!&(Bn the log?
>
> mgmt/daemon/mgmt_crm.c
> @@ -1124,6 +1124,7 @@
> }
> }
>
> + mgmt_log(LOG_WARNING, "migrate argument 3: %s", argv[3]);
> if (STRNCMP_CONST(argv[3], "True") == 0){
> strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
> }
>
> > And, crm_resource that goes out to the log is the following.
> >
> > Oct 31 20:14:22 cent51-vm1 crm_resource: [15882]: info: Invoked:
> > crm_resource -M -r primitive -H cent51-vm2
> > Oct 31 20:14:22 cent51-vm1 crm_resource: [15882]: notice:
> > unpack_config: On
> > loss of CCM Quorum: Ignore
> >
> > Is the influence of the difference between my environment and your
> > environment?
> >
>
> Regards,
> --
> Yan Gao
> China R&D Software Engineer
> ygao [at] novell
>
> Novell, Inc.
> SUSE$BB.(B Linux Enterprise 10
> Your Linux is ready
> http://www.novell.com/linux
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] clusterlabs
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


ygao at novell

Nov 4, 2008, 2:47 AM

Post #7 of 8 (797 views)
Permalink
RE: Failure of the resource migration from GUI [In reply to]

On Tue, 2008-11-04 at 09:52 +0900, renayama19661014 [at] ybb wrote:
> Hi Yan,
>
> I referred to your patch.
> I gave the following patch.
>
> ----------------------- patch ------------------------------------------------------------
> + mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd0:%s",argv[3]);
> if (STRNCMP_CONST(argv[3], "True") == 0){
> strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
> mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd1:%s",argv[3]);
> }
> + mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd2:%s",cmd);
>
> if (STRNCMP_CONST(argv[4], "") != 0){
> if (regex_match(duration_regex, argv[4])) {
> strncat(cmd, " -u \"", sizeof(cmd)-strlen(cmd)-1);
> strncat(cmd, argv[4], sizeof(cmd)-strlen(cmd)-1);
> strncat(cmd, "\"", sizeof(cmd)-strlen(cmd)-1);
> }
> else {
> mgmt_log(LOG_ERR, "invalid duration specified: \"%s\"", argv[1]);
> return strdup(MSG_FAIL"\nInvalid duration.\nPlease refer to "
> "http://en.wikipedia.org/wiki/ISO_8601#Duration for examples
> of valid durations");
> }
> }
>
> strncat(cmd, " 2>&1", sizeof(cmd)-strlen(cmd)-1);
> + mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd3:%s",cmd);
> ------------------------------------------------------------------------------------
>
> And the log when I chose True and False by operation to migrate was the following thing.
>
> [root [at] ais- ~]# tail -f /var/log/messages | grep yamauchi
> Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd0:\True
> Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd2:crm_resource -M -r group -H
> ais-2
> Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd3:crm_resource -M -r group -H
> ais-2 2>&1
> Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd0:\False
> Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd2:crm_resource -M -r group -H
> ais-1
> Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd3:crm_resource -M -r group -H
> ais-1 2>&1
>
> After all backslash seems to be in the top.
>
> Possibly will not there be a problem at the time of the transfer of the parameter with the daemon?
No, my mistake:-)
Fixed:
http://hg.clusterlabs.org/pacemaker/pygui/rev/a087be359e3f

Regards,
--
Yan Gao
China R&D Software Engineer
ygao [at] novell

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


renayama19661014 at ybb

Nov 4, 2008, 4:22 AM

Post #8 of 8 (804 views)
Permalink
RE: Failure of the resource migration from GUI [In reply to]

Hi Yan,

I thank for your revision.

Thank you!

Best Regards,
Hideo Yamauchi.


--- Yan Gao <ygao [at] novell> wrote:

> On Tue, 2008-11-04 at 09:52 +0900, renayama19661014 [at] ybb wrote:
> > Hi Yan,
> >
> > I referred to your patch.
> > I gave the following patch.
> >
> > ----------------------- patch ------------------------------------------------------------
> > + mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd0:%s",argv[3]);
> > if (STRNCMP_CONST(argv[3], "True") == 0){
> > strncat(cmd, " -f", sizeof(cmd)-strlen(cmd)-1);
> > mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd1:%s",argv[3]);
> > }
> > + mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd2:%s",cmd);
> >
> > if (STRNCMP_CONST(argv[4], "") != 0){
> > if (regex_match(duration_regex, argv[4])) {
> > strncat(cmd, " -u \"", sizeof(cmd)-strlen(cmd)-1);
> > strncat(cmd, argv[4], sizeof(cmd)-strlen(cmd)-1);
> > strncat(cmd, "\"", sizeof(cmd)-strlen(cmd)-1);
> > }
> > else {
> > mgmt_log(LOG_ERR, "invalid duration specified: \"%s\"", argv[1]);
> > return strdup(MSG_FAIL"\nInvalid duration.\nPlease refer to "
> > "http://en.wikipedia.org/wiki/ISO_8601#Duration for
> examples
> > of valid durations");
> > }
> > }
> >
> > strncat(cmd, " 2>&1", sizeof(cmd)-strlen(cmd)-1);
> > + mgmt_log(LOG_INFO, "yamauchi ----- migrate_cmd3:%s",cmd);
> > ------------------------------------------------------------------------------------
> >
> > And the log when I chose True and False by operation to migrate was the following thing.
> >
> > [root [at] ais- ~]# tail -f /var/log/messages | grep yamauchi
> > Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd0:\True
> > Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd2:crm_resource -M -r
> group -H
> > ais-2
> > Nov 4 09:39:33 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd3:crm_resource -M -r
> group -H
> > ais-2 2>&1
> > Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd0:\False
> > Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd2:crm_resource -M -r
> group -H
> > ais-1
> > Nov 4 09:39:53 ais-1 mgmtd: [12837]: info: yamauchi ----- migrate_cmd3:crm_resource -M -r
> group -H
> > ais-1 2>&1
> >
> > After all backslash seems to be in the top.
> >
> > Possibly will not there be a problem at the time of the transfer of the parameter with the
> daemon?
> No, my mistake:-)
> Fixed:
> http://hg.clusterlabs.org/pacemaker/pygui/rev/a087be359e3f
>
> Regards,
> --
> Yan Gao
> China R&D Software Engineer
> ygao [at] novell
>
> Novell, Inc.
> SUSE$B>$!&(BLinux Enterprise 10
> Your Linux is ready
> http://www.novell.com/linux
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] clusterlabs
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.