Bug 1440203 - rhnpush doesn't work on RHEL 5
Summary: rhnpush doesn't work on RHEL 5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Radovan Drazny
URL:
Whiteboard:
: 1395895 (view as bug list)
Depends On:
Blocks: sat580-spw-retest 1400201
TreeView+ depends on / blocked
 
Reported: 2017-04-07 14:34 UTC by Pavel Studeník
Modified: 2017-06-21 12:12 UTC (History)
5 users (show)

Fixed In Version: rhnpush-5.5.89-20-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:12:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2017-04-07 14:34:31 UTC
Description of problem:
I try to run rhnpush, but it doesn't work on RHEL 5. I receive following error.

>> rhnpush --help
Traceback (most recent call last):
  File "/usr/bin/rhnpush", line 9, in ?
    from rhnpush import rhnpush_main
  File "/usr/share/rhn/rhnpush/rhnpush_main.py", line 48, in ?
    from rhnpush_libs.rhn_pkg import InvalidPackageError, package_from_filename
  File "/usr/share/rhn/rhnpush_libs/rhn_pkg.py", line 124
    ret = b''
            ^
SyntaxError: invalid syntax

Version-Release number of selected component (if applicable):
rhnpush-5.5.89-18.el5sat

How reproducible:
always on RHEL5

Steps to Reproduce:
1. run rhnpush

Comment 3 Pavel Studeník 2017-04-12 12:50:42 UTC
I have still problem with pushing packages to Satellite 5.

>> rhnpush zip-2.31-2.el5.x86_64.rpm --server satellite.example.com
Username: admin
Password: 

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

Comment 5 Ales Dujicek 2017-04-18 13:15:04 UTC
*** Bug 1395895 has been marked as a duplicate of this bug. ***

Comment 9 Radovan Drazny 2017-05-05 14:45:02 UTC
Tested with rhnpush from RHN-Tools-5.8-RHEL-7-20170504.n.0 compose, and some random rpm packages.

# rpm -q rhnpush
rhnpush-5.5.89-20.el5sat

# rhnpush --help
usage: rhnpush [OPTION] [<package>]

options:
  -v, --verbose         Increase verbosity
  -d DIR, --dir=DIR     Process packages from this directory
  -c CHANNEL, --channel=CHANNEL
                        Manage this channel (specified by label)
  -n COUNT, --count=COUNT
                        Process this number of headers per call
  -l, --list            Only list the specified channels
  -r RELDIR, --reldir=RELDIR
                        Relative dir to associate with the file
  -o ORGID, --orgid=ORGID
                        Org ID
  -u USERNAME, --username=USERNAME
                        Use this username to connect to RHN/Satellite
  -p PASSWORD, --password=PASSWORD
                        Use this password to connect to RHN/Satellite
  -s, --stdin           Read the package names from stdin
  -X EXCLUDE, --exclude=EXCLUDE
                        Exclude packages that match this glob expression
  --force               Force the package upload (overwrites if already
                        uploaded)
  --nosig               Push unsigned packages
  --newest              Only push the packages that are newer than the server
                        ones
  --nullorg             Use the null org id
  --header              Upload only the header(s)
  --source              Upload source package information
  --server=SERVER       Push to this server (http[s]://<hostname>/APP)
  --proxy=PROXY         Use proxy server (<server>:<port>)
  --test                Only print the packages to be pushed
  -?, --usage           Briefly describe the options
  -N, --new-cache       Create a new username/password cache
  --extended-test       Perform a more verbose test
  --no-session-caching  Disables session-token authentication.
  --tolerant            If rhnpush errors while uploading a package, continue
                        uploading the rest of the packages.
  --ca-chain=CA_CHAIN   alternative SSL CA Cert
  --timeout=SECONDS     Change default connection timeout.
  -h, --help            show this help message and exit

# rhnpush -v --ca-chain=RHN-ORG-TRUSTED-SSL-CERT --server https://sat5server.example.com/APP -u admin -p password *.rpm -c pushchan --nosig
Connecting to https://sat5server.example.com/APP
Package rhn-check-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package rhn-check-1.0.0.1-38.el6.noarch.rpm
Using POST request
Package rhn-client-tools-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package rhn-client-tools-1.0.0.1-38.el6.noarch.rpm
Using POST request
Package rhn-setup-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package rhn-setup-1.0.0.1-38.el6.noarch.rpm
Using POST request
Package rhn-setup-gnome-1.0.0.1-38.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package rhn-setup-gnome-1.0.0.1-38.el6.noarch.rpm
Using POST request
Package yum-rhn-plugin-0.9.1-59.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package yum-rhn-plugin-0.9.1-59.el6.noarch.rpm
Using POST request
# echo $?
0

Packages were successfully uploaded and linked to the selected channel.

VERIFIED


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