SUSE Support

Here When You Need Us

Bootstrapping new clients fails with error "unable to parse json"

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

Environment

SUSE Manager 5.0

 


Situation

When bootstrapping new client via webUi it fails.

In /var/log/rhn/rhn_web_ui.log below error message is logged:

ERROR com.suse.manager.webui.controllers.bootstrap.AbstractMinionBootstrapper - Error during bootstrap: An error has occurred during salt execution: unable to parse json.

Within salt api log we see a stack trace with following error message:

jinja2.exceptions.UndefinedError: 'str object' has no attribute 'get'

Enabling trace on salt-api as follows:

mkdir /etc/systemd/system/salt-api.service.d/
cat << EOF > /etc/systemd/system/salt-api.service.d/logging.conf
[Service]
ExecStart=
ExecStart=/usr/bin/salt-api --log-file-level=trace
EOF
systemctl daemon-reload
systemctl restart salt-api.service

If we try again to bootstrap further details are logged:

YYYY-MM-DD hh:mm:ss,ms [salt.utils.vt.Terminal.PID-<PID>.STDOUT:<PID> ][TRACE   ][<PID>] 
MWarning: the ECDSA host key for 'xxxxxxx' differs from the key for t
Offending key for IP in /var/lib/salt/.ssh/known_hosts:225
Matching host key in /var/lib/salt/.ssh/known_hosts:223

 

 

Resolution

Removing the host key from: 

/var/lib/salt/.ssh/known_hosts

 

 

Cause

The client uses an host key which is already known.

 

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:000021701
  • Creation Date: 11-Feb-2025
  • Modified Date:11-Feb-2025
    • SUSE Manager Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

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

tick icon

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.

tick icon

Open an Incident

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