Bug 1653238

Summary: [UPGRADES][14] Need to run RHSM configuration during upgrade tasks
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: openstack-tripleo-heat-templatesAssignee: Jose Luis Franco <jfrancoa>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: augol, ccamacho, jfrancoa, mbracho, mburns, mcornea, sclewis, sgolovat
Target Milestone: rcKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.0.1-0.20181013060896.el7ost.src.rpm, Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:55:00 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 Yurii Prokulevych 2018-11-26 10:53:33 UTC
Description of problem:
-----------------------
In RHOS-14 new service RHSM is introduced. It's used to subscribe hosts to Satellite/CDN.
Unfortunately this task is executed just within host_prep_task section, and we need to run it during upgrade_tasks, to get correct nodes configured on nodes.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
openstack-tripleo-heat-templates-9.0.1-0.20181013060890.el7ost.noarch


How reproducible:
-----------------
100%

Steps to Reproduce:
-------------------
1. Deploy RHOS-13 with satellite
2. Start upgrade to 14
3. Add new env file to upgrade prepare command:
    /usr/share/openstack-tripleo-heat-templates/environments/rhsm.yaml
4. Add env file with credentials for RHOS-14
5. After upgrade prepare start Controllers upgrade


Actual results:
---------------
Nodes don't have correct repos configured


Expected results:
-----------------
Correct repos are configured

Comment 11 Yurii Prokulevych 2018-12-19 15:33:12 UTC
Verified with openstack-tripleo-heat-templates-9.0.1-0.20181013060905.el7ost.noarch
Nodes got successfully registered to satellite using rhsml service

Comment 14 errata-xmlrpc 2019-01-11 11:55:00 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/RHEA-2019:0045