Bug 461517

Summary: MonitoringConfig swaps password and db name
Product: [Community] Spacewalk Reporter: Mike McCune <mmccune>
Component: WebUIAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.3CC: cperry, jesusr, mzazrivec
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-17 07:01:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 456551    

Description Mike McCune 2008-09-08 19:20:14 UTC
Once you get the Monitoring RPMs installed and try to configure monitoring you will notice on:

https://spacewalk.example.com/rhn/admin/config/MonitoringConfig.do

that the DB name shows up in the password field.  Saving this page doesn't seem to actually correct the problem and you get startup problems with Monitoring:

DBI connect('spacewalk','spacewalk',...) failed: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach) at /usr/lib/perl5/site_perl/5.8.8/NOCpulse/NOCpulseini.pm line 60
2008-09-08 15:18:37 InstallSoftwareConfig:      !! ERROR:  connect failed: ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach)

Debug I added:
DBD: Oracle dbname: spacewalk username: spacewalk password: XE

Even after hard coding spacewalk/spacewalk@xe into the Perl code you then get:

2008-09-08 14:57:31 InstallSoftwareConfig: START HAD ERRORS 
2008-09-08 14:57:31 InstallSoftwareConfig: ============ STATUS ===============
2008-09-08 14:57:31 InstallSoftwareConfig: Last action: start
2008-09-08 14:57:31 InstallSoftwareConfig: WARNING: STARTED BUT *NOT* RUNNING
2008-09-08 14:57:31 InstallSoftwareConfig: ERRORS ENCOUNTERED DURING LAST ACTION:
2008-09-08 14:57:31 InstallSoftwareConfig:      !! Reference to nonexistent macro 'NPVAR'

Comment 1 Miroslav Suchý 2008-10-31 15:10:02 UTC
*** Bug 469347 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Suchý 2008-11-05 19:59:36 UTC
Commited as 8655225da933934bff8cec5d8448d0bb09803fdb
and to master as f5911db27d211347454a058fe41022e1147e7f14

Funny thing is that this bug has been there for 2 years without notice.

Comment 3 Miroslav Suchý 2009-09-17 07:01:15 UTC
Spacewalk has been released for some time.