Comments (12)
Apparently, you are still using ceph-iscsi
version 2.7
. Any reason to not update to a newer version? The latest release is 3.2
.
from ceph-iscsi.
I downloaded the last version so i think it should be 3.2. But is there any qlue to check the version?
from ceph-iscsi.
I havent even downloaded ceph-iscsi... i only have ceph-iscsi-cli and ceph-iscsi-config. - Is that wrong?
Im trying to build that all on CentOS7 and followed the master documentation from ceph
from ceph-iscsi.
https://github.com/ceph/ceph-iscsi-cli and https://github.com/ceph/ceph-iscsi-config were merged and moved to https://github.com/ceph/ceph-iscsi.
I don't see any reference to ceph-iscsi-cli
/ ceph-iscsi-config
in the master documentation. Which page are you looking for?
from ceph-iscsi.
Please excuse me. I installed the Ceph Cluster with a mimic Documentation and there was the ceph-iscsi-cli and iscsi-config.
I downloaded ceph-iscsi now and installed it with python setup.py install
and have copied the services to the directory which is given in the manual https://github.com/ceph/ceph-iscsi
.
Now they wont start.
rbd-target-gw:
Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: Traceback (most recent call last): Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/bin/rbd-target-gw", line 5, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw') Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: self.require(requires)[0].run_script(script_name, ns) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: exec_(script_code, namespace, namespace) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: exec("""exec code in globs, locs""") Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "<string>", line 1, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: AttributeError: 'Settings' object has no attribute 'logger_level' Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: Traceback (most recent call last): Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/bin/rbd-target-gw", line 5, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw') Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: self.require(requires)[0].run_script(script_name, ns) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: exec_(script_code, namespace, namespace) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: exec("""exec code in globs, locs""") Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "<string>", line 1, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: AttributeError: 'Settings' object has no attribute 'logger_level' Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-gw.service Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Failed to start Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:36:54 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:36:54 ceph-iscsi-gateway rbd-target-gw[2039]: Traceback (most recent call last): Jul 10 11:36:54 ceph-iscsi-gateway rbd-target-gw[2039]: File "/usr/bin/rbd-target-gw", line 5, in <module> [root@ceph-iscsi-gateway ~]# journalctl -u rbd-target-gw -- Logs begin at Mi 2019-07-10 11:32:46 CEST, end at Mi 2019-07-10 11:36:57 CEST. -- Jul 10 11:32:56 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: Traceback (most recent call last): Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: File "/usr/bin/rbd-target-gw", line 5, in <module> Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw') Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: self.require(requires)[0].run_script(script_name, ns) Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: exec_(script_code, namespace, namespace) Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: exec("""exec code in globs, locs""") Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: File "<string>", line 1, in <module> Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in <module> Jul 10 11:32:57 ceph-iscsi-gateway rbd-target-gw[1498]: AttributeError: 'Settings' object has no attribute 'logger_level' Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO. Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: Traceback (most recent call last): Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/bin/rbd-target-gw", line 5, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw') Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: self.require(requires)[0].run_script(script_name, ns) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: exec_(script_code, namespace, namespace) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: exec("""exec code in globs, locs""") Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "<string>", line 1, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1958]: AttributeError: 'Settings' object has no attribute 'logger_level' Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: Traceback (most recent call last): Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/bin/rbd-target-gw", line 5, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw') Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: self.require(requires)[0].run_script(script_name, ns) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: exec_(script_code, namespace, namespace) Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: exec("""exec code in globs, locs""") Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "<string>", line 1, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in <module> Jul 10 11:32:58 ceph-iscsi-gateway rbd-target-gw[1971]: AttributeError: 'Settings' object has no attribute 'logger_level' Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-gw.service Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Failed to start Setup system to export rbd images through LIO. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state. Jul 10 11:32:58 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed. Jul 10 11:36:54 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 11:36:54 ceph-iscsi-gateway rbd-target-gw[2039]: Traceback (most recent call last): Jul 10 11:36:54 ceph-iscsi-gateway rbd-target-gw[2039]: File "/usr/bin/rbd-target-gw", line 5, in <module>
rbd-target-api:
`[root@ceph-iscsi-gateway ~]# systemctl status rbd-target-api
â rbd-target-api.service - Ceph iscsi target configuration API
Loaded: loaded (/usr/lib/systemd/system/rbd-target-api.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mi 2019-07-10 11:32:57 CEST; 9min ago
Main PID: 1499 (code=killed, signal=TERM)
Jul 10 11:32:56 ceph-iscsi-gateway systemd[1]: Started Ceph iscsi target configuration API.
Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Stopping Ceph iscsi target configuration API...
Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Stopped Ceph iscsi target configuration API.
Jul 10 11:36:57 ceph-iscsi-gateway systemd[1]: Dependency failed for Ceph iscsi target configuration API.
Jul 10 11:36:57 ceph-iscsi-gateway systemd[1]: Job rbd-target-api.service/start failed with result 'dependency'.
`
Sorry if i confuse you but I didn't got it that cli and config got merged and moved to iscsi
from ceph-iscsi.
The error I see in the log is AttributeError: 'Settings' object has no attribute 'logger_level'
.
Looks like the settings.py file that is being loaded is the one from your previous installation.
from ceph-iscsi.
I deleted the ceph-iscsi folder and recloned it.
rbd-target-api:
`[root@ceph-iscsi-gateway ceph-iscsi]# systemctl status rbd-target-api
â rbd-target-api.service - Ceph iscsi target configuration API
Loaded: loaded (/usr/lib/systemd/system/rbd-target-api.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mi 2019-07-10 12:40:15 CEST; 1min 48s ago
Process: 2314 ExecStart=/usr/bin/rbd-target-api (code=killed, signal=TERM)
Main PID: 2314 (code=killed, signal=TERM)
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Started Ceph iscsi target configuration API.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Stopping Ceph iscsi target configuration API...
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Stopped Ceph iscsi target configuration API.
[root@ceph-iscsi-gateway ceph-iscsi]# journalctl -u rbd-target-api
-- Logs begin at Mi 2019-07-10 11:32:46 CEST, end at Mi 2019-07-10 12:40:16 CEST. --
Jul 10 11:32:56 ceph-iscsi-gateway systemd[1]: Started Ceph iscsi target configuration API.
Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Stopping Ceph iscsi target configuration API...
Jul 10 11:32:57 ceph-iscsi-gateway systemd[1]: Stopped Ceph iscsi target configuration API.
Jul 10 11:36:57 ceph-iscsi-gateway systemd[1]: Dependency failed for Ceph iscsi target configuration API.
Jul 10 11:36:57 ceph-iscsi-gateway systemd[1]: Job rbd-target-api.service/start failed with result 'dependency'.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Started Ceph iscsi target configuration API.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Stopping Ceph iscsi target configuration API...
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Stopped Ceph iscsi target configuration API.
[root@ceph-iscsi-gateway ceph-iscsi]#`
Looks correct i think?
rbd-target-gw:
`Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO.
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: Traceback (most recent call last):
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: File "/usr/bin/rbd-target-gw", line 5, in
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw')
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: self.require(requires)[0].run_script(script_name, ns)
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: exec_(script_code, namespace, namespace)
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: exec("""exec code in globs, locs""")
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: File "", line 1, in
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2313]: AttributeError: 'Settings' object has no attribute 'logger_level'
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO.
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: Traceback (most recent call last):
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: File "/usr/bin/rbd-target-gw", line 5, in
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw')
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: self.require(requires)[0].run_script(script_name, ns)
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: exec_(script_code, namespace, namespace)
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: exec("""exec code in globs, locs""")
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: File "", line 1, in
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in
Jul 10 12:40:15 ceph-iscsi-gateway rbd-target-gw[2339]: AttributeError: 'Settings' object has no attribute 'logger_level'
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state.
Jul 10 12:40:15 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: Traceback (most recent call last):
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: File "/usr/bin/rbd-target-gw", line 5, in
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-gw')
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: self.require(requires)[0].run_script(script_name, ns)
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: exec_(script_code, namespace, namespace)
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: exec("""exec code in globs, locs""")
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: File "", line 1, in
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 66, in
Jul 10 12:40:16 ceph-iscsi-gateway rbd-target-gw[2352]: AttributeError: 'Settings' object has no attribute 'logger_level'
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-gw.service
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Failed to start Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-gw.service
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Failed to start Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
[root@ceph-iscsi-gateway ceph-iscsi]# systemctl status rbd-target-gw
â rbd-target-gw.service - Setup system to export rbd images through LIO
Loaded: loaded (/usr/lib/systemd/system/rbd-target-gw.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Mi 2019-07-10 12:40:16 CEST; 2min 52s ago
Process: 2352 ExecStart=/usr/bin/rbd-target-gw (code=exited, status=1/FAILURE)
Main PID: 2352 (code=exited, status=1/FAILURE)
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Stopped Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-gw.service
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Failed to start Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Unit rbd-target-gw.service entered failed state.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-gw.service
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: Failed to start Setup system to export rbd images through LIO.
Jul 10 12:40:16 ceph-iscsi-gateway systemd[1]: rbd-target-gw.service failed.
[root@ceph-iscsi-gateway ceph-iscsi]#`
from ceph-iscsi.
Just ignore my latest Comment.
I've rebuilded the Ceph-ISCSI and followed the right constructions of "http://docs.ceph.com/docs/master/rbd/iscsi-target-cli-manual-install/".
Now he tells me that:
Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: Started Ceph iscsi target configuration API. Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: Traceback (most recent call last): Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: File "/usr/bin/rbd-target-api", line 5, in <module> Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: pkg_resources.run_script('ceph-iscsi==3.2', 'rbd-target-api') Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: self.require(requires)[0].run_script(script_name, ns) Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: exec_(script_code, namespace, namespace) Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_ Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: exec("""exec code in globs, locs""") Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: File "<string>", line 1, in <module> Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: File "/usr/lib/python2.7/site-packages/ceph_iscsi-3.2-py2.7.egg/EGG-INFO/scripts/rbd-target-api", line 28, in <module> Jul 10 13:22:53 ceph-iscsi-gateway rbd-target-api[2539]: ImportError: cannot import name CephiSCSIGateway Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: rbd-target-api.service: main process exited, code=exited, status=1/FAILURE Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: Unit rbd-target-api.service entered failed state. Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: rbd-target-api.service failed. Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: rbd-target-api.service holdoff time over, scheduling restart. Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: Stopped Ceph iscsi target configuration API. Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: start request repeated too quickly for rbd-target-api.service Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: Failed to start Ceph iscsi target configuration API. Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: Unit rbd-target-api.service entered failed state. Jul 10 13:22:53 ceph-iscsi-gateway systemd[1]: rbd-target-api.service failed.
Jul 10 13:22:43 ceph-iscsi-gateway systemd[1]: Started Setup system to export rbd images through LIO. Jul 10 13:22:43 ceph-iscsi-gateway rbd-target-gw[2450]: Traceback (most recent call last): Jul 10 13:22:43 ceph-iscsi-gateway rbd-target-gw[2450]: File "/usr/bin/rbd-target-gw", line 5, in <module>
from ceph-iscsi.
Closing issue. Looks like you figured it out.
To answer your first question:
My first question is: Do I need two gateways for that and if yes can i run them on one node?
Yes you need at least 2 gateways. You could run them in VMs on the same node, but you can't have 2 gw instances on the directly same physical node.
If you only needed one gw, you could just use LIO and krbd directly.
from ceph-iscsi.
@mikechristie First thank you for answering the first question, but i did not really figured it out. - I still got the problem that the rbd-target-gw and the api service does not come up after i switched to ceph-iscsi.
from ceph-iscsi.
It looks like you are still using the older libs or daemon.
- Did you install the original ceph-iscsi-cli/config code using rpm or upstream using "python setup.py install". It sounds like the latter. If that is case let's make sure we fully cleaned up:
Do
whereis rbd-target-api
whereis rbd-target-gw
Do a rm for both daemons.
Do a
rm -f -r /usr/lib/python$XYZ/site-packages/ceph_iscsi*
rm -f -r /usr/lib/python$XYZ/site-packages/gwcli*
Depending on how you installed there might be a ceph_iscsi_config dir with source, a .egg dir/file, etc. Make sure they are all gone.
Note that $XYZ might be 2 or 3 or something like 2.7 or 3.6 or it might be both.
Make sure you recopy the systemd scripts. From the ceph-iscsi source dir do:
cp usr/lib/systemd/system/rbd-target-* /usr/lib/systemd/system/
and do a "systemctl daemon-reload"
Then reinstall ceph-iscsi.
If you installed using rpm, then made other modifications while trying to figure things out make sure that after you have removed the rpm that the dirs, egg files/dirs, etc are deleted from:
/usr/lib/python$XYZ/site-packages/ceph_iscsi*
/usr/lib/python$XYZ/site-packages/gwcli*
from ceph-iscsi.
It worked!
Thanks!
from ceph-iscsi.
Related Issues (20)
- rbd-target-api / Unable to decode password for iqn.1998-01.com ,,, HOT 19
- Help! The rbd-target-api service of iSCSI gw cannot be started HOT 2
- ceph-iscsi / tcmu-runner bad pefromance with vmware esxi HOT 1
- I can't get return from method _add_dev_to_lio_user_rbd in ARM environment, it seems to be hang HOT 1
- Unable to remove / disassociate a disk from initiator HOT 1
- rbd-target-api will not start on Ubuntu Impish and later
- Failed to deploy iscsi service HOT 1
- Is ceph iscsi still being maintained?Or has it been abandoned? HOT 5
- gwcli error: REST API failure, code: 500
- rbd-target-api: concurrent requests are not supported HOT 6
- About using cephadm to deploy iSCSI Gateway
- Cannot remove a non-existent gatway by confirm=true HOT 1
- rbd-target-api fails to start : error : Failed to run ceph osd blocklist ls HOT 1
- rbd-target-api stuck, tcmu-runner crash / iSCSI Login negotiation failed
- HELP:Failed : disk create/update failed on ceph-2. Unhandled exception: __init__() got an unexpected keyword argument 'control'
- HELP: Failed : disk create/update failed on ceph-2. LUN allocation failure
- rbd-target-api: Disk limit 256 HOT 4
- rtslib_fb: `db_root: cannot be changed because it's in use`
- PSA: Purging ceph-iscsi on Debian rendered system borked
- rbd-target-api bug in centos9 with default python 3.9.18 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-iscsi.