Bug 2219545

Summary: Content View with filter add a package with broken dependency even after enabling solve dependency.
Product: Red Hat Satellite Reporter: Pranjal <pbadguja>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: donovan.debeuckelaer, rlavi, sajha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Pranjal 2023-07-04 09:08:40 UTC
Description of problem:

Content View with filter do not resolve dependencies even if the "Solve Dependency" is enabled. 

How reproducible:

100% on all supported satellite versions.


Steps to Reproduce:
1. Create a CV with custom repository (in this case Zabbix repository) and enable "solve dependency".
2. Apply include RPM filter on the CV with package (zabbix-agent2)
3. Try to install the package (zabbix-agent2) on the client host and package installation fails with error:

Problem: cannot install the best candidate for the job
  - nothing provides zabbix-agent2-plugin-postgresql needed by zabbix-agent2-6.0.18-release1.el9.x86_64
  - nothing provides zabbix-agent2-plugin-mongodb needed by zabbix-agent2-6.0.18-release1.el9.x86_64
4. Dependency packages like zabbix-agent2-plugin-mongodb and zabbix-agent2-plugin-postgresql not getting installed as dependency.

Actual results:

Broken dependency of the package part of include filter.

Expected results:

Package getting installed with all the dependencies when "solve dependency" is enabled.

Additional info: