[Openstack] API call to attach volume does not work ?

hao wang sxmatch1986 at gmail.com
Tue Dec 8 01:26:44 UTC 2015


Hi, Laohu
You shouldn't use cinder attach API to attach a volume to an instance.
Cinder attach API worked with Nova attach API, so you should call Nova
attach API that will attach volume really.

Attach volume is a complex process, it start from Nova side,  Nova
will interact with Cinder several times via calling different Cinder
APIs.

BR
WangHao

2015-12-07 21:41 GMT+08:00 Laohu <boston01a2000 at yahoo.com>:
> I called cinderclient.volumes.attach(...)  to attach a block volume to an
> instance, the volume is in  'In-Use' status and attached to the volume.
> However, when I got on Openstack dashboard and clicked on the instance, i
> could not find the volume in the 'Volumes Attached' section.
>
> I use cinder 2.0 client.
>
> Thanks for help!
> John
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>




More information about the Openstack mailing list