Bug 498356

Summary: [PATCH] rhn-bootstrap: set specific profilename during registration process if it's given
Product: Red Hat Satellite 5 Reporter: Satoru SATOH <ssato>
Component: RegistrationAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: medium    
Version: 520CC: mmccune, tao, vgaikwad
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 20:36:13 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: 456985    
Attachments:
Description Flags
A patch to add an option to specify profilename of client systems to bootstrap scripts none

Description Satoru SATOH 2009-04-30 03:27:58 UTC
Created attachment 341860 [details]
A patch to add an option to specify profilename of client systems to bootstrap scripts

Description of problem:

The profile name of client systems registered to the satellite server sometimes becomes "unknown" depends on environments.

This patch can solve this problem and makes it configurable by administrators who can generate and edit bootstrap scripts.



Version-Release number of selected component (if applicable): 5.2.0



Additional info:

I posted almost the same patch on the spacewalk-devel list:
https://www.redhat.com/archives/spacewalk-devel/2009-April/msg00080.html

Comment 2 Mike McCune 2009-05-20 17:29:12 UTC
ON_QA

Comment 3 wes hayutin 2009-06-02 15:15:40 UTC
need a testplan...
although.. I suspect this is *not* recreatable

Comment 4 Mike McCune 2009-06-07 18:05:11 UTC
TESTPLAN:

* Generate the bootstrap.sh from Satellite's GUI.
* Verify that the PROFILENAME variable is in the bootstrap.sh script:

# ex. PROFILENAME="foo.example.com"  # For specific clinet system
#     PROFILENAME=`hostname -s`      # Short hostname
#     PROFILENAME=`hostname -f`      # FQDN

PROFILENAME=""   # Empty by default to let it be set automatically.


* Set the variable to something random and unique:

PROFILENAME="testing498356.rhndev.redhat.com"

* execute the bootstrap.sh on a client
* Verify that the profilename matches the variable specified.

Comment 5 Mike McCune 2009-06-07 18:11:32 UTC
This was missing a cherry-pick into vader.  resolving and should be in next ISO

Comment 6 wes hayutin 2009-06-23 16:27:33 UTC
verified... works w/ custom prof name
6/19

Comment 7 wes hayutin 2009-08-03 22:57:47 UTC
ran the script
[root@rlx-3-06 ~]# bash bootstrap.sh 
RHN Satellite Server Client bootstrap script v4.0


and it worked properly and set the new profile name

Comment 8 Brandon Perkins 2009-09-10 20:36:13 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html