Bug 657051

Summary: spacewalk-reports, ImportError: cannot import name rhnSQL
Product: [Community] Spacewalk Reporter: Petr Sklenar <psklenar>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: high    
Version: 1.2CC: JDavis4102
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-reports-1.3.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-08 08:42:07 UTC Type: ---
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: 653453    

Description Petr Sklenar 2010-11-24 19:11:47 UTC
Description of problem:
spacewalk-reports cannot start - it needs to import rhnSQL

Version-Release number of selected component (if applicable):
sw.nightly, oracle-xe, rhel56

# rpm -q spacewalk-backend spacewalk-reports
spacewalk-backend-1.3.11-1.el5
spacewalk-reports-1.2.3-1.el5
# rpm -q python
python-2.4.3-27.el5

How reproducible:
always

Steps to Reproduce:
# spacewalk-report
Traceback (most recent call last):
  File "/usr/bin/spacewalk-report", line 44, in ?
    from server import rhnSQL
ImportError: cannot import name rhnSQL
# spacewalk-report --help
Traceback (most recent call last):
  File "/usr/bin/spacewalk-report", line 44, in ?
    from server import rhnSQL
ImportError: cannot import name rhnSQL

Actual results:
ImportError: cannot import name rhnSQL

Expected results:
works as expected

Additional info:

Comment 1 Michael Mráka 2010-11-25 08:28:13 UTC
Fixed in spacewalk nightly
commit 78028666e4cefa22dc9d03effb0b52b3dbfd0eb2
    fixed namespace of imported modules

Comment 2 JDavis4102 2011-01-10 00:54:37 UTC
Version 1.2 is also having this same problem. Anyway that this fix can be back-ported to 1.2? Thank you for your time and have a great day!

# rpm -q spacewalk-backend spacewalk-reports
spacewalk-backend-1.2.75-1.el5
spacewalk-reports-1.2.3-1.el5

# spacewalk-report
Traceback (most recent call last):
  File "/usr/bin/spacewalk-report", line 44, in ?
    from server import rhnSQL
ImportError: cannot import name rhnSQL
# spacewalk-report --help
Traceback (most recent call last):
  File "/usr/bin/spacewalk-report", line 44, in ?
    from server import rhnSQL
ImportError: cannot import name rhnSQL

Comment 3 Michael Mráka 2011-01-10 08:13:50 UTC
(In reply to comment #2)
> Version 1.2 is also having this same problem. Anyway that this fix can be
> back-ported to 1.2? Thank you for your time and have a great day!

We are not planning spacewalk-report backport at the moment.

This bugfix is the only change / difference between spacewalk-reports-1.2.3-1.el5 and spacewalk-reports-1.3.1-1 from nightly so you can safely use nightly version.

Regards,
Michael

Comment 4 JDavis4102 2011-01-10 16:12:32 UTC
Thank you for the quick response. I will use the nightly build of spacewalk-reports. Thank you for your time and have a great day!

Comment 5 Tomas Lestach 2011-02-03 12:21:42 UTC
Moving ON_QA ...

Comment 6 Tomas Lestach 2011-02-08 08:42:07 UTC
This bug has been fixed in Spacewalk 1.3.