ceph / ceph/ceph-iscsi-cli

rbd-target-gw.service: Failed with result 'exit-code'.

Open
#161 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
26
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Trying to get this initial setup completed. I did the ceph-ansible setup and can look at the dashboard and see things. Now trying to get iscsi working, but can't get gwcli get the following error:

sudo gwcli
REST API failure, code : 500
Unable to access the configuration object
Unable to contact the local API endpoint (http://localhost:5000/api)

sudo systemctl status rbd-target-gw.service
● 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: exit-code) since Mon 2022-04-11 14:42:59 UTC; 30min ago
Process: 3045 ExecStart=/usr/bin/rbd-target-gw (code=exited, status=1/FAILURE)
Main PID: 3045 (code=exited, status=1/FAILURE)

Apr 11 14:42:59 iscsi-gw systemd[1]: rbd-target-gw.service: Service RestartSec=100ms expired, scheduling restart.
Apr 11 14:42:59 iscsi-gw systemd[1]: rbd-target-gw.service: Scheduled restart job, restart counter is at 3.
Apr 11 14:42:59 iscsi-gw systemd[1]: Stopped Setup system to export rbd images through LIO.
Apr 11 14:42:59 iscsi-gw systemd[1]: rbd-target-gw.service: Start request repeated too quickly.
Apr 11 14:42:59 iscsi-gw systemd[1]: rbd-target-gw.service: Failed with result 'exit-code'.
Apr 11 14:42:59 iscsi-gw systemd[1]: Failed to start Setup system to export rbd images through LIO.

journalctl
Apr 11 15:40:59 iscsi-gw systemd[1]: rbd-target-gw.service: Failed with result 'exit-code'.
Apr 11 15:40:59 iscsi-gw systemd[1]: rbd-target-gw.service: Service RestartSec=100ms expired, scheduling restart.
Apr 11 15:40:59 iscsi-gw systemd[1]: rbd-target-gw.service: Scheduled restart job, restart counter is at 2.
Apr 11 15:40:59 iscsi-gw systemd[1]: Stopped Setup system to export rbd images through LIO.
Apr 11 15:40:59 iscsi-gw systemd[1]: Started Setup system to export rbd images through LIO.
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: Integrated Prometheus exporter is enabled
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: Traceback (most recent call last):
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/bin/rbd-target-gw", line 93, in
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: main()
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/bin/rbd-target-gw", line 61, in main
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: threaded=True)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib/python3.6/site-packages/flask/app.py", line 841, in run
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: run_simple(host, port, self, **options)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 739, in run_simple
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: inner()
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 699, in inner
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: fd=fd)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 587, in make_server
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: passthrough_errors, ssl_context, fd=fd)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 504, in __init__
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: HTTPServer.__init__(self, (host, int(port)), handler)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib64/python3.6/socketserver.py", line 453, in __init__
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: self.socket_type)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: File "/usr/lib64/python3.6/socket.py", line 144, in __init__
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: _socket.socket.__init__(self, family, type, proto, fileno)
Apr 11 15:40:59 iscsi-gw rbd-target-gw[4518]: OSError: [Errno 97] Address family not supported by protocol
Apr 11 15:40:59 iscsi-gw systemd[1]: rbd-target-gw.service: Main process exited, code=exited, status=1/FAILURE
Apr 11 15:40:59 iscsi-gw systemd[1]: rbd-target-gw.service: Failed with result 'exit-code'.
Apr 11 15:41:00 iscsi-gw systemd[1]: rbd-target-gw.service: Service RestartSec=100ms expired, scheduling restart.
Apr 11 15:41:00 iscsi-gw systemd[1]: rbd-target-gw.service: Scheduled restart job, restart counter is at 3.
Apr 11 15:41:00 iscsi-gw systemd[1]: Stopped Setup system to export rbd images through LIO.
Apr 11 15:41:00 iscsi-gw systemd[1]: rbd-target-gw.service: Start request repeated too quickly.
Apr 11 15:41:00 iscsi-gw systemd[1]: rbd-target-gw.service: Failed with result 'exit-code'.
Apr 11 15:41:00 iscsi-gw systemd[1]: Failed to start Setup system to export rbd images through LIO.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.