Description of problem: It seems that rhncfg-manager --server-name does not overwrite the server_url from /etc/sysconfig/rhn/rhncfg-manager.conf Version-Release number of selected component (if applicable): rhncfg-management-5.10.27-12.el5sat How reproducible: 100% Steps to Reproduce: 1. Have the following configuration in /etc/sysconfig/rhn/rhncfg-manager.conf [rhncfg-manager] # increase for debugging output debug_level = 0 # don't change this... used in substitutions below. # if you get rid of the '%(server_handler)s' bits below, # the *MUST* be replaced with this value... server_handler = /CONFIG-MANAGEMENT-TOOL # don't change this, period. repository_type = rpc_repository # to use a server other than what up2date is configured to use, # do something along the lines of: # server_url = https://some.example.com%(server_handler)s # server_url = http://another.example.net:8080%(server_handler)s # server_url = https://yet.another.example.org:8081/CONFIG-MANAGEMENT-TOOL # # You may also edit this value in a ~/.rhncfgrc file override file, # which will allow you to run the rhncfg-manager program as non-root server_url = https://xmlrpc.rhn.redhat.com/CONFIG-MANAGEMENT-TOOL # for your convenience, you may put your RHN username in here # to avoid being asked for it every time you run rhncfg-manager username = your_rhn_user_name # the following fields are inherited from up2date's configuration, # but are overridable in this file, or in a ~/.rhncfgrc file # enableProxy = 1 # enableProxyAuth = 1 # httpProxy = some.proxy.example.com:3030 # proxyUser = proxy_user_name # proxyPassword = proxy_password sslCACert = /usr/share/rhn/RHNS-CA-CERT 2. # rhncfg-manager create-channel test_conf_chann --server-name this_server_does_not_exit Using server name this_server_does_not_exit Password: Creating config channel test_conf_chann Config channel test_conf_chann created Actual results: The configuration channel is created in rhn.redhat.com #rhncfg-manager list-channels | grep test_conf_chann test_conf_chann Expected results: The value from --server-name is used instead of /etc/sysconfig/rhn/rhncfg-manager.conf: server_url. Additional info: #/usr/share/rhn/config_common/rhn_main.py if server_name: local_config.init(self.config_section, defaults=up2date_cfg, server_name=server_name) else: local_config.init(self.config_section, defaults=up2date_cfg)
Created attachment 706081 [details] Patch - bug 918034
VERIFIED on rhncfg-5.10.55-5.el5sat Steps to reproduce are in comment 0. OLD: > rhncfg-manager --server-name this_server_does_not_exit list-channels Using server name this_server_does_not_exit Password: Available config channels: rhn_proxy_config_1005566051 rhn_proxy_config_1005576225 rhn_proxy_config_1005666083 rhn_proxy_config_1006414040 rhn_proxy_config_1006518035 rhn_proxy_config_1006562924 rhn_proxy_config_1014609970 ... But we have to use login for rhn.redhat.com and we get channels from rhn.redhat.com. --------------------------------------------------------------------------- NEW: hncfg-manager --server-name this_server_does_not_exit list-channels Using server name this_server_does_not_exit Socket Error: Name or service not known
Satellite 5.6 has been released. This bug was tracked under the release. This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly before release). Moving to CLOSED CURRENT_RELEASE. Text from Upgrade Erratum follows: Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1395.html