<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Andrew, Lars,<BR>
<BR>
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. <BR>
<BR>
I've started to respond with how this happens, but have been pulled off to a higher priority task.&nbsp; Back when I have the resolved.<BR>
<BR>
Bob Haxo<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Thu, 2014-02-20 at 07:56 -0800, Bob Haxo wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Andrew,</FONT>

<FONT COLOR="#000000">I think that this is what you identified:</FONT>

<FONT COLOR="#000000">This error appears to be related to the two instances of &lt;meta_attributes&gt; with </FONT>
<FONT COLOR="#000000">libvirtd-clone, both which contain a name=&quot;target-role&quot; value=&quot;Stopped&quot;.  </FONT>
<FONT COLOR="#000000">Deleted one of these entries and the error did not occur.</FONT>

<FONT COLOR="#000000">     &lt;clone id=&quot;libvirtd-clone&quot;&gt;</FONT>
<FONT COLOR="#000000">        &lt;primitive class=&quot;lsb&quot; id=&quot;libvirtd&quot; type=&quot;libvirtd&quot;&gt;</FONT>
<FONT COLOR="#000000">          &lt;operations&gt;</FONT>
<FONT COLOR="#000000">            &lt;op id=&quot;libvirtd-monitor-interval-15&quot; interval=&quot;15&quot; name=&quot;monitor&quot; start-delay=&quot;15&quot; timeout=&quot;15&quot;/&gt;</FONT>
<FONT COLOR="#000000">            &lt;op id=&quot;libvirtd-start-interval-0&quot; interval=&quot;0&quot; name=&quot;start&quot; on-fail=&quot;restart&quot; timeout=&quot;15&quot;/&gt;</FONT>
<FONT COLOR="#000000">            &lt;op id=&quot;libvirtd-stop-interval-0&quot; interval=&quot;0&quot; name=&quot;stop&quot; on-fail=&quot;ignore&quot; timeout=&quot;15&quot;/&gt;</FONT>
<FONT COLOR="#000000">          &lt;/operations&gt;</FONT>
<FONT COLOR="#000000">          &lt;meta_attributes id=&quot;libvirtd-meta_attributes&quot;/&gt;</FONT>
<FONT COLOR="#000000">        &lt;/primitive&gt;</FONT>
<FONT COLOR="#000000">        &lt;meta_attributes id=&quot;libvirtd-clone-meta&quot;&gt;</FONT>
<FONT COLOR="#000000">          &lt;nvpair id=&quot;libvirtd-interleave&quot; name=&quot;interleave&quot; value=&quot;true&quot;/&gt;</FONT>
<FONT COLOR="#000000">          &lt;nvpair id=&quot;libvirtd-ordered&quot; name=&quot;ordered&quot; value=&quot;true&quot;/&gt;</FONT>
<FONT COLOR="#000000">          &lt;nvpair id=&quot;libvirtd-clone-meta-target-role&quot; name=&quot;target-role&quot; value=&quot;Stopped&quot;/&gt;</FONT>
<FONT COLOR="#000000">        &lt;/meta_attributes&gt;</FONT>
<FONT COLOR="#000000">        &lt;meta_attributes id=&quot;libvirtd-clone-meta_attributes&quot;&gt;</FONT>
<FONT COLOR="#000000">          &lt;nvpair id=&quot;libvirtd-clone-meta_attributes-target-role&quot; name=&quot;target-role&quot; value=&quot;Stopped&quot;/&gt;</FONT>
<FONT COLOR="#000000">        &lt;/meta_attributes&gt;</FONT>
<FONT COLOR="#000000">      &lt;/clone&gt;</FONT>

<FONT COLOR="#000000">I do occasionally use a crmsh command, mostly the &quot;crm resource cleanup &lt;resource&gt;&quot; ...</FONT>
<FONT COLOR="#000000">the pcs version of this seems to never cleanup the remote system entries.  I classify</FONT>
<FONT COLOR="#000000">this as a bug that I have not reported.</FONT>

<FONT COLOR="#000000">So, yes, how the duplicate entry got there is probably the crux of the issue.  And</FONT>
<FONT COLOR="#000000">I have no answer.  I have not used crmsh to create resources (the creates are </FONT>
<FONT COLOR="#000000">scripted using pcs cmds).  Perhaps I used a &quot;crm stop&quot;  rather than a &quot;pcs disable&quot;.</FONT>

<FONT COLOR="#000000">Regardless, even if RH is not going to support crmsh, at least RH needs to be sensitive</FONT>
<FONT COLOR="#000000">to the use of crmsh with their PCS Pacemaker implementation.</FONT>

<FONT COLOR="#000000">I'll test/investigate the &quot;crm stop&quot; and see whether this creates the additional entry.</FONT>

<FONT COLOR="#000000">Cheers,</FONT>
<FONT COLOR="#000000">Bob Haxo</FONT>




<FONT COLOR="#000000">On Thu, 2014-02-20 at 10:12 +1100, Andrew Beekhof wrote:</FONT>
<FONT COLOR="#000000">&gt; Have you been mixing pcs and crmsh again? :-)</FONT>
<FONT COLOR="#000000">&gt; The interesting part is how the dup got in there in the first place.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Can you remove both settings and try to recreate that step?</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; On 20 Feb 2014, at 9:39 am, Bob Haxo &lt;<A HREF="mailto:bhaxo@sgi.com">bhaxo@sgi.com</A>&gt; wrote:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; Chris, was easy to duplicate ... I thought that I had cleared </FONT>
<FONT COLOR="#000000">&gt; &gt; the error, but that had not happened.</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; Bob Haxo</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; [root@mici-admin ~]# pcs resource disable virt</FONT>
<FONT COLOR="#000000">&gt; &gt; [root@mici-admin ~]# pcs resource disable libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt; Error: Error performing operation: Invalid argument</FONT>
<FONT COLOR="#000000">&gt; &gt; Multiple attributes match name=target-role</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta_attributes-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; [root@mici-admin ~]# pcs --debug resource disable libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt; Running: /usr/sbin/crm_resource -r libvirtd-clone -m -p target-role -v Stopped</FONT>
<FONT COLOR="#000000">&gt; &gt; Return Value: 22</FONT>
<FONT COLOR="#000000">&gt; &gt; --Debug Output Start--</FONT>
<FONT COLOR="#000000">&gt; &gt; Error performing operation: Invalid argument</FONT>
<FONT COLOR="#000000">&gt; &gt; Multiple attributes match name=target-role</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta_attributes-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; --Debug Output End--</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; Error: Error performing operation: Invalid argument</FONT>
<FONT COLOR="#000000">&gt; &gt; Multiple attributes match name=target-role</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta_attributes-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; [root@mici-admin ~]# pcs resource disable libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt; Error: Error performing operation: Invalid argument</FONT>
<FONT COLOR="#000000">&gt; &gt; Multiple attributes match name=target-role</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;  Value: Started        (id=libvirtd-clone-meta_attributes-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; On Wed, 2014-02-19 at 15:23 -0600, Chris Feist wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; On 02/19/2014 11:16 AM, Bob Haxo wrote:</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Encountered this error with pcs but not with crm.  Looks like a regex</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; error, with the existing regex grabbing all strings starting with the</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; string &quot;libvirtd-clone&quot; ...</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; [root@mici-admin2 ~]# pcs resource disable libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Error: Error performing operation: Invalid argument</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Multiple attributes match name=target-role</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;   Value: Started        (id=libvirtd-clone-meta-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;   Value: Started        (id=libvirtd-clone-meta_attributes-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; [root@mici-admin ~]# crm resource stop libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; &lt;&lt;no error, success&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; [root@mici-admin ~]# pcs resource enable libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Error: Error performing operation: Invalid argument</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Multiple attributes match name=target-role</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;   Value: Stopped        (id=libvirtd-clone-meta-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;   Value: Stopped        (id=libvirtd-clone-meta_attributes-target-role)</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; xml:</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;       &lt;clone id=&quot;libvirtd-clone&quot;&gt;</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;         &lt;meta_attributes id=&quot;libvirtd-clone-meta&quot;&gt;</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;           &lt;nvpair id=&quot;libvirtd-clone-meta-target-role&quot; name=&quot;target-role&quot; value=&quot;Stopped&quot;/&gt;</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;         &lt;meta_attributes id=&quot;libvirtd-clone-meta_attributes&quot;&gt;</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt;           &lt;nvpair id=&quot;libvirtd-clone-meta_attributes-target-role&quot; name=&quot;target-role&quot; value=&quot;Stopped&quot;/&gt;</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Regards,</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Bob Haxo</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; Can you send the output of the following command:</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; pcs --debug resource disable libvirtd-clone</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; Thanks,</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; Chris</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; _______________________________________________</FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Pacemaker mailing list: <A HREF="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; <A HREF="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A></FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Project Home: <A HREF="http://www.clusterlabs.org">http://www.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Getting started: <A HREF="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A></FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; Bugs: <A HREF="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; &gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt;&gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; _______________________________________________</FONT>
<FONT COLOR="#000000">&gt; &gt; Pacemaker mailing list: <A HREF="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; &gt; <A HREF="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A></FONT>
<FONT COLOR="#000000">&gt; &gt; </FONT>
<FONT COLOR="#000000">&gt; &gt; Project Home: <A HREF="http://www.clusterlabs.org">http://www.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; &gt; Getting started: <A HREF="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A></FONT>
<FONT COLOR="#000000">&gt; &gt; Bugs: <A HREF="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; _______________________________________________</FONT>
<FONT COLOR="#000000">&gt; Pacemaker mailing list: <A HREF="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; <A HREF="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A></FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Project Home: <A HREF="http://www.clusterlabs.org">http://www.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">&gt; Getting started: <A HREF="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A></FONT>
<FONT COLOR="#000000">&gt; Bugs: <A HREF="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</A></FONT>


<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Pacemaker mailing list: <A HREF="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</A></FONT>

<FONT COLOR="#000000">Project Home: <A HREF="http://www.clusterlabs.org">http://www.clusterlabs.org</A></FONT>
<FONT COLOR="#000000">Getting started: <A HREF="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</A></FONT>
<FONT COLOR="#000000">Bugs: <A HREF="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>