Code Monkey home page Code Monkey logo

Comments (12)

ricardoasmarques avatar ricardoasmarques commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

ricardoasmarques avatar ricardoasmarques commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

ricardoasmarques avatar ricardoasmarques commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

 avatar commented on August 17, 2024

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.

mikechristie avatar mikechristie commented on August 17, 2024

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.

 avatar commented on August 17, 2024

@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.

mikechristie avatar mikechristie commented on August 17, 2024

It looks like you are still using the older libs or daemon.

  1. 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.

 avatar commented on August 17, 2024

It worked!
Thanks!

from ceph-iscsi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.