Bug 1519515

Summary: Make portal registration false by default
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Satellite CloneAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
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: 2018-02-19 17:23:12 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: 1533259    

Description sthirugn@redhat.com 2017-11-30 19:55:05 UTC
Description of problem:
Make portal registration false by default

Version-Release number of selected component (if applicable):
satellite-clone-1.1.4-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
Seeing how users use satellite-clone (registering to the portal and manually attaching subscription pools), it doesn't make sense to keep the default registering to portal enabled.

Actual results:
Register to portal is enabled by default

Expected results:
Make register/subscribe as a manual step before cloning. We can still provide an option to use an activation key and password to subscribe to the portal.

In satellite-clone-vars.sample.yml:
#activationkey: changeme
#org: changeme
#register_to_portal: false

In satellite-clone/defaults/main.yml:
register_to_portal: False

Additional info:

Comment 2 sthirugn@redhat.com 2018-01-15 20:42:45 UTC
Submitted PR https://github.com/RedHatSatellite/satellite-clone/pull/300

Comment 3 sthirugn@redhat.com 2018-02-01 18:59:54 UTC
Verified in satellite-clone-1.2.1-1.el7sat.noarch

Now the default behavior is manual registration to portal. The default workflow is:

1. Manually register to portal and attach right subscriptions
2. copy backup files
3. install satellite-clone
4. Run satellite-clone

If you want to override it, you can update the following in /etc/satellite-clone/satellite-clone-vars.yml:
register_to_portal: true
activationkey: <activationkey>
org: <org>

Comment 6 errata-xmlrpc 2018-02-19 17:23:12 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.

https://access.redhat.com/errata/RHBA-2018:0330