Ask Your Question
0

Why do I get error "volume group cinder-volumes doesn't exist" when creating a volume?

asked 2013-05-08 17:01:55 -0500

pgaltieri gravatar image

updated 2013-05-10 12:33:08 -0500

I configured open stack using the documentation at

http://www.google.com/fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_18 (http://www.google.com/fedoraproject.org/wiki/GettingstartedwithOpenStackonFedora18)

Everything seemed to work fine, until I tried to create a volume using the dashboard. The instructions say to do the following:

truncate --size=20G /var/lib/cinder/cinder-volumes.img
losetup --show -f /var/lib/cinder/cinder-volumes.img
CINDER_VOL_DEVICE=$(losetup -a | grep "/var/lib/cinder/cinder-volumes.img" | cut -d':' -f1)
vgcreate cinder-volumes $CINDER_VOL_DEVICE

This worked as can be seen by the following:

vgdisplay cinder-volumes
  --- Volume group ---
  VG Name               cinder-volumes
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               20.00 GiB
  PE Size               4.00 MiB
  Total PE              5119
  Alloc PE / Size       0 / 0   
  Free  PE / Size       5119 / 20.00 GiB
  VG UUID               SK1hNn-jbnQ-ESQW-MFSV-Fvf0-gZxT-hKhtXE

However, when I create a volume via the dashboard it displays "Error" under status. Looking at the volume.log under /var/log/cinder it shows:

2013-05-04 15:00:48 2103 CRITICAL cinder [-] Bad or unexpected response from the storage volume backend API: volume group cinder-volumes doesn't exist

I restarted the openstack-cinder-volume.service and /var/log/cinder no shows:

2013-05-08 14:33:43 3651 AUDIT cinder.service [-] Starting cinder-volume node (version 2012.2.3-LOCALBRANCH:LOCALREVISION)
2013-05-08 14:33:43 3651 INFO cinder.openstack.common.rpc.impl_qpid [-] Connected to AMQP server on localhost:5672

But when I tried to create the volume (10 GB) I still get "Error" in the status column, but no explanation as to why. Also when I tried to delete the volume, it would not let me. I got the following error on the dashboard

Error: Unable to delete volume: myvolume

I had to login as admin and delete there.

What am I missing regarding creating a volume using the openstack dashboard? There doesn't seem to be a way to create a volume via the admin account, only delete volumes.

Any help is appreciated.

Thanks, Paolo

Note, this is the version of openstack released with Fedora 18.

New addition 05/10/2013: The correct link to the instructions is:

http://fedoraproject.org/wiki/GettingstartedwithOpenStackonFedora18

I also added volume_group=cinder-volumes to my cinder.conf file and restarted the cinder volumes service, but it made no difference. I still get Error for status when I create the volume, and looking at the volume.log file in /var/log/cinder doesn't give any indication as to what the error was.

edit retag flag offensive close merge delete

Comments

You may want to double-check the link to the Fedora 18 documentation as it seems to be broken

smaffulli gravatar imagesmaffulli ( 2013-05-08 18:54:10 -0500 )edit
1

Does the loop device still exist? It won't survive a reboot. losetup -a

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-05-11 06:30:47 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-05-10 06:12:57 -0500

shanthakumar K gravatar image

ensure your cinder.conf has an parameter volume_group=cinder-volumes

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-08 17:01:55 -0500

Seen: 6,404 times

Last updated: May 10 '13