Bug 1391870

Summary: when RHSM registration or subscription fails, we should provide at least name of the log where to investigate
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: InstallerAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Ales Dujicek <adujicek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 580CC: adujicek, galtukho, tkasparek, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:14:44 UTC Type: Bug
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: 1358815    

Description Jan Hutař 2016-11-04 09:43:24 UTC
Description of problem:
When RHSM registration or subscription fails, we should provide at least name of the log where to investigate or othervise be more user friendly.

In my case I have provided wrong username in answers.txt and installer failed with just:

  * RHSM Registration.
  There was a problem registering the satellite.  Exit code: 70


Version-Release number of selected component (if applicable):
Compose from Thu Nov  3 11:00:56 EDT 2016


How reproducible:
always


Steps to Reproduce:
1. Run installer from answers.txt with incorrect rhsm username specified there


Actual results:
# /tmp/media.mnt-TucEaz/install.pl --answer-file=.../answers.txt --non-interactive --run-updater
* Starting Red Hat Satellite installer.
* Loading answer file: .../install/answers.txt.
* Performing pre-install checks.
* Pre-install checks complete.  Beginning installation.
* RHSM Registration.
There was a problem registering the satellite.  Exit code: 70


Expected results:
We should point to /var/log/rhsm/rhsm.log or /var/log/rhn/rhn_installation.log if it contains more info


Additional info:
IMO this "user friendliness" might be important because with this some admins might be hitting RHSM space for the first time.

Comment 3 Gennadii Altukhov 2017-02-22 16:05:49 UTC
add the commit to satellite-5-extra-file repo satellite-5.8-rhel-6:
c3a51ac4ae1b4f1f98cfec00733f5f00ce8f4050