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:
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'}]
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 %}
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