Bug 1358750 - RHEL5 SW nightly client osad should require SW nightly client version of rhnlib
Summary: RHEL5 SW nightly client osad should require SW nightly client version of rhnlib
Keywords:
Status: CLOSED EOL
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space28
TreeView+ depends on / blocked
 
Reported: 2016-07-21 12:16 UTC by Jan Hutař
Modified: 2018-04-20 12:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-10 16:16:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2016-07-21 12:16:18 UTC
Description of problem:
In file /usr/share/rhn/osad/rhn_log.py (from package osa-common-5.11.71-1.el5 from SW nightly client repo) we require module rhn.i18n, which is in /usr/lib/python2.4/site-packages/rhn/i18n.py. This file is present in rhnlib-2.5.87-1.el5 (from SW nightly client repo), but is missing in rhnlib-2.5.22.1-3.el5_9 (RHEL5 package).

There should be dependency which would disallow you to have osa-common-5.11.71-1.el5 and rhnlib-2.5.22.1-3.el5_9 installed (i.e. osa-dispatcher from SW nightly client, rhnlib from RHEL).


Actual results:
When you have osa-dispatcher from SW nightly client and rhnlib from RHEL, you get:

# service osad restart
Shutting down osad: [FAILED]
Starting osad: Unable to load module osad
No module named i18n
[FAILED]

That is kinda masking this:

# /usr/sbin/osad -h
Traceback (most recent call last):
  File "/usr/sbin/osad", line 26, in ?
    import osad.osad
  File "/usr/share/rhn/osad/osad.py", line 38, in ?
    from rhn_log import set_debug_level, log_debug, die, set_logfile
  File "/usr/share/rhn/osad/rhn_log.py", line 20, in ?
    from rhn.i18n import bstr
ImportError: No module named i18n


Expected results:
Should be possible to start osad installed without dependency issues.

Comment 1 Jan Dobes 2017-11-10 16:16:33 UTC
This is fixed in current nightly code - osad requires rhnlib >= 2.8.3. But nightly isn't built for RHEL 5 anymore, closing this bug.


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