how to move instances to cinder

asked 2014-05-28 09:26:50 -0600

sudarshan gravatar image

Hi,

i want to setup open stack such that when i launch new instance, the volume(/dev/vda) as per the flavor selected has to be created on cinder. iv added the parameter volume_api_class=nova.volume.cinder.API at nova.conf but still it doesnt use cinder.

how can i achieve this.

i am able to create instance but i cant see any volume attached from cinder to the instance at /dev/vda. i think its coming from /var/lib/nova/instances.

Kindly help

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-29 01:41:52 -0600

dbaxps gravatar image

image description

Select from dropdown menu "Boot from image(create new volume)
edit flag offensive delete link more

Comments

Hi,

Thank you this works. But again i will have to again specify the disk size and override the values on the flavor that i select. need this feature because iv been told that it works directly just by selecting boot from image and a new disk w.r.t the flavor selected will be created on the cinder.

sudarshan gravatar imagesudarshan ( 2014-05-29 02:31:35 -0600 )edit

i think there should be a way by which nova can call cinder to create the boot volume as per the flavor selected.

sudarshan gravatar imagesudarshan ( 2014-05-29 02:34:27 -0600 )edit

even the volume quota will always be zero as i am not using cinder for boot volume even if i have multiple instances.

sudarshan gravatar imagesudarshan ( 2014-05-29 02:47:28 -0600 )edit

You wrote: But again i will have to again specify the disk size and override the values on the flavor
Yes , you will have to specify size of volume in GB, what flavor size is doesn't matter in this case
If I specified 5 GB , then glusterfs cinder volume size will be 5 GB ( or LVM size will be 5 GB)
If you want to match it to flavor size, it's not a problem set it to 20 GB, 40 GB as your block storage allows.

dbaxps gravatar imagedbaxps ( 2014-05-29 02:50:29 -0600 )edit

Is there any other way by which nova can call cinder to create the boot volume as per the flavor selected with selecting boot from image? Please help. As its working for other department but i cant ask them on how they did it

sudarshan gravatar imagesudarshan ( 2014-05-29 03:08:44 -0600 )edit
1

answered 2014-05-28 14:44:08 -0600

larsks gravatar image

Setting volume_api_class does not cause Nova to use Cinder for instance storage. It will continue to use $instance_path, generally /var/lib/nova/instances, for storing your boot and ephemeral disks.

You can use the --block-device parameter to have Nova boot an instance using a volume allocated from Cinder instead of creating an image in $instance_path. This is full documented here:

edit flag offensive delete link more

Comments

Thanks for your reply. Commandline works fine.

Please let me know how to achieve the same from horizon dashboard. i cannot ask members to create instance from command line.

sudarshan gravatar imagesudarshan ( 2014-05-29 00:57:44 -0600 )edit

could anyone help me with a solution for this

sudarshan gravatar imagesudarshan ( 2014-05-29 08:11:24 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-05-28 09:26:50 -0600

Seen: 405 times

Last updated: May 29 '14