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

'pcs booth destroy' command only works for hosts with a running cluster [rhel-9]

    • pcs-0.11.7-4.el9
    • None
    • Moderate
    • sst_high_availability
    • ssg_filesystems_storage_and_HA
    • 17
    • 26
    • 5
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Bug Fix
    • Hide
      .Ability to remove Booth configuration from a Booth arbitrator node

      Previously, running the `pcs booth destroy` command to remove Booth configuration from a Booth arbitrator node yielded an error. This happened because the command did not remove Booth configuration from nodes that are not part of the cluster. It is now possible to remove Booth configuration from Booth arbitrators.
      Show
      .Ability to remove Booth configuration from a Booth arbitrator node Previously, running the `pcs booth destroy` command to remove Booth configuration from a Booth arbitrator node yielded an error. This happened because the command did not remove Booth configuration from nodes that are not part of the cluster. It is now possible to remove Booth configuration from Booth arbitrators.
    • Done
    • None

      Description of problem:
      The 'pcs booth destroy' command is supposed to remove booth configuration files (config and key) from a node, regardless if it is a site node or an arbitrator node. The command implements various checks to prevent removing booth configuration in case it is being actively used by a running instance of booth. One of the check is bugged, as it requires CIB to be accessible, which makes the command not working on arbitrators and nodes with no cluster.

      Version-Release number of selected component (if applicable):
      pcs-0.10.0

      How reproducible:
      always, easily

      Steps to Reproduce:
      1. get a host with no running cluster
      2. run 'pcs booth destroy'

      Actual results:
      Error: unable to get cib

      Expected results:
      If CIB cannot be obtained, it means either the cluster is stopped on the node, or the node serves as an arbitrator. The command should proceed and check if the booth config is used by a running arbitrator service on the node. If the config is not used, it should be deleted including related key file.

              mnovacek@redhat.com Michal Nováček
              tojeline@redhat.com Tomas Jelinek
              Tomas Jelinek Tomas Jelinek
              Cluster QE Cluster QE
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: