Bug 1292151

Summary: rhnpush: missing required package on RHEL5
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: ClientAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Studeník <pstudeni>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dyordano, galtukho, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhnpush-5.5.89-9-sat Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:07:01 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:    
Bug Blocks: 1358815    
Attachments:
Description Flags
patch for spec file of rhnpush package none

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