29.3. Removing a Booth ticket


After you remove a Booth cluster ticket by using the pcs booth ticket remove command, the state of the Booth ticket remains loaded in the Cluster Information Base (CIB). This is also the case after you remove a ticket from the Booth configuration on one site and pull the Booth configuration to another site by using the pcs booth pull command. This might cause problems when you configure a ticket constraint, because a ticket constraint can be granted even after a ticket has been removed. As a consequence, the cluster might freeze or fence a node. To prevent this, you can remove a Booth ticket from the CIB with the pcs booth ticket cleanup command.

Prerequisites

  • You have set up a multi-site configuration that uses the Booth ticket manager. For instructions, see Configuring multi-site clusters with Pacemaker.
  • The configured example uses the following arrangement:

    • Cluster 1 consists of the nodes cluster1-node1 and cluster1-node2.
    • Cluster 2 consists of the nodes cluster2-node1 and cluster2-node2.
    • The arbitrator node is named arbitrator-node.
    • The name of the Booth ticket that this configuration uses is apacheticket.

Procedure

  1. From a cluster node in one cluster site of the Booth configuration:

    1. Put the ticket to remove in standby mode. The ticket that this example uses is named apacheticket.

      [cluster1-node1 ~]# pcs booth ticket standby apacheticket
    2. Remove the ticket from the Booth configuration.

      [cluster1-node1 ~]# pcs booth ticket remove apacheticket
    3. Synchronize the Booth configuration to all nodes in the current cluster.

      [cluster1-node1 ~]# pcs booth sync
    4. Restart the Booth resource in the current cluster.

      [cluster1-node1 ~]# pcs booth restart
    5. Remove the ticket from the CIB in the current cluster.

      [cluster1-node1 ~]# pcs booth ticket cleanup
  2. From a cluster node in each remaining cluster site of the Booth configuration:

    1. Put the ticket to remove in standby mode.

      [cluster2-node1 ~]# pcs booth ticket standby apacheticket
    2. Download the Booth configuration file from a node with the updated configuration.

      [cluster2-node1 ~]# pcs booth pull cluster1-node1
    3. Synchronize the Booth configuration to all nodes in the current cluster.

      [cluster2-node1 ~]# pcs booth sync
    4. Restart the Booth resource in the current cluster.

      [cluster2-node1 ~]# pcs booth restart
    5. Remove the ticket from the CIB in the current cluster.

      [cluster2-node1 ~]# pcs booth ticket cleanup
  3. From the arbitrator node, download the updated Booth configuration file from a node with the updated configuration:

    [arbitrator-node ~]# pcs booth pull clusternode-node1

Verification

  1. To check whether a Booth ticket was removed from the Booth configuration, run the pcs booth config command on each cluster node and the arbitratror node.

    For example, after configuring a ticket named apacheticket using the procedure described in Configuring multi-site clusters with Pacemaker, the command displays the following output:

    [cluster1-node1 ~]# pcs booth config
    authfile = /etc/booth/booth.key/
    site = 192.168.11.100
    site = 192.168.22.100
    arbitrator = 192.168.99.100
    ticket = "apacheticket"

    After you remove the ticket from the Booth configuration, the command no longer displays ticket= "apacheticket":

    [cluster1-node1 ~]# pcs booth config
    authfile = /etc/booth/booth.key
    site = 192.168.11.100
    site = 192.168.22.100
    arbitrator = 192.168.99.100
  2. To check whether a Booth ticket was removed from the CIB on a cluster node, use the --query-xml option of the crm_ticket utility on any node in the cluster. For example, after you have configured a Booth ticket named apacheticket, the utility displays the following output:

    [cluster1-node1 ~]# crm_ticket --query-xml
    State XML:
    
    <tickets>
      <ticket_state id="apacheticket" granted="true" booth-cfg-name="booth" owner="0" expires="1740986835" term="0" standby="false"/>
    </tickets>

    After you have removed the ticket from the CIB, the output no longer displays a ticket_state element with id="apacheticket":

    [cluster1-node1 ~]# crm_ticket --query-xml
    State XML:
    
    <tickets/>
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部