Bug 678053

Summary: rhn_package_manager with option --newest fails.
Product: Red Hat Satellite Proxy 5 Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Dimitar Yordanov <dyordano>
Severity: medium Docs Contact:
Priority: medium    
Version: 540CC: cperry, jhutar, jpazdziora, slukasik
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-proxy-1.2.2-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-16 16:53:37 UTC Type: ---
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: 677501, 677510, 704496    

Description Dimitar Yordanov 2011-02-16 16:04:16 UTC
Description of problem:
rhn_package_manager with option  --newest  fails.

How reproducible:
Always

Steps to Reproduce:
1.Install RHN-Proxy 5.4
2.Create $CUSTOM_CHANNEL on the Satellite to which RHN Proxy is registered to.
2.excute:
 rhn_package_manager -c $CUSTOM_CHANNEL  some.x86_64.rpm --username=${RHN_USER} --password=${RHN_PASS} --nosig --newest
  
Actual results:
Traceback (most recent call last):
  File "/usr/bin/rhn_package_manager", line 28, in ?
    rhn_package_manager.main()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 116, in main
    upload.newest()
  File "/usr/share/rhn/PackageManager/uploadLib.py", line 66, in newest
    return self.get_newest_binary_packages()
  File "/usr/share/rhn/rhnpush/uploadLib.py", line 264, in get_newest_binary_packages
    if self.new_sat_test():
  File "/usr/share/rhn/rhnpush/uploadLib.py", line 479, in new_sat_test
    if self.options.no_session_caching:
AttributeError: Values instance has no attribute 'no_session_caching'

Expected results:
The RPM processed correctly.

Additional info:

Comment 1 Dimitar Yordanov 2011-02-20 21:39:56 UTC
This seems like a regression.
For RHN Proxy 5.3 (spacewalk-proxy-package-manager-0.5.7-14.el5sat) the problem does not appear.
The problem is present on RHN Proxy 5.4  (spacewalk-proxy-package-manager-1.2.2-6.el5sat)

Dimi

Comment 3 Miroslav Suchý 2011-05-05 08:12:49 UTC
Added option --no-session-caching to rhn_package_manager.

Commited to spacewalk.git as 775c73607c6908bac95b0a41c6a9e91faeecc0fa

Comment 4 Miroslav Suchý 2011-05-05 08:15:42 UTC
cherry-picked to satellite.git as 7e4d7c0318c82a2897fa19b3e17f81faf1ea30e6git

Comment 6 Dimitar Yordanov 2011-05-23 12:10:12 UTC
VERIFIED

Comment 8 Jan Pazdziora (Red Hat) 2011-06-09 08:30:30 UTC
I hit bug 711805 when I try to stage validate this bug.

Comment 9 Jan Pazdziora (Red Hat) 2011-06-10 11:47:09 UTC
But when running against Satellite 5.4.1 on RHEL 5, the command passes

# rhn_package_manager -c ad-custom-1 jpam-0.4-19.el5.x86_64.rpm --username name --password password --nosig --newest

Moving to RELEASE_PENDING.

Comment 11 Clifford Perry 2011-06-16 16:53:37 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0878.html