Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cinder create volume error

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 keystone = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1 keystone_nolimit = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1

[filter:faultwrap] paste.filter_factory = cinder.api.openstack:FaultWrapper.factory

[filter:noauth] paste.filter_factory = cinder.api.openstack.auth:NoAuthMiddleware.factory

[filter:sizelimit] paste.filter_factory = cinder.api.sizelimit:RequestBodySizeLimiter.factory

[app:osapi_volume_app_v1] paste.app_factory = cinder.api.openstack.volume:APIRouter.factory

[pipeline:osvolumeversions] pipeline = faultwrap osvolumeversionapp

[app:osvolumeversionapp] paste.app_factory = cinder.api.openstack.volume.versions:Versions.factory

[filter:keystonecontext] paste.filter_factory = cinder.api.auth:CinderKeystoneContext.factory

[filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory service_protocol = http service_host = 172.31.15.167 service_port = 5000 auth_host = 172.31.15.167 auth_port = 35357 auth_protocol = http admin_tenant_name = services admin_user = cinder admin_password = daniel

/etc/nova/nova.conf

[DEFAULT] logdir=/var/log/nova state_path=/var/lib/nova lock_path=/run/lock/nova verbose=True api_paste_config=/etc/nova/api-paste.ini ec2_listen=172.31.15.167 rabbit_port=5672 rabbit_virtual_host=/ rabbit_password=daniel rabbit_userid=openstack_rabbit_user rabbit_host=172.31.15.167 metadata_listen=192.168.221.43 sql_connection=mysql://nova:daniel@172.31.15.167/nova root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf

Auth

use_deprecated_auth=false auth_strategy=keystone

Imaging service

glance_api_servers=172.31.15.167:9292 image_service=nova.image.glance.GlanceImageService

VNC configuration

novncproxy_port=6080 novncproxy_host=0.0.0.0 novnc_enabled=true novncproxy_base_url=http://172.31.15.167:6080/vnc_auto.html

Network settings

network_api_class=nova.network.quantumv2.api.API quantum_url=http://172.31.15.167:9696 quantum_auth_strategy=keystone quantum_admin_auth_url=http://172.31.15.167:35357/v2.0 quantum_admin_password=daniel quantum_admin_username=quantum quantum_admin_tenant_name=services libvirt_use_virtio_for_bridges=True connection_type=libvirt libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybirdOVSBridgeDriver firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver

Cinder

volume_api_class=nova.volume.cinder.API

osapi_volume_listen_port=5900

enable_apis=ec2,osapi_compute, metadata