"PermissionError: [errno 1] error connecting to the cluster" error creating cinder volume from ceph backend
Issue
PermissionError: [errno 1] error connecting to the cluster
error creating cinder volume from ceph backend.
.7/site-packages/oslo_service/periodic_task.py:215
2018-07-06 08:32:48.677 1694704 DEBUG cinder.volume.drivers.rbd [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] opening connection to ceph cluster (timeout=-1). _connect_to_rados /usr/lib/python2.7/site-pac
kages/cinder/volume/drivers/rbd.py:328
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] Error connecting to ceph cluster.
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 347, in _connect_to_rados
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd client.connect()
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd File "rados.pyx", line 875, in rados.Rados.connect (/builddir/build/BUILD/ceph-12.2.4/build/src/pybind/rados/pyrex/rados.c:9764)
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd PermissionError: [errno 1] error connecting to the cluster
2018-07-06 08:32:48.711 1694704 ERROR cinder.volume.drivers.rbd
2018-07-06 08:32:48.715 1694704 DEBUG cinder.utils [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] Failed attempt 1 _print_stop /usr/lib/python2.7/site-packages/cinder/utils.py:795
2018-07-06 08:32:48.715 1694704 DEBUG cinder.utils [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] Have been at this for 0.038 seconds _print_stop /usr/lib/python2.7/site-packages/cinder/utils.py:797
2018-07-06 08:32:48.715 1694704 DEBUG cinder.utils [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] Sleeping for 10.0 seconds _backoff_sleep /usr/lib/python2.7/site-packages/cinder/utils.py:789
2018-07-06 08:32:55.184 1694689 DEBUG oslo_service.periodic_task [req-c2de7a08-800a-4d47-880d-3ac1d86d3d66 - - - - -] Running periodic task VolumeManager._publish_service_capabilities run_periodic_tasks /usr/lib/python2.7/site-packages/oslo_service/periodic_task.py:215
2018-07-06 08:32:55.185 1694689 DEBUG cinder.manager [req-c2de7a08-800a-4d47-880d-3ac1d86d3d66 - - - - -] Notifying Schedulers of capabilities ... _publish_service_capabilities /usr/lib/python2.7/site-packages/cinder/manager.py:165
2018-07-06 08:32:55.186 1694689 DEBUG oslo_messaging._drivers.amqpdriver [req-c2de7a08-800a-4d47-880d-3ac1d86d3d66 - - - - -] CAST unique_id: 4c3117d4416b418b9b7a399faae28688 FANOUT topic 'cinder-scheduler' _send /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:557
2018-07-06 08:32:55.189 1694689 DEBUG oslo_service.periodic_task [req-c2de7a08-800a-4d47-880d-3ac1d86d3d66 - - - - -] Running periodic task VolumeManager._report_driver_status run_periodic_tasks /usr/lib/python2.7/site-packages/oslo_service/periodic_task.py:215
2018-07-06 08:32:55.189 1694689 DEBUG cinder.volume.drivers.emc.vnx.driver [req-c2de7a08-800a-4d47-880d-3ac1d86d3d66 - - - - -] Updating volume stats. update_volume_stats /usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/vnx/driver.py:227
2018-07-06 08:32:55.192 1694689 INFO storops.vnx.navi_command [req-c2de7a08-800a-4d47-880d-3ac1d86d3d66 - - - - -] call command: /opt/Navisphere/bin/naviseccli -h <SAN IP> -secfilepath /etc/secfile/array1 storagepool -list -all
2018-07-06 08:32:58.716 1694704 DEBUG cinder.volume.drivers.rbd [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] opening connection to ceph cluster (timeout=-1). _connect_to_rados /usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py:328
2018-07-06 08:32:58.755 1694704 ERROR cinder.volume.drivers.rbd [req-64e378d2-27b7-417f-b8b0-c2ee7591da55 - - - - -] Error connecting to ceph cluster.
2018-07-06 08:32:58.755 1694704 ERROR cinder.volume.drivers.rbd Traceback (most recent call last):
2018-07-06 08:32:58.755 1694704 ERROR cinder.volume.drivers.rbd File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/rbd.py", line 347, in _connect_to_rados
2018-07-06 08:32:58.755 1694704 ERROR cinder.volume.drivers.rbd client.connect()
2018-07-06 08:32:58.755 1694704 ERROR cinder.volume.drivers.rbd File "rados.pyx", line 875, in rados.Rados.connect (/builddir/build/BUILD/ceph-12.2.4/build/src/pybind/rados/pyrex/rados.c:9764)
2018-07-06 08:32:58.755 1694704 ERROR cinder.volume.drivers.rbd PermissionError: [errno 1] error connecting to the cluster
- The error suggests that cinder is unable to connect to ceph cluster due to permission issue.
Environment
- Red Hat OpenStack Platform 10
- cinder with external ceph backend
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.