Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1335281

Summary: nightly - rhn-ssl-tool cannot run, affecting new server setup etc
Product: [Community] Spacewalk Reporter: Bishop Clark <bishop>
Component: InstallationAssignee: Jan Dobes <jdobes>
Status: CLOSED WORKSFORME QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.4   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-25 13:37:27 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: 1484117    

Description Bishop Clark 2016-05-11 18:38:45 UTC
Description of problem:
During the setup, the spacewalk-setup script runs rhn-ssl-tool --gen-ca to generate some certs.  The rhn-ssl-tool bails out with a stackbarf.  In fact, running the tool alone will also appear to stackbarf:

# /usr/bin/rhn-ssl-tool
Traceback (most recent call last):
  File "/usr/bin/rhn-ssl-tool", line 39, in <module>
    mod = __import__("certs." + mod_name)
  File "/usr/share/rhn/certs/rhn_ssl_tool.py", line 45, in <module>
    from sslToolCli import processCommandline, CertExpTooShortException, \
  File "/usr/share/rhn/certs/sslToolCli.py", line 31, in <module>
    from sslToolConfig import figureDEFS_dirs, figureDEFS_CA, figureDEFS_server
  File "/usr/share/rhn/certs/sslToolConfig.py", line 30, in <module>
    from spacewalk.common.fileutils import cleanupNormPath, rotateFile, rhn_popen, cleanupAbsPath
  File "/usr/lib/python2.6/site-packages/spacewalk/common/__init__.py", line 21, in <module>
    from spacewalk.common.rhnApache import rhnApache
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnApache.py", line 30, in <module>
    from spacewalk.common.rhnLog import log_debug, log_error, log_setreq
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnLog.py", line 38, in <module>
    from spacewalk.common.fileutils import getUidGid
  File "/usr/lib/python2.6/site-packages/spacewalk/common/fileutils.py", line 28, in <module>
    from spacewalk.common.rhnLib import isSUSE
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnLib.py", line 19, in <module>
    import spacewalk.common.usix as usix
AttributeError: 'module' object has no attribute 'common'


Version-Release number of selected component (if applicable):
# rpm -qf /usr/bin/rhn-ssl-tool
spacewalk-certs-tools-2.5.2-1.el6.noarch


How reproducible:
easy

Steps to Reproduce:
1. install nightly from 2016-05-11
2. just run rhn-ssl-tool
3.

Actual results:
# /usr/bin/rhn-ssl-tool
Traceback (most recent call last):
  File "/usr/bin/rhn-ssl-tool", line 39, in <module>
    mod = __import__("certs." + mod_name)
  File "/usr/share/rhn/certs/rhn_ssl_tool.py", line 45, in <module>
    from sslToolCli import processCommandline, CertExpTooShortException, \
  File "/usr/share/rhn/certs/sslToolCli.py", line 31, in <module>
    from sslToolConfig import figureDEFS_dirs, figureDEFS_CA, figureDEFS_server
  File "/usr/share/rhn/certs/sslToolConfig.py", line 30, in <module>
    from spacewalk.common.fileutils import cleanupNormPath, rotateFile, rhn_popen, cleanupAbsPath
  File "/usr/lib/python2.6/site-packages/spacewalk/common/__init__.py", line 21, in <module>
    from spacewalk.common.rhnApache import rhnApache
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnApache.py", line 30, in <module>
    from spacewalk.common.rhnLog import log_debug, log_error, log_setreq
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnLog.py", line 38, in <module>
    from spacewalk.common.fileutils import getUidGid
  File "/usr/lib/python2.6/site-packages/spacewalk/common/fileutils.py", line 28, in <module>
    from spacewalk.common.rhnLib import isSUSE
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnLib.py", line 19, in <module>
    import spacewalk.common.usix as usix
AttributeError: 'module' object has no attribute 'common'

Expected results:
(2.4/devel:)
# /usr/bin/rhn-ssl-tool
Usage: rhn-ssl-tool [options]

 step 1 rhn-ssl-tool --gen-ca [sub-options]

 step 2 rhn-ssl-tool --gen-server [sub-options]

The two options listed above are "base options". For more help about
a particular option, just add --help to either one, such as:
rhn-ssl-tool --gen-ca --help

If confused, please refer to the man page or other documentation
for sample usage.

Options:
  --gen-ca      generate a Certificate Authority (CA) key pair and public RPM.
                Review "--gen-ca --help" for more information.
  --gen-server  generate the web server's SSL key set, RPM and tar archive.
                Review "--gen-server --help" for more information.
  -h, --help    show this help message and exit


Additional info:
A host installed 24 hours ago from the same nightly repo, from the same chef recipe, was NOT bugged and did display the expected behaviour with spacewalk-certs-tools-2.5.1-1 .

Comment 1 Bishop Clark 2016-05-25 13:37:27 UTC
appears fixed in nightly after ~2016-05-12 .  This one can be closed up, and thanks for your time, as always.

Comment 2 Eric Herget 2017-09-28 18:11:52 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.