Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-21 Thread Bob Haxo
https://savannah.nongnu.org/bugs/index.php?41660 On Fri, 2014-02-21 at 10:53 +0100, Kristoffer Grönlund wrote: > On Fri, 21 Feb 2014 08:51:58 +0100 > Lars Marowsky-Bree wrote: > > > On 2014-02-20T16:03:36, Bob Haxo wrote: > > > > > Sooo, seems that we need to kick this over the fence to the

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-21 Thread Bob Haxo
Kristoffer, Lars, I will file the issue. We need to track this and link with our internal bug report. Thanks Bob Haxo On Fri, 2014-02-21 at 10:53 +0100, Kristoffer Grönlund wrote: > On Fri, 21 Feb 2014 08:51:58 +0100 > Lars Marowsky-Bree wrote: > > > On 2014-02-20T16:03:36, Bob Haxo wrote

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-21 Thread Kristoffer Grönlund
On Fri, 21 Feb 2014 08:51:58 +0100 Lars Marowsky-Bree wrote: > On 2014-02-20T16:03:36, Bob Haxo wrote: > > > Sooo, seems that we need to kick this over the fence to the crmsh > > folks ... or the SUSE folks, if they are maintaining crmsh. > > Yes, please file a bug. This shouldn't happen (I th

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Lars Marowsky-Bree
On 2014-02-20T16:03:36, Bob Haxo wrote: > Sooo, seems that we need to kick this over the fence to the crmsh > folks ... or the SUSE folks, if they are maintaining crmsh. Yes, please file a bug. This shouldn't happen (I thought we had exorcized this class of bugs.) https://savannah.nongnu.org/bu

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Bob Haxo
On Fri, 2014-02-21 at 10:46 +1100, Andrew Beekhof wrote: > On 21 Feb 2014, at 10:25 am, Bob Haxo wrote: > > > Andrew, > > > >> From my vantage point, it will be most unfortunate if pcs and crm cannot > > both be used for routine start and stop of resources, and other routine > > tasks. > > Agr

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Andrew Beekhof
On 21 Feb 2014, at 10:25 am, Bob Haxo wrote: > Andrew, > >> From my vantage point, it will be most unfortunate if pcs and crm cannot > both be used for routine start and stop of resources, and other routine > tasks. Agreed. AFAICS, it's crmsh thats creating the duplicate entries though. Not

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Bob Haxo
Andrew, >From my vantage point, it will be most unfortunate if pcs and crm cannot both be used for routine start and stop of resources, and other routine tasks. I am using pcs (almost exclusively) for my RHEL6.5 Pacemaker port. But, I am **REALLY** hoping that I can present a relatively consiste

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Andrew Beekhof
On 21 Feb 2014, at 4:30 am, Bob Haxo wrote: > Andrew, Lars, > > Yes, I have determined that this error is the result of mixing crmsh > stop/start with pcs disable/enable (or maybe pcs stop/start mis-usage) > commands. Specifically it will be when you use pcs first and crmsh afterwards. I ju

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Bob Haxo
Andrew, Lars, Yes, I have determined that this error is the result of mixing crmsh stop/start with pcs disable/enable (or maybe pcs stop/start mis-usage) commands. I've started to respond with how this happens, but have been pulled off to a higher priority task. Back when I have the resolved.

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Bob Haxo
Andrew, I think that this is what you identified: This error appears to be related to the two instances of with libvirtd-clone, both which contain a name="target-role" value="Stopped". Deleted one of these entries and the error did not occur.

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Andrew Beekhof
On 20 Feb 2014, at 8:03 pm, Lars Marowsky-Bree wrote: > On 2014-02-19T14:39:30, Bob Haxo wrote: > >> Chris, was easy to duplicate ... I thought that I had cleared >> the error, but that had not happened. >> >> Bob Haxo >> >> [root@mici-admin ~]# pcs resource disable virt >> [root@mici-admin

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-20 Thread Lars Marowsky-Bree
On 2014-02-19T14:39:30, Bob Haxo wrote: > Chris, was easy to duplicate ... I thought that I had cleared > the error, but that had not happened. > > Bob Haxo > > [root@mici-admin ~]# pcs resource disable virt > [root@mici-admin ~]# pcs resource disable libvirtd-clone > Error: Error performing o

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-19 Thread Andrew Beekhof
Have you been mixing pcs and crmsh again? :-) The interesting part is how the dup got in there in the first place. Can you remove both settings and try to recreate that step? On 20 Feb 2014, at 9:39 am, Bob Haxo wrote: > Chris, was easy to duplicate ... I thought that I had cleared > the error

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-19 Thread Bob Haxo
Chris, was easy to duplicate ... I thought that I had cleared the error, but that had not happened. Bob Haxo [root@mici-admin ~]# pcs resource disable virt [root@mici-admin ~]# pcs resource disable libvirtd-clone Error: Error performing operation: Invalid argument Multiple attributes match name=

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-19 Thread Bob Haxo
Chris, I'll try to get the cluster back into the state where the issue was observed. Bob Haxo On Wed, 2014-02-19 at 15:23 -0600, Chris Feist wrote: > On 02/19/2014 11:16 AM, Bob Haxo wrote: > > Encountered this error with pcs but not with crm. Looks like a regex > > error, with the existing reg

Re: [Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-19 Thread Chris Feist
On 02/19/2014 11:16 AM, Bob Haxo wrote: Encountered this error with pcs but not with crm. Looks like a regex error, with the existing regex grabbing all strings starting with the string "libvirtd-clone" ... [root@mici-admin2 ~]# pcs resource disable libvirtd-clone Error: Error performing opera

[Pacemaker] possible regex error in "pcs resource enable/disable"

2014-02-19 Thread Bob Haxo
Encountered this error with pcs but not with crm. Looks like a regex error, with the existing regex grabbing all strings starting with the string "libvirtd-clone" ... [root@mici-admin2 ~]# pcs resource disable libvirtd-clone Error: Error performing operation: Invalid argument Multiple attributes