Description of problem: yum update samba fails as ldb-tools with the same version of libldb is not available for update. Version-Release number of selected component (if applicable): RHGS 3.1.2 ldb-tools.x86_64 1.1.20-3.el7rhgs @anaconda/3.1.2 libldb.x86_64 1.1.20-3.el7rhgs @anaconda/3.1.2 How reproducible: Always Steps to Reproduce: 1. RHEL7.2 machine with RHGS 3.1.2 having default samba packages. 2. Do a yum update 3. Actual results: Error: Package: ldb-tools-1.1.24-1.el7rhgs.x86_64 (rh-gluster-3-samba-for-rhel-7-server-rpms) Requires: libldb = 1.1.24-1.el7rhgs Removing: libldb-1.1.20-3.el7rhgs.x86_64 (@anaconda/3.1.2) libldb = 1.1.20-3.el7rhgs Updated By: libldb-1.1.25-1.el7_2.x86_64 (rhel-7-server-rpms) libldb = 1.1.25-1.el7_2 Available: libldb-1.1.16-4.el7.i686 (rhel-7-server-rpms) libldb = 1.1.16-4.el7 Available: libldb-1.1.17-2.el7.i686 (rhel-7-server-rpms) libldb = 1.1.17-2.el7 Available: libldb-1.1.20-1.el7.i686 (rhel-7-server-rpms) libldb = 1.1.20-1.el7 Available: libldb-1.1.20-1.el7rhgs.x86_64 (rh-gluster-3-for-rhel-7-server-rpms) libldb = 1.1.20-1.el7rhgs Available: libldb-1.1.20-1.el7_2.2.i686 (rhel-7-server-rpms) libldb = 1.1.20-1.el7_2.2 Available: libldb-1.1.24-1.el7rhgs.x86_64 (rh-gluster-3-samba-for-rhel-7-server-rpms) libldb = 1.1.24-1.el7rhgs ********************************************************************** yum can be configured to try to resolve such errors by temporarily enabling disabled repos and searching for missing dependencies. To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf ********************************************************************** Error: Package: ldb-tools-1.1.24-1.el7rhgs.x86_64 (rh-gluster-3-samba-for-rhel-7-server-rpms) Requires: libldb = 1.1.24-1.el7rhgs Removing: libldb-1.1.20-3.el7rhgs.x86_64 (@anaconda/3.1.2) libldb = 1.1.20-3.el7rhgs Updated By: libldb-1.1.25-1.el7_2.x86_64 (rhel-7-server-rpms) libldb = 1.1.25-1.el7_2 Available: libldb-1.1.16-4.el7.i686 (rhel-7-server-rpms) libldb = 1.1.16-4.el7 Available: libldb-1.1.17-2.el7.i686 (rhel-7-server-rpms) libldb = 1.1.17-2.el7 Available: libldb-1.1.20-1.el7.i686 (rhel-7-server-rpms) libldb = 1.1.20-1.el7 Available: libldb-1.1.20-1.el7rhgs.x86_64 (rh-gluster-3-for-rhel-7-server-rpms) libldb = 1.1.20-1.el7rhgs Available: libldb-1.1.20-1.el7_2.2.i686 (rhel-7-server-rpms) libldb = 1.1.20-1.el7_2.2 Available: libldb-1.1.24-1.el7rhgs.x86_64 (rh-gluster-3-samba-for-rhel-7-server-rpms) libldb = 1.1.24-1.el7rhgs Expected results: Should be successful without any issues Additional info: Default samba packages: yum list installed | grep "samba\|talloc\|tdb\|tevent\|ldb" ldb-tools.x86_64 1.1.20-3.el7rhgs @anaconda/3.1.2 libldb.x86_64 1.1.20-3.el7rhgs @anaconda/3.1.2 libtalloc.x86_64 2.1.2-1.el7rhgs @anaconda/3.1.2 libtdb.x86_64 1.3.6-2.el7rhgs @anaconda/3.1.2 libtevent.x86_64 0.9.25-1.el7rhgs @anaconda/3.1.2 libverto-tevent.x86_64 0.2.5-4.el7 @anaconda/3.1.2 pytalloc.x86_64 2.1.2-1.el7rhgs @anaconda/3.1.2 samba.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-client.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-client-libs.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-common.noarch 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-common-libs.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-common-tools.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-libs.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-vfs-glusterfs.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-winbind.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-winbind-clients.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-winbind-krb5-locator.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 samba-winbind-modules.x86_64 4.2.4-13.el7rhgs @anaconda/3.1.2 tdb-tools.x86_64 1.3.6-2.el7rhgs @anaconda/3.1.2
The machine is subscribed to LIVE with repos enabled for samba channel. Repository 'rh-gluster-3-samba-for-rhel-7-server-rpms' is enabled for this system
We were leapfrogged by RHEL, in this case. I'll need this BZ fully ACKed to get a build out the door. We might need another errata as well? Meanwhile, I've provided a scratch build here: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=10874600 Vivek, can you see if this resolves the issue? Updating the installed packages to the scratch-built ones and then doing yum update should suffice. If this succeeds, could you also verify that libtevent doesn't have any problems? We should remain on 0.9.26-1 from "rh-gluster-3-samba-for-rhel-6-server-rpms" rather than anything from "rhel-6-server-rpms". If not, I'll provide a rebuild for that as well.
For RHEL7 the scratch-build provided https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=10874601 resolves the issue. ldb-tools.x86_64 1.1.25-2.1.el7rhgs @/ldb-tools-1.1.25-2.1.el7rhgs.x86_64 libldb.x86_64 1.1.25-2.1.el7rhgs @/libldb-1.1.25-2.1.el7rhgs.x86_64 libsmbclient.x86_64 4.2.11-2.el7rhgs @rh-gluster-3-samba-for-rhel-7-server-rpms libtalloc.x86_64 2.1.5-1.el7_2 @rhel-7-server-rpms libtdb.x86_64 1.3.8-1.el7_2 @rhel-7-server-rpms *libtevent.x86_64 0.9.26-1.el7_2 @rhel-7-server-rpms* libverto-tevent.x86_64 0.2.5-4.el7 @anaconda/3.1.2 libwbclient.x86_64 4.2.11-2.el7rhgs @rh-gluster-3-samba-for-rhel-7-server-rpms pytalloc.x86_64 2.1.5-1.el7_2 @rhel-7-server-rpms [No issues where observed while yum update] However for RHEL6 With the scratch-build provided https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=10874600 On a successful yum update, the libtevent is not as expected by jose i. e (We should remain on 0.9.26-1 from "rh-gluster-3-samba-for-rhel-6-server-rpms") instead we get libtevent.x86_64 0.9.26-2.el6_7. ldb-tools.x86_64 1.1.25-2.1.el6rhs @/ldb-tools-1.1.25-2.1.el6rhs.x86_64 libldb.x86_64 1.1.25-2.1.el6rhs @/libldb-1.1.25-2.1.el6rhs.x86_64 libtalloc.x86_64 2.1.5-1.el6 @rhel-6-server-rpms libtdb.x86_64 1.3.8-1.el6_7 @rhel-6-server-rpms libtevent.x86_64 0.9.26-2.el6_7 @rhel-6-server-rpms
The reason of the problem is that RHEL ships libldb in the main channel and ldb-tools (which comes from the same source-RPM) in the optional channel, while RHGS ships ldb-tools and libldb in the same (samba) channel. Hence if ldb-tools is install without the RHEL optional channel being enabled, we can't upgrade to the RHEL version of libldb if that is newer... ==> Workaround: uninstall ldb-tools before upgrading! (ldb-tools are not needed anyways)
(In reply to Michael Adam from comment #8) > The reason of the problem is that RHEL ships libldb in the main channel and > ldb-tools (which comes from the same source-RPM) in the optional channel, > while RHGS ships ldb-tools and libldb in the same (samba) channel. Hence if > ldb-tools is install without the RHEL optional channel being enabled, we > can't upgrade to the RHEL version of libldb if that is newer... > > ==> Workaround: uninstall ldb-tools before upgrading! > > (ldb-tools are not needed anyways) But this workaround removes the redhat-storage-server rpm too, because redhat-storage-server package requires ldb-tools package. This is a package dependency. [root@ ~]# rpm -qR redhat-storage-server | grep ldb ldb-tools [root@ ~]# yum remove ldb-tools Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager This system is not registered with RHN Classic or Red Hat Satellite. You can use rhn_register to register. Red Hat Satellite or RHN Classic support will be disabled. Resolving Dependencies --> Running transaction check ---> Package ldb-tools.x86_64 0:1.1.20-3.el7rhgs will be erased --> Processing Dependency: ldb-tools for package: redhat-storage-server-3.1.2.0-1.el7rhgs.noarch --> Running transaction check ---> Package redhat-storage-server.noarch 0:3.1.2.0-1.el7rhgs will be erased --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================== Package Arch Version Repository Size ====================================================================================================== Removing: ldb-tools x86_64 1.1.20-3.el7rhgs @anaconda/3.1.2 107 k Removing for dependencies: redhat-storage-server noarch 3.1.2.0-1.el7rhgs @anaconda/3.1.2 2.2 M Transaction Summary ====================================================================================================== Remove 1 Package (+1 Dependent package) Installed size: 2.3 M Is this ok [y/N]:
With the new lib packages did a yum update and it is successfully updating. ldb-tools.x86_64 1.1.26-1.el7rhgs @Samba-libs libldb.x86_64 1.1.26-1.el7rhgs @Samba-libs libtdb.x86_64 1.3.8-1.1.el7rhgs @Samba-libs libtevent.x86_64 0.9.28-1.el7rhgs @Samba-libs tdb-tools.x86_64 1.3.8-1.1.el7rhgs @Samba-libs
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, 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://rhn.redhat.com/errata/RHBA-2016-0674.html