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

Bob Haxo bhaxo at sgi.com
Wed Feb 19 17:16:57 UTC 2014


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 at mici-admin2 ~]# pcs resource disable libvirtd-clone
Error: Error performing operation: Invalid argument
Multiple attributes match name=target-role
  Value: Started        (id=libvirtd-clone-meta-target-role)
  Value: Started        (id=libvirtd-clone-meta_attributes-target-role)

[root at mici-admin ~]# crm resource stop libvirtd-clone

<<no error, success>>

[root at mici-admin ~]# pcs resource enable libvirtd-clone
Error: Error performing operation: Invalid argument
Multiple attributes match name=target-role
  Value: Stopped        (id=libvirtd-clone-meta-target-role)
  Value: Stopped        (id=libvirtd-clone-meta_attributes-target-role)

xml:
      <clone id="libvirtd-clone">
        <meta_attributes id="libvirtd-clone-meta">
          <nvpair id="libvirtd-clone-meta-target-role" name="target-role" value="Stopped"/>
        <meta_attributes id="libvirtd-clone-meta_attributes">
          <nvpair id="libvirtd-clone-meta_attributes-target-role" name="target-role" value="Stopped"/>

Regards,
Bob Haxo





More information about the Pacemaker mailing list