Bug 2245690 - An upgrade of cockpit-389-ds should update other 389-ds packages.
Summary: An upgrade of cockpit-389-ds should update other 389-ds packages.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: dirsrv-11.8
Assignee: LDAP Maintainers
QA Contact: LDAP QA Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-23 15:43 UTC by Viktor Ashirov
Modified: 2023-11-28 10:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
.The `cockpit-389-ds` package upgrade now updates the `389-ds-base` and `python3-lib389` packages Previously, the `cockpit-389-ds` package did not specify the version of the `389-ds-base` package it depends on. As a result, the upgrade of the `cockpit-389-ds` package alone did not update the `389-ds-base` and `python3-lib389` packages which could lead to misalignment and compatibility issues between packages. With this update, the `cockpit-389-ds` package depends on the `389-ds-base` exact version and the update of the `cockpit-389-ds` package also upgrades `389-ds-base` and `python3-lib389` packages.
Clone Of:
Environment:
Last Closed: 2023-11-28 10:09:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker IDMDS-3817 0 None None None 2023-10-30 16:07:44 UTC
Red Hat Issue Tracker IDMDS-3848 0 None None None 2023-11-07 16:49:18 UTC
Red Hat Product Errata RHBA-2023:7519 0 None None None 2023-11-28 10:09:38 UTC

Description Viktor Ashirov 2023-10-23 15:43:40 UTC
This bug was initially created as a copy of Bug #2240021

I am copying this bug because: 



Description of problem:
The documentation way of upgrading RHDS packages is to update the redhat-ds module:
    https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/installation_guide/assembly_updating-directory-server_installation-guide#proc_updating-the-directory-server-packages_assembly_updating-directory-server

Nonetheless one could directly upgrade the packages.
Some customers are trying to update the cockpit-389-ds to fix known issues.
A "yum update cockpit-389-ds" is not aligning the other related packages ( 389-ds-base* and python3-lib389 ).
Thus the following discrepancy can happen:

$ rpm -qa | grep 389-ds
cockpit-389-ds-1.4.3.34-1.module+el8dsrv+18528+22f7779f.noarch
389-ds-base-libs-1.4.3.31-11.module+el8dsrv+17815+4f95348d.x86_64
389-ds-base-1.4.3.31-11.module+el8dsrv+17815+4f95348d.x86_64
$

where we can see an updated cockpit-389-ds to 1.4.3.34-1 while other packages are still at 1.4.3.31-11.

Such misalignment was causing several issues with the RHDS Console mostly because of missing options in the dsconf tool ( only present in the newer version ).

It would be nice to add dependencies so an upgrade of cockpit-389-ds triggers updates of 389-ds-base* and python3-lib389 too.

Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.7 (Ootpa)
$

How reproducible:
Always.

Steps to Reproduce:
Upgrade only cockpit-389-ds and check other 389-ds packages.

Actual results:
Different versions of the packages.

Expected results:
Related packages should be updated too.

Additional info:
There is a dependency on python3-lib389 but not for a specific version:

$ rpm -qaR cockpit-389-ds
cockpit
platform-python
python3-lib389
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
$

Comment 3 Viktor Ashirov 2023-11-09 10:47:48 UTC
# dnf update cockpit-389-ds
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

rhds11-latest                                                                                                  476 kB/s |  17 kB     00:00
Dependencies resolved.
===============================================================================================================================================
 Package                          Architecture           Version                                                    Repository            Size
===============================================================================================================================================
Upgrading:
 389-ds-base                      x86_64                 1.4.3.37-6.module+el8dsrv+20535+685d3379                   rhds                 3.3 M
 389-ds-base-libs                 x86_64                 1.4.3.37-6.module+el8dsrv+20535+685d3379                   rhds                 1.5 M
 cockpit-389-ds                   noarch                 1.4.3.37-6.module+el8dsrv+20535+685d3379                   rhds                 687 k
 python3-lib389                   noarch                 1.4.3.37-6.module+el8dsrv+20535+685d3379                   rhds                 970 k

Transaction Summary
===============================================================================================================================================
Upgrade  4 Packages

Total download size: 6.4 M
Is this ok [y/N]:

Updating only cockpit-389-ds pulls in 389-ds-base and lib389.

Marking as VERIFIED.

Comment 4 Evgenia Martynyuk 2023-11-22 12:30:02 UTC
RN has passed all reviews

Comment 6 errata-xmlrpc 2023-11-28 10:09:21 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 (redhat-ds:11 bug fix and enhancement update), 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:7519


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