Ask Your Question

Is API available to create and attach volume when creating server

asked 2014-08-01 05:43:56 -0500

vickchak gravatar image


I need to create and attach a volume to a openstack server when I create an openstack server, is it possible to do that with a single create server api call? Does the API accommodate that?

Please comment. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-03 20:44:18 -0500

Yes, please refer to the document (Create volume from image and boot)

edit flag offensive delete link more


Hi Chaoyi,

Thanks for your response.

But I don't intend to boot from the volume. I just want to create and attach a volume to a newly created instance. So, the steps would be

1) Create openstack instance 2) Create a volume(empty or from snapshot or from image) 3) Attach the volume to the newly created instance.

Is there a single cloud call to do this? This is available in AWS,we can create an ebsvolume and attach it to the instance while creating. But I doubt if it is there in openstack, so wanted to confirm.

vickchak gravatar imagevickchak ( 2014-08-04 02:32:10 -0500 )edit

As far as I know, you are right. You have to create a volume from Cinder API first, and then attach it to the instance if the volume is not intend to be a boot-able volume ( data volume).

Chaoyi Huang gravatar imageChaoyi Huang ( 2014-08-05 01:36:34 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-01 05:43:56 -0500

Seen: 214 times

Last updated: Aug 03 '14