Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-76157

'pcs resource delete' command omits live cluster actions without warning when the flag '-f' is specified [rhel-10]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.2
    • rhel-10.0
    • pcs
    • pcs-0.12.1-3.el10
    • No
    • Moderate
    • rhel-ha
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .Warning messages added when using the `-f` flag to modify CIB files

      Before this update, when a user executed `pcs resource delete`, `pcs cluster node remove-remote`, or `pcs booth remove` using the `-f` flag to modify a CIB file directly, `pcs` would perform the deletion but silently omit cleanup actions that require a live cluster, such as stopping resources or removing nodes from Pacemaker.

      With this update, warning messages are displayed whenever live cluster cleanup actions are skipped due to the use of the `-f` flag.

      As a result, users are alerted that they must perform manual cleanup actions on the live cluster when modifying configuration files offline. Note that the usage of the `--force` flag to skip resource stopping in these commands has been deprecated and will be removed in a future release. The `--force` flag retains its functionality to override validation errors. Users should now use the `--no-stop` flag to explicitly skip resource stopping before deletion.
      Show
      .Warning messages added when using the `-f` flag to modify CIB files Before this update, when a user executed `pcs resource delete`, `pcs cluster node remove-remote`, or `pcs booth remove` using the `-f` flag to modify a CIB file directly, `pcs` would perform the deletion but silently omit cleanup actions that require a live cluster, such as stopping resources or removing nodes from Pacemaker. With this update, warning messages are displayed whenever live cluster cleanup actions are skipped due to the use of the `-f` flag. As a result, users are alerted that they must perform manual cleanup actions on the live cluster when modifying configuration files offline. Note that the usage of the `--force` flag to skip resource stopping in these commands has been deprecated and will be removed in a future release. The `--force` flag retains its functionality to override validation errors. Users should now use the `--no-stop` flag to explicitly skip resource stopping before deletion.
    • In Progress
    • Required
    • Required
    • Not Required
    • None

      Original BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1426608

      What were you trying to do that didn't work?

      The command "pcs resource delete" omits live cluster actions without warning when the flag "-f" is used.

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      always

      Steps to reproduce

       

      [vm-rhel72-1 ~] $ pcs resource create remote-node ocf:pacemaker:remote server="vm-rhel72-2"
      [vm-rhel72-1 ~] $ pcs status |grep remote-node
      RemoteOnline: [ remote-node ]
       remote-node    (ocf::pacemaker:remote):        Started vm-rhel72-1
                                                      
      [vm-rhel72-1 ~] $ pcs cluster cib > cib.xml
      [vm-rhel72-1 ~] $ pcs resource delete -f cib.xml remote-node
      Deleting Resource - remote-node
      
      [vm-rhel72-1 ~] $ pcs cluster cib-push cib.xml && pcs status|grep remote-node
      CIB updated
      RemoteOnline: [ remote-node ]
       remote-node    (ocf::pacemaker:remote):         ORPHANED Started vm-rhel72-1

       

      Expected results

      • Warning that the disabling of the resource before the removing is skipped.
      • Warning that the removing of the node is skipped.

      Actual results

      • No warnings.

              cluster-qe Cluster QE
              tojeline@redhat.com Tomas Jelinek
              Peter Romancik Peter Romancik
              Cluster QE Cluster QE
              Michal Stubna Michal Stubna
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: