Bug 473438

Summary: Monitoring installation fails with RHN::DB->connect(): No such alias ''
Product: [Community] Spacewalk Reporter: Miroslav Suchý <msuchy>
Component: InstallationAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.4CC: mmraka
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-01-22 16:30:57 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: 456552    

Description Miroslav Suchý 2008-11-28 14:44:41 UTC
Description of problem:
During spacewalk setup:
** Loading Satellite Certificate.
** Verifying certificate locally.
** Activating Satellite.
* Enabling Monitoring.
RHN::DB->connect(): No such alias '' at /usr/lib/perl5/site_perl/5.8.8/RHN/DB/SatInstall.pm line 374

This should not happen.


Temporal workaround:
export RHN_DEFAULT_DB='spacewalk/spacewalk@xe'

Comment 1 Miroslav Suchý 2008-11-28 15:04:45 UTC
In old installer we have:
sub set_default_db {
  my $dsn = shift;

  my %options = ('default_db' => $dsn);
  RHN::SatInstall->write_config(\%options);

  RHN::DB->set_default_handle($dsn);

  return;
}

Comment 2 Miroslav Suchý 2008-11-28 15:21:12 UTC
Commited as a8fffe77b05af94f7647ff0b2e72773567a661f0

Comment 3 Michael Mráka 2009-01-15 13:03:41 UTC
Verified.

...
** Loading Spacewalk Certificate.
** Verifying certificate locally.
** Activating Spacewalk.
* Enabling Monitoring.
* Configuring apache SSL virtual host.
...