Redeploying the iSCSI Gateway fails with an error: required file missing from config-json: iscsi-gateway.cfg

This document (000020419) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Enterprise Storage 7

Situation

When redeploying the iSCSI Gateway this fails with the following backtrace:
 
Oct 28 09:25:50 ceph-node conmon[1962]: cephadm 2021-09-13T07:10:57.432279+0000 mgr.ceph-node (mgr.2854462) 2767519 : cephadm [ERR] cephadm exited with an error code: 1, stderr:Redeploy daemon iscsi.iscsi-gw.ceph-gw.lrvtgo ...
Oct 28 09:25:50 ceph-node conmon[1962]: ERROR: required file missing from config-json: iscsi-gateway.cfg
Oct 28 09:25:50 ceph-node conmon[1962]: Traceback (most recent call last):
Oct 28 09:25:50 ceph-node conmon[1962]:   File "/usr/share/ceph/mgr/cephadm/module.py", line 1021, in _remote_connection
Oct 28 09:25:50 ceph-node conmon[1962]:     yield (conn, connr)
Oct 28 09:25:50 ceph-node conmon[1962]:   File "/usr/share/ceph/mgr/cephadm/module.py", line 1168, in _run_cephadm
Oct 28 09:25:50 ceph-node conmon[1962]:     code, '\n'.join(err)))
Oct 28 09:25:50 ceph-node conmon[1962]: orchestrator._interface.OrchestratorError: cephadm exited with an error code: 1, stderr:Redeploy daemon iscsi.iscsi-gw.ceph-gw.lrvtgo ...
Oct 28 09:25:50 ceph-node conmon[1962]: ERROR: required file missing from config-json: iscsi-gateway.cfg

Resolution

Remove the relevant Gateway service and then deploy it again.

Cause

The error is due to a bug present in the Ceph Octopus code.

Additional Information

In managed mode, when a service is removed the orchestrator should add it again automatically after a short delay. To remove an iSCSI Gateway service execute:
 
ceph orch daemon rm iscsi.<iscsi_daemon_name>.<random_id>
 
 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020419
  • Creation Date: 28-Oct-2021
  • Modified Date:28-Oct-2021
    • SUSE Enterprise Storage

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center