Bug 1395895

Summary: rhnpush Python problem on RHEL5: 'tuple' object has no attribute 'args'
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: ClientAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED DUPLICATE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: adujicek, galtukho, lhellebr, tlestach
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: 1390170 Environment:
Last Closed: 2017-04-18 13:15:04 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: 1390170    
Bug Blocks: 1397178    

Description Jan Hutař 2016-11-16 21:20:54 UTC
We have tested (or attempted to test) bug like this when Spacewalk 2.6 was to be released. This is a clone of that bug to get it re-tested on Satellite 5.8.0. In some cases bug can be completely irrelevant (in such cases I suggest to close the bug as NOTABUG), in some cases it might be wise to take the bug as a note that something changed in a given area and we might want to sanity-test that area (and mark the bug as VERIFIED with "SanityOnly" keyword) and in some cases bug might be totally relevant to Satellite.



+++ This bug was initially created as a clone of Bug #1390170 +++

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

--- Additional comment from Gennadii Altukhov on 2016-11-03 12:43:43 EDT ---

spacewalk.git:
a20233da9415b28f8d4466ac93d6829873f3a6cb

--- Additional comment from Lukáš Hellebrandt on 2016-11-10 09:24:41 EST ---

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 1 Lukáš Hellebrandt 2016-11-21 10:17:43 UTC
Verified with 5.8 compose from 2016-11-21.

We do not support 5.8 on RHEL5 so I did not test if the bug was indeed fixed.

I have tested sanity-only on RHEL6. Created a custom channel, rhnpushed and verified in WebUI that the rpm is actually present in the channel.

Comment 2 Ales Dujicek 2017-04-18 13:15:04 UTC

*** This bug has been marked as a duplicate of bug 1440203 ***