Description of problem: When osa0dispatcher is started the following message appears: sh: dbhome: command not found Version-Release number of selected component (if applicable): # rpm -q cx_Oracle cx_Oracle-4.2.1-5.el5 How reproducible: Deterministic. Steps to Reproduce: 1. Unset ORACLE_HOME, as Spacewalk installation no longer sets ORACLE_HOME for root. 2. Run service osa-dispatcher start or any other Python program which connects to the database. Actual results: # service osa-dispatcher start Starting osa-dispatcher: sh: dbhome: command not found [ OK ] # Expected results: # service osa-dispatcher start Starting osa-dispatcher: [ OK ] # Additional info: The code which calls dbhome is in /usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py: if not os.environ.has_key("ORACLE_HOME"): os.environ["ORACLE_HOME"] = os.popen("dbhome '*'").read() It probably should not be there, or it should check that /usr/bin/dbhome (?) exists before trying, or it should redirect stderr, or something.
/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py is part of spacewalk-backend-sql
Mean culpa. I'm sorry. Yes, the package and version which causes problems is indeed # rpm -qf /usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py spacewalk-backend-sql-0.4.10-1.el5
Fixed in git commit 1bc6f9bdb32408d90ebccad32f2cbb8f5aa93296 Automatic commit of package [spacewalk-backend] release [0.4.13-1]. commit 3d89afc195a75346c78ce9657c0d0ab2fb0af84c 479826 - removed dbhome (no need for ORACLE_HOME in instantclient)
Verified: # rpm -q spacewalk-backend-sql spacewalk-backend-sql-0.4.15-1.el5 # service osa-dispatcher start Starting osa-dispatcher: [ OK ]