Cinder create volume error

Asked by Daniel Nunez E.

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

Question information

Language:
English Edit question
Status:
Answered
For:
Cinder Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John Griffith (john-griffith) said :
#1

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?

Revision history for this message
Daniel Nunez E. (danielnuneze) said :
#2

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.

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

Revision history for this message
Shanthakumar K (shantha-kumar) said :
#3

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

Revision history for this message
Daniel Nunez E. (danielnuneze) said :
#4

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

Revision history for this message
Shanthakumar K (shantha-kumar) said :
#5

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

Can you help with this problem?

Provide an answer of your own, or ask Daniel Nunez E. for more information if necessary.

To post a message you must log in.