Error when creating volume with openstack dashboard

taijirobot picture taijirobot · Apr 3, 2013 · Viewed 11k times · Source

I got an error when trying to create a volume via the openstack dashboard, after installing openstack guided by this: https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst

In fact the volume was already created, which can be shown with cmd lvdisplay. However, something went wrong with cinder/utils.py so the dashboard showed and error.

The error log in /var/log/cinder/cinder-volume.log is here: http://pastebin.com/NSn493Dk

Any idea about this is appreciated. Thanks :)

Answer

Radu Toader picture Radu Toader · Jan 9, 2015

edit

vim /etc/cinder/cinder.conf

check the volume group if is the same as the one from command "vgdisplay"

mine is "stack-volumes"

[lvmdriver-1]
volume_group = stack-volumes
volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
volume_backend_name = lvmdriver-1

if using devstack

./unstack.sh
./rejoin_stack.sh

when you restart your machine or if there is nothing diplayed under vgdisplay :

sudo losetup -f /opt/stack/data/stack-volumes-backing-file