Project

General

Profile

Actions

Bug #35263

closed

Content view with "Include all RPMs with no errata" filter and 'Solve Dependencies=yes' does not solve dependencies with RHEL8

Added by Ian Ballou over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2094931

Description of problem:
Content view with "Include all RPMs with no errata" filter and "Solve Dependencies=yes" does not solve dependencies with RHEL8 pkg and modules

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

How reproducible:
Always

Steps to Reproduce:
1. Create CV with RHEL8 BaseOs and AppStream repos
2. Set a filter with "Include all RPMs with no errata" and "Solve Dependencies=yes" and publish a new version
3. 'yum update' will fail

Actual results:
Error:
Problem 1: cannot install both bind-libs-lite-32:9.11.36-3.el8.x86_64 and bind-libs-lite-32:9.11.26-6.el8.x86_64
- package bind-libs-32:9.11.26-6.el8.x86_64 requires bind-libs-lite(x86-64) = 32:9.11.26-6.el8, but none of the providers can be installed
- cannot install the best update candidate for package bind-libs-lite-32:9.11.26-3.el8.x86_64
- cannot install the best update candidate for package bind-libs-32:9.11.26-3.el8.x86_64

... omit

Problem 9: package libvirt-daemon-driver-storage-gluster-8.0.0-5.module+el8.6.0+14480+c0a3aa0f.x86_64 requires /usr/sbin/gluster, but none of the providers can be installed
- package glusterfs-cli-6.0-49.1.el8.x86_64 requires glusterfs-libs(x86-64) = 6.0-49.1.el8, but none of the providers can be installed
- package glusterfs-cli-3.12.2-40.2.el8.x86_64 requires glusterfs-libs(x86-64) = 3.12.2-40.2.el8, but none of the providers can be installed
- cannot install both glusterfs-libs-6.0-56.4.el8.x86_64 and glusterfs-libs-6.0-49.1.el8.x86_64
- cannot install both glusterfs-libs-6.0-56.4.el8.x86_64 and glusterfs-libs-3.12.2-40.2.el8.x86_64
- package libvirt-daemon-driver-storage-8.0.0-5.module+el8.6.0+14480+c0a3aa0f.x86_64 requires libvirt-daemon-driver-storage-gluster = 8.0.0-5.module+el8.6.0+14480+c0a3aa0f, but none of the providers can be installed
- package glusterfs-client-xlators-6.0-56.4.el8.x86_64 requires glusterfs-libs(x86-64) = 6.0-56.4.el8, but none of the providers can be installed
- cannot install the best update candidate for package libvirt-daemon-driver-storage-6.0.0-35.module+el8.4.0+10230+7a9b21e4.x86_64
- cannot install the best update candidate for package glusterfs-client-xlators-6.0-49.1.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Expected results:
Resolve the dependencies

Additional info:

The info above is a side effect of a content indexing bug. When we index an erratum, we create ErratumPackage and ModuleStreamErratumPackage records to connect up the related module streams. There is a bug in that portion of the code that causes duplicated errata to not get the related ModuleStreamErratumPackages. This can cause extra module streams to get copied into content views when filtering is involved. This is because those module streams without ModuleStreamErratumPackages will be returned by the "repo.module_streams_without_errata" method.

Actions #1

Updated by Ian Ballou over 1 year ago

  • Subject changed from Content view with "Include all RPMs with no errata" filter and 'Solve Dependencies=yes' does not solve dependencies with RHEL8 to Content view with "Include all RPMs with no errata" filter and 'Solve Dependencies=yes' does not solve dependencies with RHEL8
  • Assignee set to Ian Ballou
  • Target version set to 3.18-no-release-planned
Actions #2

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10207 added
Actions #3

Updated by Samir Jha over 1 year ago

  • Triaged changed from No to Yes
Actions #4

Updated by Ian Ballou over 1 year ago

  • Status changed from Ready For Testing to Closed

The fix script can be run using `foreman-rake upgrade:run` or directly using the upgrade-specific command: `katello:upgrades:3.18:create_missing_module_stream_erratum_packages`

Actions

Also available in: Atom PDF