Bug 1003474 - in case of timeout from Hosted when activating Satellite, misleading error message is printed
Summary: in case of timeout from Hosted when activating Satellite, misleading error me...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Installer
Version: 560
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2013-09-02 07:12 UTC by Jan Hutař
Modified: 2018-04-06 13:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-06 13:36:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jan Hutař 2013-09-02 07:12:18 UTC
Description of problem:
In case of timeout from Hosted when activating Satellite, misleading error message "There was a problem validating the satellite certificate: 89" is printed.


Version-Release number of selected component (if applicable):
spacewalk-setup-2.0.1-7.el5sat


How reproducible:
usually when you get timeout from Hosted


Steps to Reproduce:
1. Install connected satellite and get timeout from hosted when activating it


Actual results:
[...]
* Activating Red Hat Satellite.
** Loading Red Hat Satellite Certificate.
** Verifying certificate locally.
** Activating Red Hat Satellite.

There was a problem validating the satellite certificate: 89


In rhn_installation.log there is:
[...]
RHN_PARENT: satellite.rhn.redhat.com

ERROR: Timeout Exception


Expected results:
Error should express that this was timeout.


Additional info:
In spacewalk/setup/bin/spacewalk-setup there is:
  my %retcodes = (
		  10 => 'Could not parse certificate file',
		  [...]
		  86 => "$product_name has no base channel on parent server",
		  87 => "No $product_name channel available for this version",
		  127 => 'Unhandled error',
		 );

  if ($ret) {
    my $exit_value = $? >> 8;

    die "(satellite_activation_failed) $retcodes{$exit_value}\n\n"
      if exists $retcodes{$exit_value};

    die "There was a problem validating the satellite certificate: $exit_value\n\n";
  }

In backend/satellite_tools/rhn-satellite-activate we basically just call rhn_satellite_activate.py.

In backend/satellite_tools/rhn_satellite_activate.py there is:
            except TimeoutException, e:
                writeError(e)
                return 89

I do not consider this important for 5.6.0 release.

Comment 2 Tomas Lestach 2018-04-06 13:36:14 UTC
This issue has been fixed within Bug 1434769 fix. Closing CURRENTRELEASE.


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