nova launch instance does not use volume from cinder

asked 2014-05-23 05:32:24 -0600

sudarshan gravatar image


I have deployed 3 node openstack with neutron. everything is working fine but i when i launch an instance the root volume is created under /var/lib/nova/instances directory & it doesnt use cinder to create this volume.

i want to configure this such that when i launch an instance a volume has to be created by cinder according to the size specified in the flavor and it has to be attached to the instance.

cinder volumes is configured with netapp drivers & a volume is mounted using nfs. i can attach cinder volume as secondary disk to the instance, but how to make nova to call cinder to create the root volume as well during the lauch of the new instance.

Plz help. let me know if you need any other details.

nova.conf from my compute node [

root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf

rpc_backend = rabbit
rabbit_host = heos-ctrls
rabbit_password = Heosadm1n
my_ip =
vnc_enabled = True
vncserver_listen =
vncserver_proxyclient_address =
novncproxy_base_url = http://heos-ctrls:6080/vnc_auto.html

network_api_class =
neutron_url = http://heos-ctrls:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = Heosadm1n
neutron_admin_auth_url = http://heos-ctrls:35357/v2.0
linuxnet_interface_driver =
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron

instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = nova.openstack.common.notifier.rpc_notifier
notification_driver = ceilometer.compute.nova_notifier

# The SQLAlchemy connection string used to connect to the database
connection = mysql://nova:Heosadm1n@heos-ctrls/nova

auth_uri = http://heos-ctrls:5000
auth_host = heos-ctrls
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = Heosadm1n
edit retag flag offensive close merge delete


If I understand your requirement correctly, you need to create a bootable volume and boot an instance out of that volume (instead of an image). This will ensure that the volume becomes the root disk; and will also prevent nova from creating a root disk for the instance in /var/lib/nova/instances.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-05-26 01:26:02 -0600 )edit

some thing similar.

i want to use qcow2 as image and launch instance should create volume using cinder.

currently boot volumes are created at /var/lib/nova/instances i need them to be created under /var/lib/cinder/mnt

so that i can see those volumes under volumes tab from horizon and the volume usage will also get updated accordingly.

currnet usage limit show zero volume usage even if i have create multiple instances with around 100Gb space. because boot volumes are creatd under /var/lib/nova/instances

sudarshan gravatar imagesudarshan ( 2014-05-28 05:35:38 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-06-25 22:47:31 -0600

madhu_CC gravatar image

updated 2014-06-25 23:20:00 -0600

You should configure the Cinder to consume Volume from a storage vendor(3par,netapp etc.,) and then disable the availability zone as below.

Remark below lines: availability zone of this node (string value) storage_availability_zone=nova

Then use the LVM as storage provider. Ensure you configure the LVM in your hosting server.


edit flag offensive delete link more

answered 2014-06-26 00:17:55 -0600

mpetason gravatar image

This will be relevant:

You need to boot an instance from a volume, but have the volume be created and specify the image you are using. You can do this easily through Horizon or use the command line interface. In Horizon you would create a volume from an image and boot the instance on it.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-05-23 05:32:24 -0600

Seen: 2,614 times

Last updated: Jun 26 '14