Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

asked 2019-08-27 04:20:58 -0500

Getting this type of error while launching instance . How can I fix that ?

allow_availability_zone_fallback = True api_paste_config = /etc/cinder/api-paste.ini auth_type = password auth_uri = http://node_ip:5000 auth_url=http://node_ip:35357 [BACKEND] [barbican] [BRCD_FABRIC_EXAMPLE] [CISCO_FABRIC_EXAMPLE] connection = mysql+pymysql://cinder:9c39bdb274d14987@node_ip/cinder control_exchange = openstack [COORDINATION] [cors] [cors.subdomain] [database] debug = False [DEFAULT] default_availability_zone = nova default_volume_type = iscsi enabled_backends = lvm enable_v3_api = True [FC-ZONE-MANAGER] glance_host=node_ip host = hostname iscsi_helper=lioadm iscsi_ip_address=node_ip [key_manager] [KEY_MANAGER] [keystone_authtoken] kombu_ssl_ca_certs = kombu_ssl_certfile = kombu_ssl_keyfile = lock_path = /var/lib/cinder/tmp log_dir = /var/log/cinder [lvm] [matchmaker_redis] osapi_volume_listen = 0.0.0.0 osapi_volume_workers = 32 [oslo_concurrency] [oslo_messaging_amqp] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [oslo_reports] [oslo_versionedobjects] password=e6ed3eba430842f3 policy_file = /etc/cinder/policy.json project_name=services rabbit_host = node_ip rabbit_password = guest rabbit_port = 5672 rabbit_userid = guest rabbit_use_ssl = False rpc_backend = rabbit [ssl] storage_availability_zone = zone1:hostname username=cinder volume_backend_name=lvm volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver volumes_dir=/var/lib/cinder/volumes

Logs:

Creating message record for request_id = req-8ec96e17-0c36-4d99-a198-862dbcffd55b 2019-08-27 14:32:01.211 29725 ERROR cinder.scheduler.flows.create_volume [req-8ec96e17-0c36-4d99-a198-862dbcffd55b 44083a7217e8448f955a563d2f79150a 9eaa9f3ed1394405812422e7d45b30f5 - default default] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

edit retag flag offensive close merge delete

Comments

Your only enabled backend is lvm, but the configuration file has an empty [lvm] section.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-27 06:09:03 -0500 )edit