Cannot create Cinder volumes
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 ...
check cinder-volume status on cinder1 node. Also check cinder-volume logs on the cinder1 node to resolve the issue.
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