Bug 1292151 - rhnpush: missing required package on RHEL5
Summary: rhnpush: missing required package on RHEL5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: sat580-low
TreeView+ depends on / blocked
 
Reported: 2015-12-16 15:18 UTC by Pavel Studeník
Modified: 2017-06-21 12:07 UTC (History)
3 users (show)

Fixed In Version: rhnpush-5.5.89-9-sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:07:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch for spec file of rhnpush package (454 bytes, patch)
2016-02-16 09:27 UTC, Gennadii Altukhov
no flags Details | Diff

Description Pavel Studeník 2015-12-16 15:18:13 UTC
Description of problem:
I took client without satellite or proxy, registered it and installed rhnpush to this clean system. When I tried to run rhnpush I received following error:

# rhnpush  --help
Unable to load module rhnpush
No module named Crypto.Hash

Version-Release number of selected component (if applicable):
rhnpush-5.5.81-9.el5sat

How reproducible:
always on RHEL5

Steps to Reproduce:
1. install rhnpush from rhn-tools-rhel-x86_64-server-5
2. run rhnpush

Actual results:
installed rhnpush doesn't work

Expected results:
we need to installed package python-hashlib

Problem is in file /usr/share/rhn/rhnpush_libs/checksum.py

Comment 1 Tomas Lestach 2016-01-27 10:31:40 UTC
After I installed rhnpush-5.5.81-9.el5sat on RHEL5, I'm getting:

# rhnpush 
Unable to load module rhnpush
No module named Crypto.Hash

Comment 2 Gennadii Altukhov 2016-02-15 10:58:45 UTC
Taking...

Comment 3 Gennadii Altukhov 2016-02-16 09:27:41 UTC
Created attachment 1127544 [details]
patch for spec file of rhnpush package

Comment 4 Gennadii Altukhov 2016-02-16 09:33:01 UTC
There is no problem in Spacewalk package of rhnpush. rhnpush depends on spacewalk-backend-libs, which depends on python-hashlib ('epel' repo).

For Satellite there are no problems for RHEL 6 and 7, since installed package 'python-libs' contains module hashlib (/usr/lib64/python2.6/hashlib.py) to work with hash functions. In code of 'rhnpush_lib' we're trying to import hashlib first.

For Satellite package of rhnpush RHEL 5, I have added a dependensy on python-hashlib (this package is contained in 'Red Hat Network Tools for RHEL' repo), please, see at attached patch.

Comment 7 Pavel Studeník 2017-05-10 12:07:47 UTC
Verified rhnpush-5.5.89-20.el5sat

>> yum install rhnpush -y
Installing:
 rhnpush
Installing for dependencies:
 python-hashlib
 spacewalk-backend-libs
 spacewalk-usix


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