Ceph + cinder : No valid backend was found.

asked 2020-01-21 03:55:14 -0500

randomname gravatar image
  • Openstack: Stein
  • Ceph: mimic

Ceph is ok with glance, but don't connect with cinder. Please help me to find mistake.

[root@controller ~(keystone_admin)]# ceph -s
  cluster:
    id:     302b9536-c79e-4839-b5a7-33fe70ee272d
    health: HEALTH_WARN
            application not enabled on 2 pool(s)

  services:
    mon: 4 daemons, quorum controller,s1,s2,s3
    mgr: s2(active), standbys: s1, s3, controller
    osd: 4 osds: 4 up, 4 in

  data:
    pools:   4 pools, 368 pgs
    objects: 27  objects, 54 MiB
    usage:   6.5 GiB used, 1.4 TiB / 1.4 TiB avail
    pgs:     368 active+clean

/var/log/cinder/scheduler.log:

... 2020-01-21 18:24:26.900 4098886 ERROR cinder.scheduler.flows.create_volume [req-8aa2b652-6644-4672-9582-0534d5e5daae fb681d5e07b746618c6746c8b8ac806a f57eec44608c46eb9282a18c4ec44346 - 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

...

cinder.conf

[DEFAULT]
transport_url=rabbit://amqp_user:PASSWD@111.111.11.11:5672/
auth_strategy = keystone
my_ip = 111.111.11.11
debug = True
[backend]
backend_host=controller:volumes
[backend_defaults]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
volume_backend_name = rbd-1
rbd_pool = volumes
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 = 5
rbd_user = cinder
rbd_secret_uuid = 11eeac55-e4fe-49d0-8baa-a37b8caef68f
report_discard_supported = True
image_upload_use_cinder_backend = True
rbd_keyring_conf = /etc/ceph/ceph.client.cinder.keyring
[barbican]
[brcd_fabric_example]
[cisco_fabric_example]
[coordination]
[cors]
[database]
connection=mysql+pymysql://cinder:PASSWD@111.111.11.11/cinder
[fc-zone-manager]
[healthcheck]
[key_manager]
[keystone_authtoken]
www_authenticate_uri=http://111.111.11.11:5000/v3
auth_uri=http://111.111.11.11:5000/v3
auth_type=password
auth_url=http://111.111.11.11:5000
username=cinder
password=PASSWD
user_domain_name=Default
project_name=services
project_domain_name=Default
[nova]
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_middleware]
[oslo_policy]
[oslo_reports]
[oslo_versionedobjects]
[privsep]
[profiler]
[sample_castellan_source]
[sample_remote_file_source]
[service_user]
[ssl]
[vault]
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-01-21 04:50:34 -0500

Your cinder.conf should have a setting enabled_backends in the [default] section, and an additional section named after the backend. I would also move the RBD-specific settings into the backend section. For example:

[defaults]
enabled_backends=mycephcluster
...
[mycephcluster]
volume_driver = cinder.volume.drivers.rbd.RBDDriver
volume_backend_name = rbd-1
rbd_pool = volumes
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 = 5
rbd_user = cinder
rbd_secret_uuid = 11eeac55-e4fe-49d0-8baa-a37b8caef68f
rbd_keyring_conf = /etc/ceph/ceph.client.cinder.keyring

See also the installation guide.

edit flag offensive delete link more

Comments

Thank you for your answer! But i have same result. Here is link for the storage node installation in your answer, should i have install storage node too? Its only controller node now.

randomname gravatar imagerandomname ( 2020-01-21 18:41:09 -0500 )edit

The installation guide uses an LVM backend implemented on a separate storage node, where cinder-volume runs. With a Ceph backend, cinder-volume should probably run on a controller.

Can you share your cinder.conf again? Add it to the question.

What's the output of openstack volume service list?

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-21 22:31:58 -0500 )edit

I didn't install volume service, that's why. Thank you!

randomname gravatar imagerandomname ( 2020-01-21 22:37:26 -0500 )edit

You made my day. Don't forget to plug in the computer (sorry, couldn't resist).

All the best!

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-22 00:21:55 -0500 )edit

Haha, I'm glad I made you laugh!

randomname gravatar imagerandomname ( 2020-01-22 03:32:58 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-01-21 03:55:14 -0500

Seen: 1,094 times

Last updated: Jan 21