Bug 1923887

Summary: virt:8.2 module not available in ceph subscription makes fail the upgrade/update
Product: Red Hat OpenStack Reporter: Jose Luis Franco <jfrancoa>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Sergii Golovatiuk <sgolovat>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: fpantano, gfidente, jelle.hoylaerts.ext, jpretori, mburns, sgolovat, vgrosu
Target Milestone: z6Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210324233518.29a02c1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-26 13:50:41 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 2021-02-02 07:11:26 UTC
Description of problem:

In https://bugzilla.redhat.com/show_bug.cgi?id=1866479 a new mechanism was introduced to make sure the subscribed environments end up with the right DNF module stream set. This mechanism was introduced in tripleo-packages-baremetal-puppet.yaml and it runs for every single role.

However, as it has been reported in https://bugzilla.redhat.com/show_bug.cgi?id=1894031 the "Advanced Virtualization" repository is not always available in the subscription used by the Ceph nodes. Which translates into a failure when trying to enable virt:8.2 during the upgrade/update of a Ceph node.

Until a mechanism is introduced to allow setting different DNF module streams per role, the following workaround will be required to be performed to bypass the issue:

* Override the DnfStreams parameter in the upgrades-environment.yaml:

/home/stack/templates/upgrades-environment.yaml

parameter_defaults:
  ...
  DnfStreams: [{'module':'container-tools', 'stream':'2.0'}]
 
This way the Advanced Virtualization DNF stream won't be enforced, but the ceph upgrade won't fail. 

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


How reproducible:

Perform an FFU to OSP16.1.4 or a minor update to OSP16.1.4

Steps to Reproduce:
1.
2.
3.

Actual results:

The Ceph nodes update/upgrade fails

Expected results:

The Ceph nodes update/upgrade progress


Additional info:

Comment 2 Jesse Pretorius 2021-02-08 13:21:06 UTC
To ensure that the override is only applied to the specific roles where this is required, the parameters should rather be something like:

parameter_defaults:
  CephStorageParameters:
    DnfStreams: [{'module':'container-tools', 'stream':'2.0'}]

Comment 8 Jesse Pretorius 2021-03-18 11:41:53 UTC
The following content in /home/stack/templates/upgrades-environment.yaml can be used as a workaround.

parameter_defaults:
  DnfStreams: [{'module':'container-tools', 'stream':'2.0'}]
  UpgradeInitCommand: |
    sudo dnf module disable -y container-tools:rhel8
    sudo dnf module enable -y container-tools:2.0
    {% if 'Compute' in group_names or 'Controller' in group_names %}
    sudo dnf module disable -y virt:rhel
    sudo dnf module enable -y virt:8.2
    {% endif %}
  UpgradeLeappCommandOptions: >-
    {%- if 'Compute' in group_names or 'Controller' in group_names %}
    --enablerepo rhel-8-for-x86_64-baseos-eus-rpms
    --enablerepo rhel-8-for-x86_64-appstream-eus-rpms
    --enablerepo fast-datapath-for-rhel-8-x86_64-rpms
    {%- else %}
    --enablerepo rhel-8-for-x86_64-baseos-rpms
    --enablerepo rhel-8-for-x86_64-appstream-rpms
    {%- endif %}

Comment 25 errata-xmlrpc 2021-05-26 13:50:41 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 (Red Hat OpenStack Platform 16.1.6 bug fix and enhancement 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-2021:2097