Deleting Cinder Service From Host
Problem
How to delete the stale cinder-volume service if the host no longer exist?
Environment
- Platform9 Managed OpenStack - All Versions
- Cinder
Procedure
Before performing following steps, ensure that volumes are not hosted on the cinder-volume services to be decommissioned.
- Identify the host on which the Cinder service has to be removed. Use the below command to list the cinder-volume services:
openstack volume service list --service cinder-volume
# openstack volume service list --service cinder-volume
+---------------+------------------------+------+----------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated At |
+---------------+------------------------+------+----------+-------+----------------------------+
| cinder-volume | <UUID>@netapp_std1 | nova | enabled | down | <TimeStamp> |
[...]
| cinder-volume | <UUID>@netapp_std2 | nova | enabled | up | <TimeStamp> |
+---------------+------------------------+------+----------+-------+----------------------------+
- Ensure the selected host is in disabled status. If it's not, disable it with the below command:
openstack volume service set --disable <HostUUID> <service>
# openstack volume service set --disable <UUID>@netapp_std1 cinder-volume
# openstack volume service list --service cinder-volume
+---------------+------------------------+------+----------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated At |
+---------------+------------------------+------+----------+-------+----------------------------+
| cinder-volume | <UUID>@netapp_std1 | nova | disabled | down | <TimeStamp> |
[...]
| cinder-volume | <UUID>@netapp_std2 | nova | enabled | up | <TimeStamp> |
+---------------+------------------------+------+----------+-------+----------------------------+
- Now to remove the cinder-volume service from a host:
cinder-manage service remove <service> <host>
# cinder-manage service remove cinder-volume <UUID>@netapp_std1
Service cinder-volume on host <UUID>@netapp_std1 removed.
- To confirm if the cinder-volume service is removed, use the same command as mentioned in step #1:
# openstack volume service list --service cinder-volume
+---------------+------------------------+------+----------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated At |
+---------------+------------------------+------+----------+-------+----------------------------+
| cinder-volume | <UUID>@netapp_std2 | nova | enabled | up | <TimeStamp> |
[...]
+---------------+------------------------+------+----------+-------+----------------------------+
Was this page helpful?