Ceph - Cinder: No valid backend was found. No weighed backends available

asked 2020-05-19 09:09:56 -0500

f0Mle gravatar image
  • Openstack Packstack AIO: Stein
  • Ceph: Nautilus 14.2.8 Stable

Glance works good, but Cinder won't work. Can you help me fix this problem ?

[root@os-node1 ~]# ceph -s --id cinder
  cluster:
    id:     e58b7373-b20a-47f1-a752-bf3384021ea3
    health: HEALTH_WARN
            application not enabled on 1 pool(s)

  services:
    mon: 3 daemons, quorum ceph-node1,ceph-node2,ceph-node3 (age 3h)
    mgr: ceph-node2(active, since 3h), standbys: ceph-node1, ceph-node3
    osd: 9 osds: 9 up (since 3h), 9 in (since 3h)

  data:
    pools:   3 pools, 384 pgs
    objects: 8 objects, 16 MiB
    usage:   9.1 GiB used, 171 GiB / 180 GiB avail
    pgs:     384 active+clean

cinder.conf:

[DEFAULT]
backup_swift_url=http://192.168.1.111:8080/v1/AUTH_
backup_swift_container=volumebackups
backup_driver=cinder.backup.drivers.swift.SwiftBackupDriver
enable_v3_api=True
auth_strategy=keystone
storage_availability_zone=nova
default_availability_zone=nova
default_volume_type=iscsi
enabled_backends = ceph
glance_api_version = 2
osapi_volume_listen=0.0.0.0
osapi_volume_workers=1
debug=False
log_dir=/var/log/cinder
transport_url=rabbit://guest:guest@192.168.1.111:5672/
control_exchange=openstack
api_paste_config=/etc/cinder/api-paste.ini
glance_host=192.168.1.111

[database]
connection=mysql+pymysql://cinder:a43059899f394a4d@192.168.1.111/cinder

[key_manager]
backend=cinder.keymgr.conf_key_mgr.ConfKeyManager
[keystone_authtoken]
www_authenticate_uri=http://192.168.1.111:5000/
auth_uri=http://192.168.1.111:5000/
auth_type=password
auth_url=http://192.168.1.111:5000
username=cinder
password=6f6e61af505c4130
user_domain_name=Default
project_name=services
project_domain_name=Default

[oslo_concurrency]
lock_path=/var/lib/cinder/tmp

[oslo_messaging_notifications]
driver=messagingv2
[oslo_messaging_rabbit]
ssl=False

[oslo_policy]
policy_file=/etc/cinder/policy.json

[ceph]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
volume_backend_name = ceph
rbd_pool = volumes
rbd_user = cinder
rbd_secret_uuid = 12106314-022e-406c-a2c6-5eaf74b05380
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_flatten_volume_from_snapshot = false
rbd_max_clone_depth = 5
rbd_store_chunk_size = 4
rados_connect_timeout = -1

scheduler.log:

2020-05-19 14:22:41.660 13887 WARNING cinder.scheduler.host_manager [req-4ee1c269-a2cd-4d4c-9ea3-3c62389af4f1 602efc43827c4b47af0c00d999903a76 7160a5445f664afcb32d1a32be885705 - default default] volume service is down. (host: os-node1@lvm)
2020-05-19 14:22:41.661 13887 INFO cinder.scheduler.base_filter [req-4ee1c269-a2cd-4d4c-9ea3-3c62389af4f1 602efc43827c4b47af0c00d999903a76 7160a5445f664afcb32d1a32be885705 - default default] Filtering removed all hosts for the request with volume ID '5a57a27f-411f-4b2b-b8a7-dfe6fab9f3d4'. Filter results: AvailabilityZoneFilter: (start: 1, end: 1), CapacityFilter: (start: 1, end: 1), CapabilitiesFilter: (start: 1, end: 0)
2020-05-19 14:22:41.661 13887 WARNING cinder.scheduler.filter_scheduler [req-4ee1c269-a2cd-4d4c-9ea3-3c62389af4f1 602efc43827c4b47af0c00d999903a76 7160a5445f664afcb32d1a32be885705 - default default] No weighed backend found for volume with properties: {'name': u'iscsi', 'qos_specs_id': None, 'deleted': False, 'created_at': '2020-05-19T08:48:08.000000', 'updated_at': None, 'extra_specs': {u'volume_backend_name': u'lvm'}, 'is_public': True, 'deleted_at': None, 'id': u'1784d99e-c13a-43dd-940b-0df9db4fc882', 'projects': [], 'description': None}
2020-05-19 14:22:41.662 13887 INFO cinder.message.api [req-4ee1c269-a2cd-4d4c-9ea3-3c62389af4f1 602efc43827c4b47af0c00d999903a76 7160a5445f664afcb32d1a32be885705 - default default] Creating message record for request_id = req-4ee1c269-a2cd-4d4c-9ea3-3c62389af4f1
2020-05-19 14:22:41.712 13887 ERROR cinder.scheduler.flows.create_volume [req-4ee1c269-a2cd-4d4c-9ea3-3c62389af4f1 602efc43827c4b47af0c00d999903a76 7160a5445f664afcb32d1a32be885705 - default default] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid backend was found. No weighed backends available: NoValidBackend: No valid backend was found. No weighed backends available

Volume List:

+--------------------------------------+--------------+--------+------+-------------+
| ID                                   | Name         | Status | Size | Attached to |
+--------------------------------------+--------------+--------+------+-------------+
| 5a57a27f-411f-4b2b-b8a7-dfe6fab9f3d4 | ceph-volume4 | error  |    1 |             |
| b2997273-dd58-47da-9ed0-9fadae2b7f63 | ceph-volume3 | error  |    1 |             |
| 44414d93-e06b-4b8c-bb13-392824d877cc | ceph-volume2 | error  |    2 |             |
| 052d5277-7732-4e71-958c-70d7ca5f1e1c | ceph-volume1 | error  |    2 |             |
+--------------------------------------+--------------+--------+------+-------------+

Volume Service List:

+------------------+---------------+------+---------+-------+----------------------------+
| Binary           | Host          | Zone | Status  | State | Updated At                 |
+------------------+---------------+------+---------+-------+----------------------------+
| cinder-scheduler | os-node1      | nova | enabled | up    | 2020-05-19T12:58:40.000000 |
| cinder-backup    | os-node1      | nova | enabled | up    | 2020-05-19T12:58:43.000000 ...
(more)
edit retag flag offensive close merge delete

Comments

1

The only enabled backend is Ceph, but you are trying to create a volume of type iscsi, whose backend is lvm. Either enable the lvm backend or create a volume type that uses ceph.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-19 09:18:53 -0500 )edit

Thanks a lot !

f0Mle gravatar imagef0Mle ( 2020-05-19 11:09:33 -0500 )edit