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

Bug 1449723

Summary: rhn-satellite-activate failed on oracle in verbose mode
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: dyordano, pstudeni, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-11 15:00:35 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:

Description Pavel Studeník 2017-05-10 14:04:31 UTC
Description of problem:
I run following command and I received traceback on Satellite with Oracle db.

>> rhn-satellite-activate --manifest=/root/manifest.zip -vvv
09:59:13 HTTP_PROXY: None
09:59:13 HTTP_PROXY_USERNAME: None
09:59:13 HTTP_PROXY_PASSWORD: <password>

ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-satellite-activate", line 39, in <module>
    sys.exit(abs(mod.main() or 0))
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 475, in main
    cdn_activate = cdn_activation.Activation(options.manifest)
  File "/usr/lib/python2.6/site-packages/spacewalk/cdn_tools/activation.py", line 36, in __init__
    rhnSQL.initDB()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 145, in initDB
    __init__DB(backend, host, port, username, password, database, sslmode, sslrootcert)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/__init__.py", line 57, in __init__DB
    __DB.connect()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py", line 407, in connect
    self.dbh = self._connect()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py", line 434, in _connect
    dbh = cx_Oracle.Connection(self.username, self.password, self.database)
cx_Oracle.InterfaceError: Unable to acquire Oracle environment handle


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-2.5.3-123.el6sat.noarch

How reproducible:
only on oracle

Steps to Reproduce:
1. run command with verbose
>> rhn-satellite-activate --manifest=/root/manifest.zip -vvv 

Actual results:
traceback

Expected results:
without traceback

Comment 1 Pavel Studeník 2017-05-10 14:09:57 UTC
Maybe it is not a bug. I receive traceback only on one system.

Comment 2 Tomas Lestach 2017-05-11 15:00:35 UTC

*** This bug has been marked as a duplicate of bug 1449635 ***