ceph / ceph-iscsi-cli

NOTICE: moved to https://github.com/ceph/ceph-iscsi
GNU General Public License v3.0
25 stars 25 forks source link

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

Open c-stewa20 opened 2 years ago

c-stewa20 commented 2 years ago

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.