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 1619824 - RFE: have 'pcs resource delete' be able to act on multiple resources like enable and disable do
Summary: RFE: have 'pcs resource delete' be able to act on multiple resources like ena...
Keywords:
Status: CLOSED DUPLICATE of bug 1420298
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.6
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-21 20:11 UTC by Corey Marthaler
Modified: 2018-08-22 08:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-22 08:06:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2018-08-21 20:11:30 UTC
Description of problem:

# Two resources on same cmdline
[root@mckinley-01 ~]# pcs resource enable HA_LVM2 HA_LVM3
[root@mckinley-01 ~]# pcs status
Cluster name: MCKINLEY
Stack: corosync
Current DC: mckinley-02 (version 1.1.19-3.el7-c3c624ea3d) - partition with quorum
Last updated: Tue Aug 21 15:03:50 2018
Last change: Tue Aug 21 15:03:43 2018 by root via cibadmin on mckinley-01
 
3 nodes configured
11 resources configured
 
Online: [ mckinley-01 mckinley-02 mckinley-03 ]
 
Full list of resources:
 
 mckinley-apc   (stonith:fence_apc):    Started mckinley-01
 Clone Set: dlm_for_lvmlockd-clone [dlm_for_lvmlockd]
     Started: [ mckinley-01 mckinley-02 mckinley-03 ]
 Clone Set: lvmlockd-clone [lvmlockd]
     Started: [ mckinley-01 mckinley-02 mckinley-03 ]
 Resource Group: HA_LVM2
     lvm2       (ocf::heartbeat:LVM-activate):  Started mckinley-02
     ha2        (ocf::heartbeat:Filesystem):    Started mckinley-02
 Resource Group: HA_LVM3
     lvm3       (ocf::heartbeat:LVM-activate):  Started mckinley-03
     ha3        (ocf::heartbeat:Filesystem):    Started mckinley-03
 
Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
 
 
[root@mckinley-01 ~]# pcs resource disable HA_LVM2 HA_LVM3
[root@mckinley-01 ~]# pcs status
Cluster name: MCKINLEY
Stack: corosync
Current DC: mckinley-02 (version 1.1.19-3.el7-c3c624ea3d) - partition with quorum
Last updated: Tue Aug 21 15:04:02 2018
Last change: Tue Aug 21 15:03:59 2018 by root via cibadmin on mckinley-01
 
3 nodes configured
11 resources configured (8 DISABLED)
 
Online: [ mckinley-01 mckinley-02 mckinley-03 ]
 
Full list of resources:
 
 mckinley-apc   (stonith:fence_apc):    Started mckinley-01
 Clone Set: dlm_for_lvmlockd-clone [dlm_for_lvmlockd]
     Started: [ mckinley-01 mckinley-02 mckinley-03 ]
 Clone Set: lvmlockd-clone [lvmlockd]
     Started: [ mckinley-01 mckinley-02 mckinley-03 ]
 Resource Group: HA_LVM2
     lvm2       (ocf::heartbeat:LVM-activate):  Stopped (disabled)
     ha2        (ocf::heartbeat:Filesystem):    Stopped (disabled)
 Resource Group: HA_LVM3
     lvm3       (ocf::heartbeat:LVM-activate):  Stopped (disabled)
     ha3        (ocf::heartbeat:Filesystem):    Stopped (disabled)
 
Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
 

# Only deletes the first resource, and doesn't even let user know the other was ignored
[root@mckinley-01 ~]# pcs resource delete HA_LVM2 HA_LVM3
Removing group: HA_LVM2 (and all resources within group)
Stopping all resources in group: HA_LVM2...
Deleting Resource - lvm2
Removing Constraint - order-lvmlockd-clone-HA_LVM2-mandatory
Deleting Resource (and group) - ha2


Version-Release number of selected component (if applicable):
Name        : pcs
Version     : 0.9.165
Release     : 1.el7
Architecture: x86_64
Install Date: Thu 19 Jul 2018 02:14:30 PM CDT
Group       : System Environment/Base
Size        : 16481620
License     : GPLv2
Signature   : RSA/SHA256, Fri 22 Jun 2018 09:01:36 AM CDT, Key ID 199e2f91fd431d51
Source RPM  : pcs-0.9.165-1.el7.src.rpm
Build Date  : Fri 22 Jun 2018 06:50:37 AM CDT

Comment 3 Tomas Jelinek 2018-08-22 08:06:53 UTC

*** This bug has been marked as a duplicate of bug 1420298 ***


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