[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spacewalk-list
Subject:    [Spacewalk-list] Spacewalk installation failure
From:       Ken Wright <ken () cncware ! com>
Date:       2016-10-17 22:15:13
Message-ID: 586AD9C6-7E01-4C40-835C-1A71036CA4D0 () cncware ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;" class=""><div dir="auto" \
style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; \
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div \
class=""><font face="Consolas" class="">CentOS Linux release 7.2.1511 \
(Core)</font></div><div class=""><font face="Consolas" class="">Spacewalk \
2.5</font></div><div class=""><font face="Consolas" class=""><br \
class=""></font></div><div class=""><div class=""><font face="Consolas" class=""># \
yum install spacewalk-setup-postgresql</font></div><div class=""><font \
face="Consolas" class=""># yum install spacewalk-postgresql</font></div><div \
class=""><font face="Consolas" class=""># spacewalk-setup</font></div><div \
class=""><font face="Consolas" class=""><br class=""></font></div><div class=""><font \
face="Consolas" class="">Produces;</font></div><div class=""><font face="Consolas" \
class=""><br class=""></font></div><div class=""><div class=""><font face="Consolas" \
color="#0433ff" class="">** Database: Setting up database connection for PostgreSQL \
backend.</font></div><div class=""><font face="Consolas" color="#0433ff" class="">** \
Database: Installing the database:</font></div><div class=""><font face="Consolas" \
color="#0433ff" class="">** Database: This is a long process that is logged \
in:</font></div><div class=""><font face="Consolas" color="#0433ff" class="">** \
Database: &nbsp; /var/log/rhn/install_db.log</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">*** Progress: ###</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">** Database: Installation \
complete.</font></div><div class=""><font face="Consolas" color="#0433ff" class="">** \
Database: Populating database.</font></div><div class=""><font face="Consolas" \
color="#0433ff" class="">*** Progress: ###########################</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">* Configuring \
tomcat.</font></div><div class=""><font face="Consolas" color="#0433ff" class="">* \
Setting up users and groups.</font></div><div class=""><font face="Consolas" \
color="#0433ff" class="">** GPG: Initializing GPG and importing key.</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">** GPG: Creating /root/.gnupg \
directory</font></div><div class=""><font face="Consolas" color="#0433ff" class="">* \
Performing initial configuration.</font></div><div class=""><font face="Consolas" \
color="#0433ff" class="">* Configuring apache SSL virtual host.</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">** /etc/httpd/conf.d/ssl.conf \
has been backed up to ssl.conf-swsave</font></div><div class=""><font face="Consolas" \
color="#0433ff" class="">* Configuring jabberd.</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">* Creating SSL \
certificates.</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">** SSL: Generating CA certificate.</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">** SSL: Deploying CA \
certificate.</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">** SSL: Generating server certificate.</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">** SSL: Storing SSL \
certificates.</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">There was a problem storing the SSL certificate. &nbsp;Exit value: \
1.</font></div><div class=""><font face="Consolas" color="#0433ff" class="">Please \
examine /var/log/rhn/rhn_installation.log for more \
information.</font></div></div><div class=""><font face="Consolas" class=""><br \
class=""></font></div><div class=""><font face="Consolas" class="">From \
&nbsp;/var/log/rhn/rhn_installation.log;</font></div><div class=""><font \
face="Consolas" class=""><br class=""></font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">Traceback (most recent call \
last):</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; File "/usr/bin/rhn-ssl-dbstore", line 25, in \
&lt;module&gt;</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; mod = __import__("spacewalk.satellite_tools", globals(), \
locals(), [mod_name])</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/rhn_ssl_dbstore.py", line \
20, in &lt;module&gt;</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; from spacewalk.common import rhnTB</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/common/rhnTB.py", line 29, in \
&lt;module&gt;</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; from spacewalk.common.rhnConfig import CFG, \
PRODUCT_NAME</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 535, in \
&lt;module&gt;</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; PRODUCT_NAME = ALL_CFG.PRODUCT_NAME</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 229, in \
__getattr__</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; raise AttributeError(key)</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">AttributeError: \
PRODUCT_NAME</font></div></div><div class=""><br class=""></div><div class="">As a \
test, modifying&nbsp;<span style="color: rgb(4, 51, 255); font-family: Consolas;" \
class="">PRODUCT_NAME = ALL_CFG.PRODUCT_NAME </span><span style="font-family: \
Consolas;" class="">to</span><span style="color: rgb(4, 51, 255); font-family: \
Consolas;" class="">&nbsp;</span><span style="color: rgb(4, 51, 255); font-family: \
Consolas;" class="">PRODUCT_NAME = ALL_CFG.product_name </span><span \
style="font-family: Consolas;" class="">in</span><span style="color: rgb(4, 51, 255); \
font-family: Consolas;" class="">&nbsp;</span><span style="color: rgb(4, 51, 255); \
font-family: Consolas;" class="">rhnConfig.py </span><span style="font-family: \
Consolas;" class="">provides success until the next&nbsp;</span><span \
style="font-family: Consolas;" class="">ALL_CFG.xxx key is referenced \
(i.e,&nbsp;</span><span style="font-family: Consolas;" \
class="">ALL_CFG.DB_BACKEND).</span></div><div class=""><span style="font-family: \
Consolas;" class=""><br class=""></span></div><div class=""><div class=""><font \
face="Consolas" color="#0433ff" class="">Exception type &lt;type \
'exceptions.AttributeError'&gt;</font></div><div class=""><font face="Consolas" \
color="#0433ff" class=""><br class=""></font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">Exception Handler \
Information</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">Traceback (most recent call last):</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/rhn_ssl_dbstore.py", line \
55, in processCommandline</font></div><div class=""><font face="Consolas" \
color="#0433ff" class="">&nbsp; &nbsp; rhnSQL.initDB()</font></div><div \
class=""><font face="Consolas" color="#0433ff" class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/__init__.py", line 123, in \
initDB</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; backend = CFG.DB_BACKEND</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">&nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 229, in \
__getattr__</font></div><div class=""><font face="Consolas" color="#0433ff" \
class="">&nbsp; &nbsp; raise AttributeError(key)</font></div><div class=""><font \
face="Consolas" color="#0433ff" class="">AttributeError: \
DB_BACKEND</font></div></div><div class=""><span style="font-family: Consolas;" \
class=""><br class=""></span></div><div class=""><span style="font-family: Consolas;" \
class="">By making the following updates,&nbsp;</span><font face="Consolas" \
class="">the install will complete successfully;</font></div><div class=""><font \
face="Consolas" class=""><br class=""></font></div><div class=""><font \
face="Consolas" color="#0433ff" class=""><div class=""># &nbsp; &nbsp; &nbsp; \
&nbsp;backend = CFG.DB_BACKEND</div><div class=""># &nbsp; &nbsp; &nbsp; &nbsp;host = \
CFG.DB_HOST</div><div class=""># &nbsp; &nbsp; &nbsp; &nbsp;port = \
CFG.DB_PORT</div><div class=""># &nbsp; &nbsp; &nbsp; &nbsp;database = \
CFG.DB_NAME</div><div class=""># &nbsp; &nbsp; &nbsp; &nbsp;username = \
CFG.DB_USER</div><div class=""># &nbsp; &nbsp; &nbsp; &nbsp;password = \
CFG.DB_PASSWORD</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; backend = \
CFG.db_backend</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; host = \
CFG.db_host</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; port = \
CFG.db_port</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; database = \
CFG.db_name</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; username = \
CFG.db_user</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; password = \
CFG.db_password</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; sslmode = \
None</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; sslrootcert = None</div><div \
class=""># &nbsp; &nbsp; &nbsp; &nbsp;if CFG.DB_SSL_ENABLED:</div><div \
class="">&nbsp; &nbsp; &nbsp; &nbsp; if CFG.db_ssl_enabled:</div><div class="">&nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sslmode = 'verify-full'</div><div class=""># \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sslrootcert = CFG.DB_SSLROOTCERT</div><div \
class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sslrootcert = \
CFG.db_sslrootcert</div></font></div><div class=""><span style="font-family: \
Consolas;" class=""><br class=""></span></div><div class=""><span style="font-family: \
Consolas;" class=""><br class=""></span></div><div class=""><font face="Consolas" \
class="">Now the Spacewalk UI is running and can be configured. However \
when&nbsp;attempting to sync a&nbsp;newly configured channel, the following error \
occurs;</font></div><div class=""><span style="font-family: Consolas;" class=""><br \
class=""></span></div><div class=""><span style="font-family: Consolas;" \
class=""><font color="#0433ff" class=""><div class="">INFO &nbsp; | jvm 1 &nbsp; \
&nbsp;| 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):</div><div class="">INFO &nbsp; | jvm 1 &nbsp; &nbsp;| 2016/10/17 14:47:34 | \
&nbsp; File "/usr/bin/spacewalk-repo-sync", line 219, in &lt;module&gt;</div><div \
class="">INFO &nbsp; | jvm 1 &nbsp; &nbsp;| 2016/10/17 14:47:34 | &nbsp; &nbsp; \
sys.exit(abs(main() or 0))</div><div class="">INFO &nbsp; | jvm 1 &nbsp; &nbsp;| \
2016/10/17 14:47:34 | &nbsp; File "/usr/bin/spacewalk-repo-sync", line 134, in \
main</div><div class="">INFO &nbsp; | jvm 1 &nbsp; &nbsp;| 2016/10/17 14:47:34 | \
&nbsp; &nbsp; clear_interrupted_downloads()</div><div class="">INFO &nbsp; | jvm 1 \
&nbsp; &nbsp;| 2016/10/17 14:47:34 | &nbsp; File "/usr/bin/spacewalk-repo-sync", line \
53, in clear_interrupted_downloads</div><div class="">INFO &nbsp; | jvm 1 &nbsp; \
&nbsp;| 2016/10/17 14:47:34 | &nbsp; &nbsp; pkgdir = os.path.join(CFG.MOUNT_POINT, \
CFG.PREPENDED_DIR, '1', 'stage')</div><div class="">INFO &nbsp; | jvm 1 &nbsp; \
&nbsp;| 2016/10/17 14:47:34 | &nbsp; File \
"/usr/lib/python2.7/site-packages/spacewalk/common/rhnConfig.py", line 229, in \
__getattr__</div><div class="">INFO &nbsp; | jvm 1 &nbsp; &nbsp;| 2016/10/17 14:47:34 \
| &nbsp; &nbsp; raise AttributeError(key)</div><div class="">INFO &nbsp; | jvm 1 \
&nbsp; &nbsp;| 2016/10/17 14:47:34 | AttributeError: \
MOUNT_POINT</div></font></span></div><div class=""><span style="font-family: \
Consolas;" class=""><br class=""></span></div><div class=""><font face="Consolas" \
class="">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?</font></div><div class=""><font face="Consolas" \
class=""><br class=""></font></div><div class=""><font face="Consolas" \
class="">Regards,</font></div><div class=""><font face="Consolas" class=""><br \
class=""></font></div><div class=""><font face="Consolas" \
class="">Ken</font></div><div class=""><font face="Consolas" class=""><br \
class=""></font></div><div class=""><font face="Consolas" class=""><br \
class=""></font></div><div class=""><font face="Consolas" class=""><br \
class=""></font></div></div></div></body></html>



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic