Remove a RADOS Gateway node

Remove a RADOS Gateway node

This section describes how to remove a RADOS Gateway (rgw) node from a Ceph cluster.

To remove a RADOS Gateway node:

  1. In your project repository, remove the following lines from the cluster/ceph/rgw.yml file or from the pillar based on your environment:

    parameters:
      _param:
        cluster_node04_hostname: ${_param:ceph_rgw_node04_hostname}
        cluster_node04_address: ${_param:ceph_rgw_node04_address}
      ceph:
        common:
          keyring:
            rgw.rgw04:
              caps:
                mon: "allow rw"
                osd: "allow rwx"
      haproxy:
        proxy:
          listen:
            radosgw:
              servers:
                - name: ${_param:cluster_node04_hostname}
                  host: ${_param:cluster_node04_address}
                  port: ${_param:haproxy_radosgw_source_port}
                  params: check
    
  2. Remove the following lines from the cluster/infra/config/init.yml file or from the pillar based on your environment:

    parameters:
      reclass:
        storage:
          node:
            ceph_rgw_node04:
              name: ${_param:ceph_rgw_node04_hostname}
              domain: ${_param:cluster_domain}
              classes:
              - cluster.${_param:cluster_name}.ceph.rgw
              params:
                salt_master_host: ${_param:reclass_config_master}
                linux_system_codename:  ${_param:ceph_rgw_system_codename}
                single_address: ${_param:ceph_rgw_node04_address}
                keepalived_vip_priority: 104
    
  3. Log in to the Jenkins web UI.

  4. Open the Ceph - remove node pipeline.

  5. Specify the following parameters:

    Parameter

    Description and values

    SALT_MASTER_CREDENTIALS

    The Salt Master credentials to use for connection, defaults to salt.

    SALT_MASTER_URL

    The Salt Master node host URL with the salt-api port, defaults to the jenkins_salt_api_url parameter. For example, http://172.18.170.27:6969.

    HOST

    Add the Salt target name of the RADOS Gateway node to remove. For example, rgw04*.

    HOST_TYPE Removed since 2019.2.13 update

    Add rgw as the type of Ceph node that is going to be removed.

    CLEANDISK Added since 2019.2.10 update

    Mandatory since the 2019.2.13 maintenance update. Select to clean the data or block partitions.

  6. Click Deploy.

    The Ceph - remove node pipeline workflow:

    1. Reconfigure HAProxy on the rest of RADOS Gateway nodes.

    2. Destroy the VM.

    3. Remove the Salt Minion node ID from salt-key on the Salt Master node.

  7. Remove the following lines from the cluster/infra/kvm.yml file or from the pillar based on your environment:

    parameters:
      salt:
        control:
          cluster:
            internal:
              node:
                rgw04:
                  name: ${_param:ceph_rgw_node04_hostname}
                  provider: ${_param:infra_kvm_node03_hostname}.${_param:cluster_domain}
                  image: ${_param:salt_control_xenial_image}
                  size: ceph.rgw
    
  8. Remove the following lines from the cluster/ceph/init.yml file or from the pillar based on your environment:

    _param:
      ceph_rgw_node04_hostname: rgw04
      ceph_rgw_node04_address: 172.16.47.162
    linux:
      network:
        host:
          rgw04:
            address: ${_param:ceph_rgw_node04_address}
            names:
            - ${_param:ceph_rgw_node04_hostname}
            - ${_param:ceph_rgw_node04_hostname}.${_param:cluster_domain}