Hi,

yes, I have read https://docs.ceph.com/docs/octopus/cephadm/stability/
and know that the iSCSI support is still under development.

But why is the command "ceph orch apply iscsi" available
when cephadmin is the orchestrator backend?

I am at the stage that I successfully rolled out an iSCSI gateway
which is visible in the Ceph dashboard.

But when trying to setup a target an error occurs:

Sep 04 15:15:58 ceph02 rbd-target-api[124040]: Unable to create the Target 
definition - Could not load module: iscsi_target_mod
Sep 04 15:15:58 ceph02 rbd-target-api[124040]: Unhandled Exception
                                               Traceback (most recent call 
last):
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/node.py", line 71, in 
_create_in_cfs_ine
                                                   os.mkdir(self.path)
                                               FileNotFoundError: [Errno 2] No 
such file or directory: '/sys/kernel/config/target/iscsi'
                                               
                                               During handling of the above 
exception, another exception occurred:
                                               
                                               Traceback (most recent call 
last):
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/fabric.py", line 156, in _check_self
                                                   
self._create_in_cfs_ine('any')
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/node.py", line 74, in 
_create_in_cfs_ine
                                                   % self.__class__.__name__)
                                               rtslib_fb.utils.RTSLibError: 
Could not create ISCSIFabricModule in configFS
                                               
                                               During handling of the above 
exception, another exception occurred:
                                               
                                               Traceback (most recent call 
last):
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/utils.py", line 432, in modprobe
                                                   kmod.Kmod().modprobe(module)
                                                 File "kmod/kmod.pyx", line 
106, in kmod.kmod.Kmod.modprobe
                                                 File "kmod/kmod.pyx", line 82, 
in lookup
                                               kmod.error.KmodError: Could not 
modprobe
                                               
                                               During handling of the above 
exception, another exception occurred:
                                               
                                               Traceback (most recent call 
last):
                                                 File 
"/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in 
full_dispatch_request
                                                   rv = self.dispatch_request()
                                                 File 
"/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
                                                   return 
self.view_functions[rule.endpoint](**req.view_args)
                                                 File 
"/usr/bin/rbd-target-api", line 106, in decorated
                                                   return f(*args, **kwargs)
                                                 File 
"/usr/bin/rbd-target-api", line 304, in target
                                                   target.manage('init')
                                                 File 
"/usr/lib/python3.6/site-packages/ceph_iscsi_config/target.py", line 710, in 
manage
                                                   
'mutual_password_encryption_enabled'])
                                                 File 
"/usr/lib/python3.6/site-packages/ceph_iscsi_config/discovery.py", line 14, in 
set_discovery_auth_lio
                                                   
iscsi_fabric.clear_discovery_auth_settings()
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/fabric.py", line 224, in 
clear_discovery_auth_settings
                                                   self._check_self()
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/fabric.py", line 158, in _check_self
                                                   modprobe(self.kernel_module)
                                                 File 
"/usr/lib/python3.6/site-packages/rtslib_fb/utils.py", line 434, in modprobe
                                                   raise RTSLibError("Could not 
load module: %s" % module)
                                               rtslib_fb.utils.RTSLibError: 
Could not load module: iscsi_target_mod

Solution:

"modprobe iscsi_target_mod" on the host itself,
the container is not allowed to do that.

Regards
-- 
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG: 
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to