[Spacewalk-list] Spacewalk 2.8 configure-proxy.sh Error
Robert Paschedag
robert.paschedag at web.de
Mon May 21 21:29:09 UTC 2018
On 05/21/18 20:01, Angelo Lisco wrote:
> ok, i've found a bugzilla report here:
> https://bugzilla.redhat.com/show_bug.cgi?id=1575906
> It's assigned to Tomáš Kašpárek <tkasparek at redhat.com> but still no
> feedback from him :(
>
> 2018-05-21 19:07 GMT+02:00 Angelo Lisco <angystardust at gmail.com>:
>
>> Hi Stuart,
>> I'm experiencing the same issue here. Did you find a solution to this
>> problem?
>>
>> Thanks.
>> Angelo
>>
>> 2018-04-24 14:49 GMT+02:00 Stuart Wilson <stuart at 432solutions.co.uk>:
>>
>>> Hi,
>>>
>>> I’m currently trying to setup a Spacewalk proxy instance on a RHEL 7.4
>>> server. I followed the guide as per the Wiki (
>>> https://github.com/spacewalkproject/spacewalk/wiki/HowToInstallProxy),
>>> however when I run configure-proxy.sh, I’m getting the error “WARNING:
>>> upon deactivation attempt: uknown error – <Fault -12:
>>> ‘redstone.xmlrpc.XmlRpcFault: method invalid param’>”. I managed to track
>>> this down to the call using rhn-proxy-activate within configure-proxy.sh.
>>> Tracing it back to the main Spacewalk server, the Web-API log shows the
>>> same error, “method invalid param” while trying to call the
>>> proxy.list_available_proxy_channels method.
>>>
>>> Has anyone else seen this error before, I’m not really sure where to move
>>> forward with this, is this something that’s changed in the latest 2.8
>>> version of spacewalk? Or could this be something to do with “Provisioning
>>> Entitlements”, I understand they were changed back in 2.5, but I can’t find
>>> any documentation on how they are enabled nowadays, though the
>>> documentation does still refer to them being needed. Any help, much
>>> appreciated.
>>>
>>> Thanks,
>>>
>>>
>>> Stuart.
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>
>>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
Seems to be this part here (in proxy/installer/rhn-proxy-activate.py)
s = getServer(options, DEFAULT_WEBRPC_HANDLER_v3_x)
systemid = getSystemId(cfg)
errorCode, errorString = 0, ''
try:
if not s.proxy.is_proxy(systemid):
# if system is not proxy, we do not need to deactivate it
return (errorCode, errorString)
except: # pylint: disable=W0702
# api do not have proxy.is_proxy is implemented or it is hosted
# ignore error and try to deactivate
pass
try:
s.proxy.deactivate_proxy(systemid) # proxy 3.0+ API
except: # pylint: disable=W0702
errorCode, errorString = _errorHandler()
try:
raise
except xmlrpclib.Fault:
if errorCode == 8:
# fine. We weren't activated yet.
# noop and look like a success
errorCode = 0
else:
errorString = "WARNING: upon deactivation attempt: %s" %
errorString
:
I think, the main problem is, that "is_proxy()" cannot be called (throws
an error, at least, if there really is no proxy with that systemID).
Thus,
s.proxy.deactivate_proxy(systemid)
get's called. I cannot find this code ("deactivate_proxy"), except in
this script, thus this might also throw an exception.
But this is all speculative. I cannot test this "proxy" activation here.
"is_proxy" can also be found in
java/code/src/com/redhat/rhn/common/db/datasource/xml/System_queries.xml
<mode name="is_proxy">
<query params="sid">
SELECT 1
FROM rhnProxyInfo PI
WHERE PI.server_id=:sid
</query>
</mode>
Robert
More information about the Spacewalk-list
mailing list