Bug 1923887 - virt:8.2 module not available in ceph subscription makes fail the upgrade/update
Summary: virt:8.2 module not available in ceph subscription makes fail the upgrade/update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z6
: 16.1 (Train on RHEL 8.2)
Assignee: Giulio Fidente
QA Contact: Sergii Golovatiuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-02 07:11 UTC by Jose Luis Franco
Modified: 2022-08-02 14:18 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210324233518.29a02c1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-26 13:50:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1915067 0 None None None 2021-02-08 20:23:56 UTC
OpenStack gerrit 774649 0 None MERGED Make DnfStreams support RoleParameters 2022-03-03 19:23:42 UTC
Red Hat Bugzilla 1894031 1 unspecified CLOSED [DOC] Enabling virt module version to 8.2 cannot be applied to ceph nodes. 2023-12-15 20:02:35 UTC
Red Hat Bugzilla 1930274 1 unspecified CLOSED Make necessary edits in the Framework for Upgrades guide, to reflect container-tools module changes 2021-03-18 16:06:51 UTC
Red Hat Bugzilla 1946674 1 unspecified CLOSED [DOC] Update overcloud upgrade docs to remove manipulation of repositories/modules by hand 2022-08-02 18:06:07 UTC
Red Hat Issue Tracker OSP-705 0 None None None 2022-08-02 14:18:26 UTC
Red Hat Issue Tracker OSP-707 0 None None None 2022-08-02 14:01:14 UTC
Red Hat Product Errata RHBA-2021:2097 0 None None None 2021-05-26 13:51:11 UTC

Internal Links: 1894031 1936419 1938198 1946674

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


Note You need to log in before you can comment on or make changes to this bug.