CentOS Linux release 7.2.1511 (Core)
Spacewalk 2.5

# yum install spacewalk-setup-postgresql
# yum install spacewalk-postgresql
# spacewalk-setup

Produces;

** Database: Setting up database connection for PostgreSQL backend.
** Database: Installing the database:
** Database: This is a long process that is logged in:
** Database:   /var/log/rhn/install_db.log
*** Progress: ###
** Database: Installation complete.
** Database: Populating database.
*** Progress: ###########################
* Configuring tomcat.
* Setting up users and groups.
** GPG: Initializing GPG and importing key.
** GPG: Creating /root/.gnupg directory
* Performing initial configuration.
* Configuring apache SSL virtual host.
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Configuring jabberd.
* Creating SSL certificates.
** SSL: Generating CA certificate.
** SSL: Deploying CA certificate.
** SSL: Generating server certificate.
** SSL: Storing SSL certificates.
There was a problem storing the SSL certificate.  Exit value: 1.
Please examine /var/log/rhn/rhn_installation.log for more information.

From  /var/log/rhn/rhn_installation.log;

Traceback (most recent call last):
  File "/usr/bin/rhn-ssl-dbstore", line 25, in <module>
    mod = __import__("spacewalk.satellite_tools", globals(), locals(), 
[mod_name])
  File 
"/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/rhn_ssl_dbstore.py",
 line 20, in <module>
    from spacewalk.common import rhnTB
  File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnTB.py", line 29, 
in <module>
    from spacewalk.common.rhnConfig import CFG, PRODUCT_NAME
  File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 
535, in <module>
    PRODUCT_NAME = ALL_CFG.PRODUCT_NAME
  File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 
229, in __getattr__
    raise AttributeError(key)
AttributeError: PRODUCT_NAME

As a test, modifying PRODUCT_NAME = ALL_CFG.PRODUCT_NAME to PRODUCT_NAME = 
ALL_CFG.product_name in rhnConfig.py provides success until the next 
ALL_CFG.xxx key is referenced (i.e, ALL_CFG.DB_BACKEND).

Exception type <type 'exceptions.AttributeError'>

Exception Handler Information
Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/rhn_ssl_dbstore.py",
 line 55, in processCommandline
    rhnSQL.initDB()
  File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/__init__.py", 
line 123, in initDB
    backend = CFG.DB_BACKEND
  File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 
229, in __getattr__
    raise AttributeError(key)
AttributeError: DB_BACKEND

By making the following updates, the install will complete successfully;

#        backend = CFG.DB_BACKEND
#        host = CFG.DB_HOST
#        port = CFG.DB_PORT
#        database = CFG.DB_NAME
#        username = CFG.DB_USER
#        password = CFG.DB_PASSWORD
        backend = CFG.db_backend
        host = CFG.db_host
        port = CFG.db_port
        database = CFG.db_name
        username = CFG.db_user
        password = CFG.db_password
        sslmode = None
        sslrootcert = None
#        if CFG.DB_SSL_ENABLED:
        if CFG.db_ssl_enabled:
            sslmode = 'verify-full'
#            sslrootcert = CFG.DB_SSLROOTCERT
            sslrootcert = CFG.db_sslrootcert


Now the Spacewalk UI is running and can be configured. However when attempting 
to sync a newly configured channel, the following error occurs;

INFO   | jvm 1    | 2016/10/17 14:47:34 | 2016-10-17 14:47:34,448 [Thread-441] 
ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - Traceback (most recent call 
last):
INFO   | jvm 1    | 2016/10/17 14:47:34 |   File 
"/usr/bin/spacewalk-repo-sync", line 219, in <module>
INFO   | jvm 1    | 2016/10/17 14:47:34 |     sys.exit(abs(main() or 0))
INFO   | jvm 1    | 2016/10/17 14:47:34 |   File 
"/usr/bin/spacewalk-repo-sync", line 134, in main
INFO   | jvm 1    | 2016/10/17 14:47:34 |     clear_interrupted_downloads()
INFO   | jvm 1    | 2016/10/17 14:47:34 |   File 
"/usr/bin/spacewalk-repo-sync", line 53, in clear_interrupted_downloads
INFO   | jvm 1    | 2016/10/17 14:47:34 |     pkgdir = 
os.path.join(CFG.MOUNT_POINT, CFG.PREPENDED_DIR, '1', 'stage')
INFO   | jvm 1    | 2016/10/17 14:47:34 |   File 
"/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 229, in 
__getattr__
INFO   | jvm 1    | 2016/10/17 14:47:34 |     raise AttributeError(key)
INFO   | jvm 1    | 2016/10/17 14:47:34 | AttributeError: MOUNT_POINT

There appears to be an issue of case within the use of dictionary key names 
however the rabbit hole only gets deeper as there are many uses and also a mix 
of case used throughout the code base which would seem to point to dictionary 
initialization elsewhere?

Regards,

Ken



_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to