Bug 1972310 - switchover isn't run on 6.9 -> 6.10 upgrade
Summary: switchover isn't run on 6.9 -> 6.10 upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.10.0
Assignee: Justin Sherrill
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-15 15:47 UTC by Justin Sherrill
Modified: 2023-09-15 01:09 UTC (History)
6 users (show)

Fixed In Version: rubygem-foreman_maintain-0.8.7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 13:48:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32818 0 Normal Closed switchover isn't run on 6.9 -> 6.10 upgrade 2021-07-19 16:51:34 UTC
Foreman Issue Tracker 32831 0 Normal Ready For Testing Migration/switchover tasks should be no-op if switchover already done 2021-06-23 19:28:03 UTC
Red Hat Product Errata RHBA-2021:4697 0 None None None 2021-11-16 13:48:12 UTC

Description Justin Sherrill 2021-06-15 15:47:12 UTC
Description of problem:

For 6.10 upgrades, switchover needs to be run as part of the full upgrade procedure.

Comment 1 Justin Sherrill 2021-06-15 20:17:50 UTC
Created redmine issue https://projects.theforeman.org/issues/32818 from this bug

Comment 2 Bryan Kearney 2021-06-16 00:02:24 UTC
Upstream bug assigned to jsherril

Comment 3 Bryan Kearney 2021-06-16 00:02:27 UTC
Upstream bug assigned to jsherril

Comment 5 Bryan Kearney 2021-07-16 16:01:39 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32818 has been resolved.

Comment 6 Devendra Singh 2021-08-12 14:29:37 UTC
Verified on 6.10.0 Snap12 

Verification points:

- Prepared the 6.9 setups for the upgrade.
- Ran the pulp migration and it was completed successfully.
- Ran the upgrade from 6.9.z to 6.10 Snap 12 and it was completed successfully.

 foreman-maintain upgrade run --whitelist="disk-performance" --target-version 6.10 -y
 Checking for new version of satellite-maintain...
 .................
 .................
 Running Procedures before migrating to Satellite 6.10
 .......................
 .......................
 Switch support for certain content from Pulp 2 to Pulp 3:
 Performing final content migration before switching content
 API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
 Checking for valid Katello configuraton.
 Starting task.
 2021-08-09 12:32:56 -0400: Content migration starting. 
                                                                                                            
 2021-08-09 12:33:06 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:33:16 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:33:26 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:33:36 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:33:46 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:33:56 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:34:06 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:34:16 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:34:26 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:34:36 -0400: Initial Migration steps complete.
                                                                                                                 
 2021-08-09 12:34:46 -0400: Pre-migrating Pulp 2 erratum content (general info) 0/1
                                                                                                                                       
 2021-08-09 12:34:56 -0400: Importing migrated content type docker_tag: 44/44
                                                                                                                                 
 2021-08-09 12:35:06 -0400: Importing migrated yum repositories: 21/121 
                                                                                                                           
 2021-08-09 12:35:16 -0400: Importing migrated content type yum_repo_metadata_file: 17/17
 Content Migration completed successfully
 Performing a check to verify everything that is needed has been migrated 
 API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
 Switching specified content over to pulp 3
 API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
 Checking for valid Katello configuraton.
 Content Switchover completed successfully
 Re-running the installer to switch specified content over to pulp3    [32m[1m[OK][0m
 --------------------------------------------------------------------------------
 Setup repositories: 
 .........................
 .........................
 .........................
  \ Configuring repositories for 6.10                                   [32m[1m[OK][0m
 --------------------------------------------------------------------------------
 Unlock packages:                                                      [32m[1m[OK][0m                                     
 --------------------------------------------------------------------------------
 Update package(s) :                                                   [32m[1m[OK][0m                                     
 --------------------------------------------------------------------------------
 Procedures::Installer::Upgrade:                                       [32m[1m[OK][0m                                     
 --------------------------------------------------------------------------------
 Execute upgrade:run rake task:                                        [32m[1m[OK][0m                                     
 --------------------------------------------------------------------------------
 
 Running Procedures after migrating to Satellite 6.10
 ================================================================================
 Refresh detected features:                                            [32m[1m[OK][0m                                     
 --------------------------------------------------------------------------------
 Start applicable services: 
 ....................................
 ....................................
 Starting the following service(s):
 ....................................
  | Checking for presence of non-original assets...                     [32m[1m[OK][0m
 --------------------------------------------------------------------------------
 Print pulp 2 removal instructions: 
 ======================================================
 Migration of content from Pulp 2 to Pulp3 is complete
 After verifying accessibility of content from clients,
 it is strongly recommend to run "foreman-maintain content remove-pulp2"
 This will remove Pulp 2, MongoDB, and all pulp2 content in /var/lib/pulp/content/
 ======================================================                [32m[1m[OK][0m
 --------------------------------------------------------------------------------
 
 
 --------------------------------------------------------------------------------
 Upgrade finished.

- Checked the fixed in-version

# rpm -qa|grep "rubygem-foreman_maint"
rubygem-foreman_maintain-0.8.10-1.el7sat.noarch

Comment 9 errata-xmlrpc 2021-11-16 13:48:05 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 (Satellite 6.10 Satellite Maintenance Release), 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-2021:4697

Comment 10 Red Hat Bugzilla 2023-09-15 01:09:53 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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