SUSE Support

Here When You Need Us

Error trying to resolve 'xmlrpc.rhn.redhat.com': [Errno -2] Name or service not known

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

Environment

Suse Manager Proxy 4.2

Situation

Customer can restart the salt-broker service with no issue, but its status remains in failed:
# systemctl restart salt-broker
# systemctl status salt-broker
 salt-broker.service - Salt ZeroMQ Proxy (broker)
     Loaded: loaded (/usr/lib/systemd/system/salt-broker.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2022-03-10 08:25:40 CET; 1s ago
    Process: 4852 ExecStart=/usr/bin/salt-broker (code=exited, status=1/FAILURE)
   Main PID: 4852 (code=exited, status=1/FAILURE)

Mar 10 08:25:40 sumaproxy4new systemd[1]: Started Salt ZeroMQ Proxy (broker).
Mar 10 08:25:40 sumaproxy4new salt-broker[4852]: [PubChannelProxy] Error trying to resolve 'xmlrpc.rhn.redhat.com': [Errno -2] Name or service not known
Mar 10 08:25:40 sumaproxy4new systemd[1]: salt-broker.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 08:25:40 sumaproxy4new systemd[1]: salt-broker.service: Failed with result 'exit-code'.
Salt-broker message logs:
# tail -f /var/log/salt/broker 
2022-03-10 08:41:16,244 DEBUG Using 'rhn_parent' from /etc/rhn/rhn.conf as 'master'
2022-03-10 08:41:16,247 DEBUG [SaltBroker] Readed config: {'publish_port': '4505', 'ret_port': '4506', 'interface': '0.0.0.0', 'tcp_keepalive': True, 'tcp_keepalive_idle': 300, 'tcp_keepalive_cnt': -1, 'tcp_keepalive_intvl': -1, 'master': 'xmlrpc.rhn.redhat.com'}
2022-03-10 08:41:16,247 INFO [SaltBroker] Starting Salt ZeroMQ Proxy [PID: 5163]
2022-03-10 08:41:16,296 ERROR [SaltBroker] [PubChannelProxy] Error trying to resolve 'xmlrpc.rhn.redhat.com': [Errno -2] Name or service not known



 

Resolution

1) Go to /etc/rhn/rhn.conf and edit parent hostname 
from
proxy.rhn_parent = xmlrpc.rhn.redhat.com

to 
proxy.rhn_parent = sumahostname

2) Go to /etc/sysconfig/rhn/up2date and edit server hostname 
from
serverURL[comment]=Remote server URL (use FQDN)
https://xmlrpc.rhn.redhat.com/XMLRPC

to 
serverURL[comment]=Remote server URL (use FQDN)
https://sumahostname/XMLRPC

3) Restart salt-broker service
systemctl restart salt-broker

4) Double check salt-broker service status
systemctl status salt-broker
 

Cause

This Suse proxy server has registered to Redhat Server before. But parent's hostname does not update to configuration automatically.

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:000020610
  • Creation Date: 10-Mar-2022
  • Modified Date:15-Mar-2022
    • SUSE Manager Proxy

< 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.