Cinder

Remove service

Note

This command is executed on a controller node.

$ docker exec -it cinder_api cinder-manage service remove cinder-volume 50-10@rbd-volumes
Service cinder-volume on host 50-10@rbd-volumes removed.

Purge deleted rows

Note

This command is executed on a controller node.

$ docker exec -it cinder_api cinder-manage db purge 90

ImageBusy error raised while deleting rbd volume

WARNING cinder.volume.drivers.rbd [req-...] ImageBusy error raised while deleting rbd volume. This may have been caused by a connection from a client that has crashed and, if so, may be resolved by retrying the delete after 30 seconds has elapsed.: ImageBusy: [errno 16] error removing image
ERROR cinder.volume.manager [req-...] Unable to delete busy volume.: VolumeIsBusy: ImageBusy error raised while deleting rbd volume. This may have been caused by a connection from a client that has crashed and, if so, may be resolved by retrying the delete after 30 seconds has elapsed.
$ rbd lock list -p volumes volume-604dfc80-7626-4e6b-b7fd-5c90de36015a
There is 1 exclusive lock on this image.
Locker           ID                   Address
client.118718703 auto 140588574332144 a.b.c.d:0/42644142

Make sure that the instance belonging to the volume no longer exists. If this is the case, the lock can be deleted manually.

$ rbd lock rm -p volumes volume-604dfc80-7626-4e6b-b7fd-5c90de36015a "auto 140588574332144" client.118718703