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

Laohu boston01a2000 at yahoo.com
Tue Dec 8 17:59:02 UTC 2015


I switched to Nova API, and it is working now.  

Thanks a lot.
John
 


    On Monday, December 7, 2015 8:26 PM, hao wang <sxmatch1986 at gmail.com> wrote:
 

 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
>


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


More information about the Openstack mailing list