RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1190168 - [RFE] 'pcs cluster cib': implement --scope as cibadmin does
Summary: [RFE] 'pcs cluster cib': implement --scope as cibadmin does
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pcs
Version: 6.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
Steven J. Levine
URL:
Whiteboard:
Depends On: 1115537
Blocks: 1129871
TreeView+ depends on / blocked
 
Reported: 2015-02-06 14:44 UTC by michal novacek
Modified: 2015-07-22 06:16 UTC (History)
6 users (show)

Fixed In Version: pcs-0.9.138-1.el6
Doc Type: Enhancement
Doc Text:
Feature: Provide a way to edit/view part of the CIB. Reason: User wants to view/edit only part of the CIB. Result: User is able to view/edit part of the CIB.
Clone Of: 1115537
Environment:
Last Closed: 2015-07-22 06:16:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1446 0 normal SHIPPED_LIVE pcs bug fix and enhancement update 2015-07-20 18:43:57 UTC

Comment 2 Tomas Jelinek 2015-02-10 10:26:50 UTC
upstream patches:
https://github.com/feist/pcs/commit/4a13e8dad6b58c257151dfdf297d8529373d05a0
https://github.com/feist/pcs/commit/03b38736eef95a430e74298642cec3701cabc8d7


Before Fix:
[root@rh66-node1 ~]# rpm -q pcs
pcs-0.9.123-9.el6.x86_64

[root@rh66-node1:~]# ls scope=nodes
ls: cannot access scope=nodes: No such file or directory
[root@rh66-node1:~]# pcs cluster cib scope=nodes
[root@rh66-node1:~]# ls scope=nodes
scope=nodes
[root@rh66-node1:~]# head scope\=nodes
<cib admin_epoch="0" cib-last-written="Tue Feb 10 09:54:59 2015" crm_feature_set="3.0.9" epoch="325" have-quorum="1" num_updates="2" validate-with="pacemaker-2.0" dc-uuid="rh66-node2">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.11-97629de"/>
        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="cman"/>
        <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1423557153"/>
      </cluster_property_set>
    </crm_config>
    <nodes>

[root@rh66-node1:~]# EDITOR=head pcs cluster edit scope=nodes
<cib admin_epoch="0" cib-last-written="Tue Feb 10 09:54:59 2015" crm_feature_set="3.0.9" epoch="325" have-quorum="1" num_updates="2" validate-with="pacemaker-2.0" dc-uuid="rh66-node2">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.11-97629de"/>
        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="cman"/>
        <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1423557153"/>
      </cluster_property_set>
    </crm_config>
    <nodes>
CIB not updated, no changes detected

[root@rh66-node1:~]# pcs cluster cib cib.xml
[root@rh66-node1:~]# pcs cluster cib-push cib.xml scope=nodes

Usage: pcs cluster [commands]...
Configure cluster for use with pacemaker
...



After Fix:
[root@rh66-node1:~]# rpm -q pcs
pcs-0.9.138-1.el6.x86_64

[root@rh66-node1:~]# pcs cluster cib scope=nodes
<nodes>
  <node id="rh66-node2" uname="rh66-node2">
    <instance_attributes id="nodes-rh66-node2"/>
  </node>
  <node id="rh66-node1" uname="rh66-node1"/>
</nodes>

[root@rh66-node1:~]# EDITOR=head pcs cluster edit scope=nodes
<nodes>
  <node id="rh66-node2" uname="rh66-node2">
    <instance_attributes id="nodes-rh66-node2"/>
  </node>
  <node id="rh66-node1" uname="rh66-node1"/>
</nodes>
CIB not updated, no changes detected

[root@rh66-node1:~]# pcs resource create dummy Dummy
[root@rh66-node1:~]# pcs constraint location dummy prefers rh66-node1
[root@rh66-node1:~]# pcs constraint
Location Constraints:
  Resource: dummy
    Enabled on: rh66-node1 (score:INFINITY)
Ordering Constraints:
Colocation Constraints:
[root@rh66-node1:~]# echo "<cib><configuration><resources/><constraints/></configuration></cib>" > cib.xml
[root@rh66-node1:~]# pcs cluster cib-push cib.xml scope=constraints
CIB updated
[root@rh66-node1:~]# pcs constraint
Location Constraints:
Ordering Constraints:
Colocation Constraints:
[root@rh66-node1:~]# pcs resource
 dummy  (ocf::heartbeat:Dummy): Started rh66-node1

Comment 7 errata-xmlrpc 2015-07-22 06:16:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1446.html


Note You need to log in before you can comment on or make changes to this bug.