Bug 2232090 - 'pcs booth destroy' command only works for hosts with a running cluster
Summary: 'pcs booth destroy' command only works for hosts with a running cluster
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pcs
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 9.4
Assignee: Tomas Jelinek
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-15 09:17 UTC by Tomas Jelinek
Modified: 2023-08-16 06:23 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-165822 0 None None None 2023-08-15 09:21:02 UTC

Description Tomas Jelinek 2023-08-15 09:17:27 UTC
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.


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