Bug 1644801

Summary: Make available ansible-role-redhat-subscription package in osp12
Product: Red Hat OpenStack Reporter: Jose Luis Franco <jfrancoa>
Component: ansible-role-redhat-subscriptionAssignee: Sam Doran <sdoran>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0 (Pike)CC: amcleod, emacchi, jschluet, jslagle, markmc, mbracho, pablo.iranzo, sbaker, sdoran
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-role-redhat-subscription-1.0.1-4.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-05 18:50:43 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:

Description Jose Luis Franco 2018-10-31 15:52:19 UTC
Description of problem:
In order to make the repository update easier using the redhat-subscription role when updating from osp12 to osp13 it would be needed to have available the package in osp12 repositories.
Currently, if we would like to use the Rhsm service to upgrade from osp12 to osp13 an error would be printed out as the redhat-subscription role is not available in the overcloud nodes (the role has been added in osp13).
Some effort have been done to make use of the old rhel-registration script inside the Rhsm service upgrade_taks, mapping the new variables to the old:
https://review.openstack.org/#/c/611879/ 

However, the effort to make it work is pretty big compared to having the option of using the role which already handles the repository switching. Also, as seen in the review this approach would force us to include a task in host_prep_tasks to verify if the role is available or not (as when running "overcloud upgrade prepare" the host_prep_tasks are executed and the role is not available, the same case stated above).

If the role would be available already in osp12, we could suggest in the documentation to start making use of it when upgrading (linking to the migration to Rhsm documentation https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/advanced_overcloud_customization/ansible-based-registration#switching-to-the-rhsm-composable-service ) appending the rhsm.yml template in the resource_registry. 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Steve Baker 2018-11-05 21:42:59 UTC
Assigning this to Upgrades since this looks like a change to facilitate a better upgrade experience

Comment 3 Jose Luis Franco 2018-11-08 16:07:56 UTC
I did test an upgrade from OSP12 to OSP13 using ansible-role-redhat-subscription-1.0.1-1.el7ost but it would make sense to use the new version instead.

I also proposed the change in rdo: https://review.rdoproject.org/r/#/c/17314/1

Comment 14 errata-xmlrpc 2018-12-05 18:50:43 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:3788