Ask Your Question
0

Cannot create Cinder volumes

asked 2014-12-10 07:27:57 -0500

iffyshot gravatar image

updated 2014-12-12 17:50:06 -0500

smaffulli gravatar image

hi all

i am unable to create Cinder volumes

I have a 4 node set up at the moment controller1 compute1 network1 cinder1

I have followed the guide to install cinder on the controller1 node and have also followed the guide on the cinder1 node

here are the outputs of some of the commands that I have picked up

Cinder1
pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               cinder-volumes
  PV Size               50.00 GiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              12799
  Free PE               12799
  Allocated PE          0
  PV UUID               13h6Dp-wcLQ-28Om-2sC4-21sq-04zn-AcpAXG

 pvscan
  PV /dev/sdb   VG cinder-volumes   lvm2 [50.00 GiB / 50.00 GiB free]
  Total: 1 [50.00 GiB] / in use: 1 [50.00 GiB] / in no VG: 0 [0   ]

this is the error i am getting on the controller1 scheduler.log

 2014-12-10 13:14:14.033 1319 ERROR cinder.scheduler.flows.create_volume [req-af4f5ce6-e00d-4acd-995b-7fa9a0837580 0b188de927e34893acd94a489fb1e167 d0d944054e504a7eb2ab114c0de98d63 - - -] Failed to schedule_create_volume: No valid host was found.

can anyone point me as to where to look at here if required i can send my cinder.conf files hi, thanks for the reply

here is the output from controller1

cinder service-list
+------------------+-------------+------+---------+-------+----------------------------+
|      Binary      |     Host    | Zone |  Status | State |         Updated_at         |
+------------------+-------------+------+---------+-------+----------------------------+
| cinder-scheduler | controller1 | nova | enabled |   up  | 2014-12-10T18:54:11.000000 |
+------------------+-------------+------+---------+-------+----------------------------+


root@controller1:~# ll /var/lib/cinder/

total 64
drwxr-xr-x  3 cinder cinder  4096 Dec 10 11:58 ./

drwxr-xr-x 50 root   root    4096 Dec  9 08:25 ../

-rw-------  1 cinder cinder 46080 Dec 10 11:58 cinder.sqlite

drwxr-xr-x  2 cinder cinder  4096 Oct 21 18:58 volumes/

root@controller1:~# grep "var/lib" /etc/cinder/cinder.conf

state_path = /var/lib/cinder
volumes_dir = /var/lib/cinder/volumes

 grep "cinder-volumes" /etc/cinder/cinder.conf

volume_group = cinder-volumes

 mount

/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys ...
(more)
edit retag flag offensive close merge delete

Comments

check cinder-volume status on cinder1 node. Also check cinder-volume logs on the cinder1 node to resolve the issue.

yatin gravatar imageyatin ( 2014-12-10 07:35:17 -0500 )edit

the cinder-volume returns a lot this is the only line i see as error it seems to point to mysql connection can i test that in anyway?

ImportError: No module named MySQLdb 2014-12-11 07:34:28.641 33168 ERROR cinder.openstack.common.threadgroup [-] No module named MySQLdb

iffyshot gravatar imageiffyshot ( 2014-12-11 01:37:49 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-11 05:17:41 -0500

iffyshot gravatar image

OK I managed to get this going by installed pythonmysql from the juno install guide - odd i am installing icehouse but this seems to have resolved the issue connecting to the SQL database

thanks for the replies

edit flag offensive delete link more
0

answered 2014-12-10 08:12:08 -0500

bishoy gravatar image

updated 2014-12-10 08:41:07 -0500

Could you please provide us with the output of these commands in order to know the root cause of the issue?

  1. [root@openstack2 ~]# cinder service-list
  2. [root@openstack2 ~]# ll /var/lib/cinder/
  3. [root@openstack2 ~]# grep "var/lib" /etc/cinder/cinder.conf
  4. [root@openstack2 ~]# grep "cinder-volumes" /etc/cinder/cinder.conf
  5. [root@openstack2 ~]#mount
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: 2014-12-10 07:27:57 -0500

Seen: 1,243 times

Last updated: Dec 12 '14