Bug 2164718 - Packages are updated during dnf streams enabling
Summary: Packages are updated during dnf streams enabling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z5
: 16.2 (Train on RHEL 8.4)
Assignee: Mikolaj Ciecierski
QA Contact: Archana Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-26 09:46 UTC by Mikolaj Ciecierski
Modified: 2023-04-26 12:17 UTC (History)
3 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20221024005231.ce84009.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-26 12:17:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 862111 0 None MERGED Replace dnf by tripleo_dnf_stream for updates. 2023-01-26 09:48:33 UTC
Red Hat Issue Tracker OSP-21789 0 None None None 2023-01-26 09:49:20 UTC
Red Hat Product Errata RHBA-2023:1763 0 None None None 2023-04-26 12:17:44 UTC

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


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