Bug 473438 - Monitoring installation fails with RHN::DB->connect(): No such alias ''
Monitoring installation fails with RHN::DB->connect(): No such alias ''
Status: CLOSED CURRENTRELEASE
Product: Spacewalk
Classification: Community
Component: Installation (Show other bugs)
0.4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miroslav Suchý
Red Hat Satellite QA List
:
Depends On:
Blocks: space04
  Show dependency treegraph
 
Reported: 2008-11-28 09:44 EST by Miroslav Suchý
Modified: 2009-01-22 11:30 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-22 11:30:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Miroslav Suchý 2008-11-28 09:44:41 EST
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 10:04:45 EST
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 10:21:12 EST
Commited as a8fffe77b05af94f7647ff0b2e72773567a661f0
Comment 3 Michael Mráka 2009-01-15 08:03:41 EST
Verified.

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

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