Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2164718

Summary: Packages are updated during dnf streams enabling
Product: Red Hat OpenStack Reporter: Mikolaj Ciecierski <mciecier>
Component: openstack-tripleo-heat-templatesAssignee: Mikolaj Ciecierski <mciecier>
Status: CLOSED ERRATA QA Contact: Archana Singh <arcsingh>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: jpretori, mburns, sathlang
Target Milestone: z5Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20221024005231.ce84009.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-26 12:17:32 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 Mikolaj Ciecierski 2023-01-26 09:46:29 UTC
Description of problem:

In the minor update workflow, we currently use the dnf Ansible
module to ensure that the right streams were enabled.
However, the dnf Ansible module doesn't only enable the stream, but
synchronizes the whole content also installing/updating packages which were
not installed before the update.


~~~
[heat-admin@controller-0 ~]$ sudo grep selinux /var/log/dnf.rpm.log 
2023-01-20T07:26:01+0000 SUBDEBUG Upgrade: container-selinux-2:2.167.0-1.module+el8.4.0+16976+f10e9028.noarch
2023-01-20T07:26:31+0000 SUBDEBUG Upgraded: container-selinux-2:2.124.0-1.module+el8.2.0+9938+46853747.noarch
~~~

 2023-01-20 07:25:53.931370 | 52540084-e420-e1e0-e7d2-00000000046b |       TASK | Ensure DNF modules have the right stream
 2023-01-20 07:27:10.899203 | 52540084-e420-e1e0-e7d2-00000000046b |     TIMING | Ensure DNF modules have the right stream | controller-0 | 0:01:44.830983 | 76.97s
2023-01-20 07:27:29 |
 2023-01-20 07:27:10.902892 | 52540084-e420-e1e0-e7d2-00000000046b |     TIMING | Ensure DNF modules have the right stream | controller-0 | 0:01:44.834692 | 76.97s
~~~

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


How reproducible:
Found in CI

Steps to Reproduce:
1. Deploy 16.1z6
2. Update undercloud to 16.2 with RHOS-16.2-RHEL-8-20221124.n.1 puddle
3. Run controller update 

Actual results:
When modules are enabled, some packages are updated.

Expected results:
Updating packages should not happen  when enabling modules. 

Additional info:

Comment 13 errata-xmlrpc 2023-04-26 12:17:32 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.2.5 (Train) 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-2023:1763