Description of problem: When there is a problem while connecting to database, language exception (missing variable) occurs instead of comprehensible exception: How reproducible: always/deterministic Steps to Reproduce: 1. cut off connection to postgre database 2. restart osa-dispatcher, look into logs Actual results: Starting osa-dispatcher: Spacewalk 22134 2014/10/09 16:56:26 -04:00: ('Error caught:',) Spacewalk 22134 2014/10/09 16:56:26 -04:00: ('Traceback (most recent call last):\n File "/usr/share/rhn/osad/jabber_lib.py", line 118, in main\n self.setup_config(config)\n File "/usr/share/rhn/osad/osa_dispatcher.py", line 112, in setup_config\n rhnSQL.initDB()\n File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 148, in initDB\n del __DB2\nNameError: global name \'__DB2\' is not defined\n',) Expected results: database exception... Additional info: This bug is carved out of bug #1151386 where described behavior was mentioned first, to allow fix and verify this separately.
Upstream work spacewalk.git 69268d9bca54633ae9845ecdab99bac42e9c9705
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is being moved to a Closed Current Release state. The Satellite 5.7 GA Errata: - https://rhn.redhat.com/errata/RHSA-2015-0033.html Satellite 5.7 Release Notes: - https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html Satellite Customer Portal Blog announcement for release: - https://access.redhat.com/blogs/1169563/posts/1315743 Cliff