Bug 1904369
| Summary: | Package dependency is wrong on Satellite UI | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Avijit Roy <avroy> |
| Component: | Repositories | Assignee: | Justin Sherrill <jsherril> |
| Status: | CLOSED ERRATA | QA Contact: | addubey |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.7.0 | CC: | addubey, ahumbe, bbuckingham, ehelms, jsherril, ttereshc, zhunting |
| Target Milestone: | 6.10.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-katello-4.1.1.17-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-16 14:09:33 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
Avijit Roy
2020-12-04 08:59:54 UTC
Hi Brad, could someone from Katello share how the look up for dependencies is performed int he UI and how Pulp is involved. I'm struggling a bit to figure out which API call can be used for that. Thanks! Created redmine issue https://projects.theforeman.org/issues/32358 from this bug Nice! Moving to Repositories in a hope that it's the right component :) Thanks for the fix, Justin! Upstream bug assigned to jsherril Upstream bug assigned to jsherril Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/32358 has been resolved. The issue still exists with the fix present.
If I make the corresponding changes in app/services/katello/pulp3/rpm.rb and restart services, then the issue is resolved:
# diff -pruN /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.0.rc2.1/app/services/katello/pulp3/rpm.rb.bak /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.0.rc2.1/app/services/katello/pulp3/rpm.rb
--- /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.0.rc2.1/app/services/katello/pulp3/rpm.rb.bak 2021-06-01 13:16:53.480136494 -0400
+++ /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.0.rc2.1/app/services/katello/pulp3/rpm.rb 2021-06-01 13:17:14.299521837 -0400
@@ -27,7 +27,7 @@ module Katello
def requires
results = []
- flags = {'GT' => '>', 'LT' => '>', 'EQ' => '=', 'GE' => '>=', 'LE' => '<='}
+ flags = {'GT' => '>', 'LT' => '<', 'EQ' => '=', 'GE' => '>=', 'LE' => '<='}
backend_data['requires']&.each do |requirement|
requires_str = ""
@@ -46,7 +46,7 @@ module Katello
def provides
results = []
- flags = {'GT' => '>', 'LT' => '>', 'EQ' => '=', 'GE' => '>=', 'LE' => '<='}
+ flags = {'GT' => '>', 'LT' => '<', 'EQ' => '=', 'GE' => '>=', 'LE' => '<='}
backend_data['provides']&.each do |provided|
provides_str = ""
Associating a redmine that addresses that failedqa and moving to POST as PR is merged upstream. Verified. Tested on: Satellite-6.10.0 Snap 24.0 Steps followed: 1. Checking dependency with (rpm -q --requires tfm-rubygem-hammer_cli_foreman_tasks) on the stdout 2. Navigate to Content >> Packages >> Search for 'tfm-rubygem-hammer_cli_foreman_tasks' >> Dependencies Observation: rpm -q --requires on stdout and dependency on satellite UI possess similar information. 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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702 |