Bug 678053 - rhn_package_manager with option --newest fails.
Summary: rhn_package_manager with option --newest fails.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat541-blockers sat541-rhel6-proxy sat541-rhn-tools
TreeView+ depends on / blocked
 
Reported: 2011-02-16 16:04 UTC by Dimitar Yordanov
Modified: 2011-12-23 08:53 UTC (History)
4 users (show)

Fixed In Version: spacewalk-proxy-1.2.2-10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-16 16:53:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.