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:
Assigning this to Upgrades since this looks like a change to facilitate a better upgrade experience
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
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