Ask Your Question
0

Cinder create volume error

asked 2013-02-02 19:17:34 -0500

danielnuneze gravatar image

Hi OpenStackers

I have an issue when I create a volumen with cinder. I use this lines:

#cinder create --display_name vol1 1

cinder list

+--------------------------------------+--------+--------------+------+-------------+-------------+ | ID | Status | Display Name | Size | Volume Type | Attached to | +--------------------------------------+--------+--------------+------+-------------+-------------+ | 27ce3344-77c6-469a-a6e1-a313de660f69 | error | vol1 | 1 | None | | +--------------------------------------+--------+--------------+------+-------------+-------------+

#tail -50 /var/log/nova/nova-scheduler.log

2013-02-02 13:59:20 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last): 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 275, in _process_data 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, *args) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, *kwargs) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 83, in create_volume 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp db.volume_update(context, volume_id, {'status': 'error'}) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp self.gen.next() 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 78, in create_volume 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp context, volume_id, snapshot_id, image_id) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/scheduler/multi.py", line 75, in schedule_create_volume 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp return self.drivers['volume'].schedule_create_volume(args, *kwargs) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/scheduler/chance.py", line 99, in schedule_create_volume 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp host = self._schedule(context, FLAGS.volume_topic, None, {}) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/scheduler/chance.py", line 50, in _schedule 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp raise exception.NoValidHost(reason=msg) 2013-02-02 13:59:20 TRACE nova.openstack.common.rpc.amqp NoValidHost: No valid host was found. Is the appropriate service running?

My config files are:

/etc/cinder/cinder.conf

[DEFAULT] sql_connection = mysql://cinder:daniel@172.31.15.167/cinder rootwrap_config = /etc/cinder/rootwrap.conf api_paste_confg = /etc/cinder/api-paste.ini iscsi_helper = tgtadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone #state_path = /var/lib/cinder rabbit_port=5672 rabbit_virtual_host=/ rabbit_password=daniel rabbit_userid=openstack_rabbit_user rabbit_host=172.31.15.167 osapi_volume_listen_port=5900

/etc/cinder/api-paste.ini

[composite:osapi_volume] use = call:cinder.api.openstack.urlmap:urlmap_factory /: osvolumeversions /v1: openstack_volume_api_v1

[composite:openstack_volume_api_v1] use = call:cinder.api.auth:pipeline_factory noauth = faultwrap sizelimit noauth osapi_volume_app_v1 ... (more)

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-02-08 00:09:29 -0500

Is this running off of a version from Trunk/Master?

It looks like you've got the bits that default to trying to use the Cinder filter scheduler, but you don't have things setup. We inadvertantly submitted a change with the filter enabled by default, since then we've set the default back to just using the simple scheduler and ignoring the filters.

Maybe try a fresh pull from github?

edit flag offensive delete link more
0

answered 2013-02-08 05:39:03 -0500

danielnuneze gravatar image

Hi John

I forgot mention in the previous message. I used the Cisco OpenStack repository to deploy all the infrastructure. All modules works properly but, this manual don't cover cinder installation and I used the official guide http://docs.openstack.org/trunk/openstack-compute/install/apt/content/osfolubuntu-cinder.html (http://docs.openstack.org/trunk/opens...) .

Do you think this is the reason of the cinder failed?

Your suggestion is install again from github? Please can you post the right link?

Thanks

edit flag offensive delete link more
0

answered 2013-05-05 04:57:29 -0500

shantha-kumar gravatar image

Have you resolved the issue "NoValidHost: No valid host was found. Is the appropriate service running?"

edit flag offensive delete link more
0

answered 2013-05-05 05:06:31 -0500

danielnuneze gravatar image

Shausy, No I can't resolve the problem. I used other solution for storage needs. Sorry.

edit flag offensive delete link more
0

answered 2013-05-09 14:29:16 -0500

shantha-kumar gravatar image

If you are running cinder services in different system, ensure both the system time are in sync. Even the small time diff can leads to this problem.

Are you able to see the cinder host using "cinder-manage host list".

then check the database for services.

Hope this could resolve the problem

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-02-02 19:17:34 -0500

Seen: 124 times

Last updated: May 09 '13