Bug 1339645

Summary: Capsule migration from legacy config doesn't run
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, ehelms, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-installer-base-3.0.0.37-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:07:56 UTC Type: ---
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: 1335807    

Description Eric Helms 2016-05-25 14:04:13 UTC

Comment 1 Eric Helms 2016-05-25 14:04:17 UTC
Created from redmine issue http://projects.theforeman.org/issues/15172

Comment 2 Eric Helms 2016-05-25 14:04:20 UTC
Upstream bug assigned to ehelms

Comment 3 Brad Buckingham 2016-05-25 14:16:26 UTC
This is required to support capsule upgrades.

Comment 4 Bryan Kearney 2016-05-25 16:17:21 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15172 has been closed

Comment 6 Sachin Ghai 2016-06-14 06:04:13 UTC
Performed upgrade from sat6.1.9 -> sat6.2 GA snap15.2 on rhel7

On my upgraded satellite, I see that capsule-installer.yaml.backup resides in /etc/capsule-installer instead of /etc/katello-installer

and capsule-upgrade was completed successfully:

 ~]# satellite-installer --scenario capsule --upgrade --certs-tar qe-capsule-rhel7.satqe.lab.eng.rdu2.redhat.com-certs.tar
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: update_http_conf...
Upgrade Step: migrate_pulp...
Upgrade Step: fix_pulp_httpd_conf...
Upgrade Step: start_httpd...
Upgrade Step: start_qpidd...
Upgrade Step: start_pulp...
Upgrade Step: remove_nodes_importers...
Upgrade Step: Running installer...
Installing             Done                                               [100%] [..................................................................]
  The full log is at /var/log/foreman-installer/capsule.log
Upgrade Step: restart_services...
Katello upgrade completed!


Please advise if anything else needs to be tested here for verification ?

Comment 7 Brad Buckingham 2016-06-14 13:36:33 UTC
Hi Sachin,

Since bug 1341756 has been VERIFIED, you have essentially validated the behavior of this fix as well.  This fix was needed to help support the migrating of legacy configuration to the new configuration.  Bug 1341756 was one of the examples of data that was not migrated properly.

Comment 8 Sachin Ghai 2016-06-15 06:22:41 UTC
Thanks Brad for the info. Since the fix given with bug 1341756 has migrated the data properly. So moving this to verified.

Comment 9 Bryan Kearney 2016-07-27 11:07:56 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-2016:1501