[Spacewalk-list] Spacewalk 1.5 Client, Python Error on Config Upload

Miroslav Suchy msuchy at redhat.com
Fri Aug 12 14:01:36 UTC 2011


Fixed in commit 
https://fedorahosted.org/spacewalk/changeset/3ae3db25bf808c01fd4655e68a1a8a81137086f0

Thanks for reporting.

Mirek
----- Original Message -----
> On 07/28/2011 07:50 PM, Trevor T Kates wrote:
> > [Thu Jul 28 13:25:02 2011] up2date
> > Traceback (most recent call last):
> >   File "/usr/sbin/rhn_check", line 333, in __run_action
> >     (status, message, data) = CheckCli.__do_call(method, params,
> >     kwargs)
> >   File "/usr/sbin/rhn_check", line 326, in __do_call
> >     retval = method(*params, **kwargs)
> >   File "/usr/share/rhn/actions/configfiles.py", line 189, in upload
> >     r = rpc_cli_repository.ClientRepository()
> >   File "/usr/share/rhn/config_client/rpc_cli_repository.py", line
> >   32, in __init__
> >     repository.RPC_Repository.__init__(self, setup_network)
> >   File "/usr/share/rhn/config_common/repository.py", line 223, in
> >   __init__
> >     self.__server_url = self._local_config.get('server_url')
> >   File "/usr/share/rhn/config_common/local_config.py", line 105, in
> >   get
> >     return _get_config().get_option(var)
> >   File "/usr/share/rhn/config_common/local_config.py", line 72, in
> >   get_option
> >     ret = self.get(self.section, option, vars=self.overrides)
> >   File "/usr/lib/python2.4/ConfigParser.py", line 525, in get
> >     return self._interpolate(section, option, value, d)
> >   File "/usr/lib/python2.4/ConfigParser.py", line 570, in
> >   _interpolate
> >     raise InterpolationMissingOptionError(
> > ConfigParser.InterpolationMissingOptionError: Bad value
> > substitution:
> > 	section: [rhncfg-client]
> > 	option : server_url
> > 	key : server_name
> > 	rawval : https://%(server_name)s%(server_handler)s
> >
> > I have not made any modifications to the configuration files since
> > updating
> > this particular client to 1.5 and the previous value in the
> > server_url option
> > was %(proto)s://%(server_name)s%(server_handler)s. Do I need to
> > modify the
> > rhncfg-client.conf file to include the substitution for server_name?
> 
> Looks like bug to me. I'm looking at this right now.
> In the mean time you can workaround it but putting in
> rhncfg-client.conf
> server_name = hostname.of.your.spacewalk.com
> 
> 
> --
> Miroslav Suchy
> Red Hat Satellite Engineering
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list