Bug 1496590

Summary: Upgrades: Need a way to skip the repository settings or use the BETA repos during 6.3 beta
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Satellite MaintainAssignee: Mike McCune <mmccune>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: high Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: apatel, bbuckingham, inecas, kgaikwad, mmccune, nkathole, sabnave, sghai
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:22:26 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: 1496794    

Description Mike McCune 2017-09-27 21:18:38 UTC
The repository setting for upgrades to 6.3 will try to set:

rhel-7-server-satellite-6.3-rpms

This repository will not exist until 6.3 GA and we will not be able to use foreman-maintain to upgrade 6.3 test systems to 6.3 Beta.

We either need to:

1) be able to skip this step entirely

2) for beta we need to have branding in place to use the beta repo IDs.

I'd prefer option 2 as it will be easier for our customers.

Comment 6 Mike McCune 2017-10-09 12:51:06 UTC
For 6.3 beta we will need the set the repo-ids to:

 rhel-server-7-satellite-6-beta-rpms

so it will work out of the box during the beta period.

Once beta is complete we can go back to the standard 6.3 repos

Comment 7 Satellite Program 2017-10-16 16:08:55 UTC
Upstream bug assigned to mmccune

Comment 8 Satellite Program 2017-10-17 20:08:55 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21346 has been resolved.

Comment 9 Nikhil Kathole 2017-12-19 14:15:05 UTC
VERIFIED

# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.1.1-1.el7sat.noarch

For 6.3, foreman-maintain sets beta repositories

D, [2017-12-19 06:19:49-0500 #10340] DEBUG -- : Running command subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-server-rhscl-7
-rpms --enable=rhel-server-7-satellite-6-beta-rpms with stdin nil
D, [2017-12-19 06:20:04-0500 #10340] DEBUG -- : output of the command:
 Repository 'rhel-7-server-rpms' is enabled for this system.
Repository 'rhel-server-7-satellite-6-beta-rpms' is enabled for this system.
Repository 'rhel-server-rhscl-7-rpms' is enabled for this system.

and to skip repository setup
# foreman-maintain upgrade run --target-version 6.3 --whitelist='repositories-setup'

Comment 12 errata-xmlrpc 2018-02-19 17:22:26 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