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
    • No
    • Moderate
    • rhel-ha
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      Cause:
      User uses `pcs resource delete`, `pcs cluster node remove-remote`, or `pcs booth remove` with the '-f' flag.

      Consequence:
      pcs deletes resources, but it omits certain actions that can be done only on live cluster, such as stopping the resources or removing nodes from pacemaker (in case of `pcs cluster node remove-remote`).

      Fix:
      Added warning messages in case live cluster actions (stopping resources, removing nodes from pacemaker) are skipped.

      Result:
      Warning messages are displayed in case live cluster actions are skipped.

      As a part of the warnings added in this issue and validations added in RHEL-76162 , the usage of '--force' flag to skip resource stopping in `pcs resource delete`, `pcs cluster node remove-remote`, and `pcs booth remove` has been deprecated and will be removed in a future release. The user should now use '--no-stop' flag to indicate that they do not want to stop resources before their deletion. If a user needs to use '--force' and still wants to stop resources before deletion, they should use the '--force' flag together with the '--future' flag to trigger the behavior that '--force' will have after the mentioned functionality is removed.
      Show
      Cause: User uses `pcs resource delete`, `pcs cluster node remove-remote`, or `pcs booth remove` with the '-f' flag. Consequence: pcs deletes resources, but it omits certain actions that can be done only on live cluster, such as stopping the resources or removing nodes from pacemaker (in case of `pcs cluster node remove-remote`). Fix: Added warning messages in case live cluster actions (stopping resources, removing nodes from pacemaker) are skipped. Result: Warning messages are displayed in case live cluster actions are skipped. As a part of the warnings added in this issue and validations added in RHEL-76162 , the usage of '--force' flag to skip resource stopping in `pcs resource delete`, `pcs cluster node remove-remote`, and `pcs booth remove` has been deprecated and will be removed in a future release. The user should now use '--no-stop' flag to indicate that they do not want to stop resources before their deletion. If a user needs to use '--force' and still wants to stop resources before deletion, they should use the '--force' flag together with the '--future' flag to trigger the behavior that '--force' will have after the mentioned functionality is removed.
    • Proposed
    • 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.

              mpospisi@redhat.com Michal Pospisil
              tojeline@redhat.com Tomas Jelinek
              Peter Romancik Peter Romancik
              Cluster QE Cluster QE
              Michal Stubna Michal Stubna
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: