Bug 461517 - MonitoringConfig swaps password and db name
Summary: MonitoringConfig swaps password and db name
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
: 469347 (view as bug list)
Depends On:
Blocks: space03
TreeView+ depends on / blocked
 
Reported: 2008-09-08 19:20 UTC by Mike McCune
Modified: 2009-09-17 07:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-17 07:01:15 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.