Bug 1640420

Summary: Content View incremental update copy too many rpms and may break yum update.
Product: Red Hat Satellite Reporter: Hao Chang Yu <hyu>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lai <ltran>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.3CC: hyu, ktordeur
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-10 02:16:21 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 Hao Chang Yu 2018-10-18 02:57:26 UTC
Description of problem:
Perform a CV incremental update by adding 1 erratum (RHBA-2018:1916) to a CV. This erratum only have 7 following rpms but Satellite ended up copying 110 rpms. glibc is 1 of those rpms. Satellite copied the latest version of glibc but didn't copy its dependencies such as "glibc-devel" and "glibc-headers". These 3 rpms must be installed with the exact same version (if older version of glib-{devel|headers} is installed). Therefore, the yum update failed on client side.

"subscription-manager-1.20.10-7.el6.x86_64.rpm",
"subscription-manager-firstboot-1.20.10-7.el6.x86_64.rpm",
"subscription-manager-gui-1.20.10-7.el6.x86_64.rpm",
"subscription-manager-migration-1.20.10-7.el6.x86_64.rpm",
"subscription-manager-migration-data-2.0.43-1.el6.noarch.rpm",
"subscription-manager-rhsm-1.20.10-7.el6.x86_64.rpm",
"subscription-manager-rhsm-certificates-1.20.10-7.el6.x86_64.rpm"

How reproducible:
1) Create a CV and add rhel-6-server-rpms repo to the CV.
2) Filter the CV to exclude all errata after 11/05/2016 (RHEL 6.8 release date)
3) Publish the CV.
4) After that do the incremental update

hammer content-view version incremental-update --errata-ids RHBA-2018:1916 --content-view-version-id <cv version id>

Actual results:
Satellite simply copy all the available latest version of the dependencies without checking the minimum requires version by the parent rpms. When running "yum update subscription-manager", yum doesn't even install those 100 dependencies.

Expected results:
Satellite should only copy the needed dependencies.

Comment 2 Brad Buckingham 2018-11-08 21:12:18 UTC
Hi Hao,

This appears to be a duplicate of bug 1508169.  Can you take a look and confirm?

Comment 6 Red Hat Bugzilla 2023-09-14 04:40:25 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days