Bug 1390170

Summary: rhnpush Python problem on RHEL5: 'tuple' object has no attribute 'args'
Product: [Community] Spacewalk Reporter: Lukáš Hellebrandt <lhellebr>
Component: ClientsAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.5CC: eherget, galtukho
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1395895 (view as bug list) Environment:
Last Closed: 2017-09-27 19:25:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1395895, 1484117    

Description Lukáš Hellebrandt 2016-10-31 12:01:42 UTC
Description of problem:
On RHEL5 (Python 2.4), rhnpush fails with "ERROR: unhandled exception occurred: ('tuple' object has no attribute 'args')." The problem is in line 757 of /usr/share/rhn/rhnpush/uploadLib.py file - the getargspec function returns a tuple in Python 2.4 rather than namedtuple.

How reproducible:
Deterministic

Steps to Reproduce:
rhnpush <rpm> -c <channel> -u <user> -p <pass> --nosig --server=<server>

Actual results:
ERROR: unhandled exception occurred: ('tuple' object has no attribute 'args').

Expected results:
Package successfully pushed

Comment 1 Gennadii Altukhov 2016-11-03 16:43:43 UTC
spacewalk.git:
a20233da9415b28f8d4466ac93d6829873f3a6cb

Comment 2 Lukáš Hellebrandt 2016-11-10 14:24:41 UTC
Verified on RHEL5 with 2016-11-09 SW nightly. Also verified the fix did not break things on RHEL6 with the same day SW nightly.

Comment 3 Eric Herget 2017-09-27 19:25:19 UTC
This looks like it was fixed in previous release, but I'm closing it in this one.

Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27