Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

getting error while connecting to ceph cluster with manila

7 INFO ceph_volume_client [req-02dc5a6a-c5db-4637-9518-746040e0553b - - - - -] disconnect 2017-09-27 16:38:40.029 26052 INFO oslo_service.service [req-fd24c68d-8045-40f5-b508-129248d1311d - - - - -] Child 26147 exited with status 1 2017-09-27 16:38:40.041 26158 INFO manila.service [-] Starting manila-share node (version 3.0.0) 2017-09-27 16:38:40.550 26158 INFO manila.share.manager [req-f73371c8-039b-408e-ab01-1ee08d2fd11f - - - - -] Updating share status 2017-09-27 16:38:40.552 26158 INFO manila.share.drivers.cephfs.cephfs_native [req-f73371c8-039b-408e-ab01-1ee08d2fd11f - - - - -] [cephfs}] Ceph client found, connecting... 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service [req-f73371c8-039b-408e-ab01-1ee08d2fd11f - - - - -] Error starting thread. 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service Traceback (most recent call last): 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/oslo_service/service.py", line 708, in run_service 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     service.start() 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/service.py", line 118, in start 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     self.manager.init_host() 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/manager.py", line 163, in wrapped 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     return f(self, *args, **kwargs) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/manager.py", line 348, in init_host 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     self.publish_service_capabilities(ctxt) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/manager.py", line 163, in wrapped 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     return f(self, *args, **kwargs) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/utils.py", line 617, in wrapper 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     return func(self, *args, **kwargs) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/manager.py", line 2632, in publish_service_capabilities 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     self._report_driver_status(context) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/utils.py", line 617, in wrapper 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     return func(self, *args, **kwargs) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/manager.py", line 2596, in _report_driver_status 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     share_stats = self.driver.get_share_stats(refresh=True) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/driver.py", line 673, in get_share_stats 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     self._update_share_stats() 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/drivers/cephfs/cephfs_native.py", line 86, in _update_share_stats 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     stats = self.volume_client.rados.get_cluster_stats() 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/manila/share/drivers/cephfs/cephfs_native.py", line 151, in volume_client 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     self._volume_client.connect(premount_evict=premount_evict) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 458, in connect 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service     self.rados.connect() 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service   File "rados.pyx", line 785, in rados.Rados.connect (/build/ceph-25Z60r/ceph-10.2.7/src/build/rados.c:10073) 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service Error: error connecting to the cluster: error code 22 2017-09-27 16:38:40.565 26158 ERROR oslo_service.service

error i m getting while connecting to ceph cluster through manila service

 [DEFAULT]
transport_url = rabbit://openstack:rabbit@123@controller
default_share_type = default_share_type

share_name_template = share-%s
rootwrap_config = /etc/manila/rootwrap.conf
api_paste_config = /etc/manila/api-paste.ini
enabled_share_backends = cephfs1
enabled_share_protocols = CEPHFS
[cephfs1]
driver_handles_share_servers = False
share_backend_name = cephfs
share_driver = manila.share.drivers.cephfs.cephfs_native.CephFSNativeDriver
cephfs_conf_path = /etc/ceph/ceph.conf

cephfs_auth_id = manila
cephfs_cluster_name = ceph
cephfs_enable_snapshots = True

[keystone_authtoken]
memcached_servers = controller:11211
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_type = password
project_domain_id = default
user_domain_id = default

project_name = service
username = manila
password = manila

this is my manila.conf file manila api and manila share service both are on controller node.

my ceph cluister is up and running with mds .

but i am not able to connect to ceph cluster.