Bug 498356 - [PATCH] rhn-bootstrap: set specific profilename during registration process if it's given
Summary: [PATCH] rhn-bootstrap: set specific profilename during registration process i...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Registration
Version: 520
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike McCune
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks: 456985
TreeView+ depends on / blocked
 
Reported: 2009-04-30 03:27 UTC by Satoru SATOH
Modified: 2018-10-20 03:59 UTC (History)
3 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 20:36:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
A patch to add an option to specify profilename of client systems to bootstrap scripts (1.15 KB, patch)
2009-04-30 03:27 UTC, Satoru SATOH
no flags Details | Diff

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


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