Ask Your Question
1

trying to create a volume in cinder

asked 2014-11-26 07:03:27 -0600

sanderv gravatar image

updated 2014-12-02 10:35:27 -0600

enter code hereI'm trying to create a volume from my controller node. I'm using the command cinder create --display-name demo-volume1 1. When using cinder list, it shows that it has failed.

The error I see in /var/log/cinder/scheduler.log is:

ERROR cinder.scheduler.flows.create_volume [req-b2f7d570-8f66-468c-8307-7681efd81736 8b942cd66ce54ebfa92ba2c61bd15c9b 8a8745935a9a415eaec6ef8d0558e6a4 - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

It looks like this "no weighed hosts available" is the key message indicating what is wrong, but I cannot find what exactly this message is trying to indicate.

The volume.log on my "block1" host has many of these messages:

2014-11-26 15:24:25.284 2312 WARNING cinder.volume.manager [-] Unable to update volume replication status, LVMISCSIDriver -2.0.0  driver is uninitialized.
2014-11-26 15:32:09.883 2312 WARNING cinder.volume.manager [-] Unable to update stats, LVMISCSIDriver -2.0.0  driver is uninitialised.

Also, I have these errors:

2014-11-26 13:30:23.825 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds.
2014-11-26 13:30:23.827 2312 ERROR cinder.service [-] model server went away
2014-11-26 13:30:25.835 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 3 seconds.
2014-11-26 13:30:29.846 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 5 seconds.
2014-11-26 13:30:33.864 2312 ERROR cinder.service [-] Recovered model server connection!
2014-11-26 13:43:27.058 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] Failed to consume message from queue: Socket closed
2014-11-26 13:43:28.070 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds.
2014-11-26 13:46:26.680 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] Failed to consume message from queue: Socket closed
2014-11-26 13:46:27.695 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds.
2014-11-26 13:46:29.704 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 3 seconds.
2014-11-26 13:46:33.713 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 5 seconds.
2014-11-26 15:12:06.691 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] Failed to consume message from queue: Socket closed
2014-11-26 15:12:07.121 2312 ERROR cinder.service [-] model server went away
2014-11-26 15:12:12.712 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: timed out. Trying again in 1 seconds.
2014-11-26 15:12:20.129 2312 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server on controller:5672 is unreachable: timed out. Trying again in 3 seconds.
2014-11-26 15:12:24.142 2312 ERROR oslo.messaging._drivers ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-26 09:58:14 -0600

yatin gravatar image

cinder-volume service is not running or is not accessible. Check using: cinder service-list that cinder-volume is running. Also check ps -e | grep cinder-volume on cinder-volume node(if different from controller node) If cinder-volume is not running, start it. If something is stopping it from starting then should verify it from cinder-volume.log

If this does not solve, share cinder-volume log.

edit flag offensive delete link more

Comments

I'm getting many of these: 2014-11-26 15:06:25.187 2312 WARNING cinder.volume.manager [-] Unable to update stats, LVMISCSIDriver -2.0.0 driver is uninitialized. 2014-11-26 15:06:25.188 2312 WARNING cinder.volume.manager [-] Unable to update volume replication status, LVMISCSIDriver -2.0.0 driver i

sanderv gravatar imagesanderv ( 2014-11-26 14:07:23 -0600 )edit

share complete cinder-volume logs which reports ERROR..

yatin gravatar imageyatin ( 2014-11-27 08:06:23 -0600 )edit

check whether file: "/etc/lvm/lvm.conf" exists or not. If exists read permission is there for all users. Have you created volume group named: cinder-volumes. check using vgdisplay

yatin gravatar imageyatin ( 2014-12-02 11:21:05 -0600 )edit

Interresting, the filter according to http://docs.openstack.org/juno/instal... should be set to = [ "a/sda", "a/sdb/", "r/.*/" ], which is wrong, filter should be a/sda/ (with a backslash at the end of the line....

sanderv gravatar imagesanderv ( 2014-12-02 13:25:15 -0600 )edit

I confirm that this error in the filter was the reason for things to go wrong. Is there any way to submit errata to the install-guide??

sanderv gravatar imagesanderv ( 2014-12-02 13:32:22 -0600 )edit
0

answered 2014-12-02 11:08:05 -0600

dgalvao gravatar image

Looks like your block1 host cannot reach the messaging server (rabbit).

Check /etc/cinder/cinder.conf for the rabbit settings (IP address, and password), and ensure the rabbit host is allowing connections from the block1 host (make sure there isn't a firewall blocking that connection).

edit flag offensive delete link more

Comments

rabbitmq-server is running on "controller", beam process listening on port 5672; from "block1" telnet controller 5672 opens a connection.

sanderv gravatar imagesanderv ( 2014-12-02 13:29:35 -0600 )edit

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-11-26 07:03:27 -0600

Seen: 10,593 times

Last updated: Dec 02 '14