Bug 999226

Summary: RHS post install initialization script
Product: Red Hat Gluster Storage Reporter: Scott Haines <shaines>
Component: redhat-storage-serverAssignee: Veda Shankar <veshanka>
Status: CLOSED ERRATA QA Contact: Sachidananda Urs <surs>
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: asriram, atowns, barumuga, bcompton, rhs-bugs, sasundar, sdharane, shaines, surs, veshanka
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: redhat-storage-server-2.1.0.3-1.el6rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 962298 Environment:
Last Closed: 2013-09-23 22:25:15 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:
Attachments:
Description Flags
Post install script for brick initialization, rhn register and applying perf profile. none

Comment 1 Scott Haines 2013-08-20 23:37:25 UTC
Per PM, requesting script be updated to support 2.1.0 (Big Bend).

Comment 3 Veda Shankar 2013-08-28 06:48:11 UTC
Created attachment 791266 [details]
Post install script for brick initialization, rhn register and applying perf profile.

Comment 4 Veda Shankar 2013-08-28 06:49:08 UTC
Hi,

I have modified the init script for 2.1.
Changes:
  1. Register with RHS 2.1 and RHEL 6.4.z channels.
  2. Introduced "-r" to skip registration per request.

Output from new code:
 ...
Channel(s): rhel-x86_64-server-sfs-6.4.z successfully added
Channel(s): rhel-x86_64-server-6-rhs-2.1 successfully added
Registered Channels:
        rhel-x86_64-server-6-rhs-2.1
        rhel-x86_64-server-6.4.z
        rhel-x86_64-server-sfs-6.4.z
System registered to the correct Red Hat Channels!
 ...

Regards,
Veda

Comment 5 Bala.FA 2013-08-28 12:22:06 UTC
This fix was reviewed at https://code.engineering.redhat.com/gerrit/#/c/12099/

Comment 6 Sachidananda Urs 2013-08-29 07:03:18 UTC
Verified on: redhat-storage-server-2.1.0.3-1.el6rhs.noarch.rpm

[root@boggs .unsupported]# ./rhs-system-init.sh -h
Usage:  rhs-system-init.sh [-h] [-u virtual|object]

General:
  -u <workload>   virtual - RHS is used for storing virtual machine images.
                  object  - Object Access (HTTP) is the primary method to 
                            access the RHS volume.
                  The workload helps decide what performance tuning profile 
                  to apply and other customizations.  
                  By default, the  general purpose workload is assumed.

  -n              Dry run to show what devices will be used for brick creation.
  -r              Skip RHN Registration.
  -h              Display this help.

[root@boggs .unsupported]# 

Verified registering, works good.

Comment 7 Scott Haines 2013-09-23 22:25:15 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. 

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1262.html