Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help! The rbd-target-api service of iSCSI gw cannot be started #243

Open
yq513 opened this issue Jul 30, 2021 · 4 comments
Open

Help! The rbd-target-api service of iSCSI gw cannot be started #243

yq513 opened this issue Jul 30, 2021 · 4 comments

Comments

@yq513
Copy link

yq513 commented Jul 30, 2021

Help! The rbd-target-api service of iSCSI gw cannot be started

Two servers form iSCSI GW,

[root@ceph-node1 ~]# systemctl reset-failed rbd-target-api.service
[root@ceph-node1 ~]# systemctl start rbd-target-api.service
[root@ceph-node1 ~]# gwcli
Unable to access the configuration object : REST API failure, code : 500
GatewayError:
[root@ceph-node1 ~]# 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: failed (Result: start-limit) since Fri 2021-07-30 11:25:58 CST; 15min ago
Process: 11678 ExecStart=/usr/bin/rbd-target-api (code=exited, status=1/FAILURE)
Main PID: 11678 (code=exited, status=1/FAILURE)

Jul 30 11:25:58 ceph-node1 systemd[1]: Unit rbd-target-api.service entered failed state.
Jul 30 11:25:58 ceph-node1 systemd[1]: rbd-target-api.service failed.
Jul 30 11:25:58 ceph-node1 systemd[1]: rbd-target-api.service holdoff time over, scheduling restart.
Jul 30 11:25:58 ceph-node1 systemd[1]: Stopped Ceph iscsi target configuration API.
Jul 30 11:25:58 ceph-node1 systemd[1]: start request repeated too quickly for rbd-target-api.service
Jul 30 11:25:58 ceph-node1 systemd[1]: Failed to start Ceph iscsi target configuration API.
Jul 30 11:25:58 ceph-node1 systemd[1]: Unit rbd-target-api.service entered failed state.
Jul 30 11:25:58 ceph-node1 systemd[1]: rbd-target-api.service failed.
[root@ceph-node1 ~]#

This is where is the problem, how to troubleshoot this kind of need
Thank you very much for your answer

@lightmans2
Copy link

lightmans2 commented Jul 30, 2021

Hi, i trhink you have the same problem like me -> #242

can you show us the output from:


# rados lspools

# cat /etc/ceph/iscsi-gateway.cfg

#  gwcli -d  (on booth nodes)

# /var/log/rbd-target-api/rbd-target-api.log (show us te end of the log)

#  cat /etc/ceph/ceph.client.admin.keyring

@sujith0602
Copy link

sujith0602 commented Apr 2, 2024

I am facing a similar issue and I am unable to start the rbd-target-api at all. It exits with an error.

× rbd-target-api.service - Ceph iscsi target configuration API
Loaded: loaded (/lib/systemd/system/rbd-target-api.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-04-02 15:14:35 UTC; 7s ago
Process: 67438 ExecStart=/usr/bin/rbd-target-api (code=exited, status=16)
Main PID: 67438 (code=exited, status=16)
CPU: 451ms

Apr 02 15:14:35 cephadm-01 systemd[1]: rbd-target-api.service: Scheduled restart job, restart counter is at 3.
Apr 02 15:14:35 cephadm-01 systemd[1]: Stopped Ceph iscsi target configuration API.
Apr 02 15:14:35 cephadm-01 systemd[1]: rbd-target-api.service: Start request repeated too quickly.
Apr 02 15:14:35 cephadm-01 systemd[1]: rbd-target-api.service: Failed with result 'exit-code'.
Apr 02 15:14:35 cephadm-01 systemd[1]: Failed to start Ceph iscsi target configuration API.

@Nick-085
Copy link

I'm getting the same thing. Has anyone found a solution?

@lgzcoollg
Copy link

I'm getting the same thing. Has anyone found a solution?

I got same problem, I fixed through:

cp ceph.client.crash.keyring to /etc/ceph/ceph.client.crash.keyring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants