[openstack-dev] [Cinder] [nova] Work flow for detaching a volume

Srinivas Sakhamuri srini.openstack at gmail.com
Fri Feb 26 18:11:15 UTC 2016

I want to confirm the correct work flow for detaching a volume, Both nova
and cinder (unpublished, available through cinder.volumes.detach) provides
detach volume API. Only nova seems to have correct work flow in terms of
detaching a volume i.e.
    1) detaches the volume from the VM (libvirt.volume_detach)
    2) Informs Cinder to do Cinder-side detach
    3) delete BlockDeviceMapping from Nova DB

On the other hand cinder just modifies cinder DB entries and let's the
driver handle the detaching the volume. No API call to nova to let it know
about the volume detaching.

- Does that mean nova is the only work flow to use to correctly detach a
volume from instance?
- And cinder detach API serves only to cleanup internal state in the DB and
cinder driver?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160226/2c1095f3/attachment.html>

More information about the OpenStack-dev mailing list