Bug 1337938

Summary: Document pre-upgrade script in 6.2 upgrade docs
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Docs Install GuideAssignee: Stephen Wadeley <swadeley>
Status: CLOSED CURRENTRELEASE QA Contact: Russell Dickenson <rdickens>
Severity: high Docs Contact:
Priority: medium    
Version: 6.2.0CC: abraverm, bbuckingham, jsherril, sghai, swadeley, xdmoon
Target Milestone: Unspecified   
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: 2016-07-31 21:28:07 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: 1268283    
Bug Blocks: 1339417    

Description Sachin Ghai 2016-05-20 13:50:58 UTC
Description of problem: 
Pre-upgrade script that lists all hosts which can be deleted before
performing real migration from sat6.1 to 6.2 needs to be packaged for 6.2

Not sure if its needed for Satellite repo or capsule too?

Version-Release number of selected component (if applicable):
sat6.2 GA snap12

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Justin Sherrill 2016-05-20 13:59:07 UTC
This is a dup of https://bugzilla.redhat.com/show_bug.cgi?id=1268283

do you want to keep this open to ensure its documented in the 6.2 docs?

Comment 5 Brad Buckingham 2016-05-23 00:02:37 UTC
Adding NEEDINFO based on comment #3.

Comment 6 Sachin Ghai 2016-05-30 08:56:05 UTC
Yes please, I just changed the component to 'Documentation' to properly add this.

Comment 7 Sachin Ghai 2016-06-01 08:26:44 UTC
User should place the `preupgrade.rake` script under `/usr/share/foreman/lib/tasks`.

==Run the script using:==

# foreman-rake katello:preupgrade_content_host_check --trace

===Expected output should be like:===

# foreman-rake katello:preupgrade_content_host_check --trace
** Invoke katello:preupgrade_content_host_check (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute katello:preupgrade_content_host_check
This script makes no modifications and can be re-run multiple times for the most up to date results.
Calculating Host changes on upgrade.  This may take a few minutes.


Summary:
Content hosts to be preserved: 6
Content hosts to be deleted: 11
Details on Content Hosts planned for deletion saved to /tmp/pre-upgrade-1464769262.csv
You may want to manually resolve some of the conflicts and duplicate Content Hosts.
Upon upgrade those found for deletion will be removed permanently.

Comment 25 Stephen Wadeley 2016-07-31 21:22:34 UTC
This is now live on the customer portal.

Satellite 6.2 docs are here:

https://access.redhat.com/documentation/en/red-hat-satellite/