[Spacewalk-list] rhnpush error - unexpected keyword argument 'file'
Miroslav Suchy
msuchy at redhat.com
Sat Apr 21 16:16:16 UTC 2012
On 20.4.2012 21:33, Andrew Prowant wrote:
> Here it is. Thanks for looking at this.
>
> Traceback (most recent call last):
> File "/usr/bin/rhnpush", line 22, in ?
> sys.exit(mod.main() or 0)
> File "/usr/share/rhn/rhnpush/rhnpush.py", line 153, in main
> ret = upload.packages()
> File "/usr/share/rhn/rhnpush/rhnpush.py", line 338, in packages
> (server_digest_hash, pkgs_info, digest_hash) =
> self.check_package_exists()
> File "/usr/share/rhn/rhnpush/rhnpush.py", line 488, in
> check_package_exists
> header, payload_stream = rhn_mpm.load(file=f)
> TypeError: load() got an unexpected keyword argument 'file'
You got to part of code which is:
# it's an older satellite(< 4.1.0).
end of quote. But this runtime error is false track (and this was
completly removed in Spacewalk 1.7).
Your problem is that your Spacewalk server does not send back header:
X-RHN-Check-Package-Exists.
Is it possible that rhnpush is accessing Spacewalk server through some
HTTP Proxy, which remove this header?
Mirek
More information about the Spacewalk-list
mailing list