This section describes how to remove a RADOS Gateway (rgw
) node from a
Ceph cluster.
To remove a RADOS Gateway node:
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
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
Log in to the Jenkins web UI.
Open the Ceph - remove node pipeline.
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. |
Click Deploy.
The Ceph - remove node pipeline workflow:
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
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}