Bug 1847019 - Empty applicability for non-modular repos
Summary: Empty applicability for non-modular repos
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.8.0
Assignee: satellite6-bugs
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
: 1848717 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-15 12:59 UTC by Tanya Tereshchenko
Modified: 2021-04-06 17:45 UTC (History)
13 users (show)

Fixed In Version: pulp-2.21.3-1
Doc Type: Known Issue
Doc Text:
Empty applicability for non-modular repos
Clone Of:
: 1851156 (view as bug list)
Environment:
Last Closed: 2020-10-27 13:03:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 6851 0 Normal CLOSED - CURRENTRELEASE Regression in regenerate applicability 2020-07-14 11:04:10 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:03:39 UTC

Description Tanya Tereshchenko 2020-06-15 12:59:38 UTC
Regression due to changes in https://bugzilla.redhat.com/show_bug.cgi?id=1816464

The following 2 lines are inconsistent which is causing that the regenerate applicability and the retrieval of the applicability to use the different all_profiles_hash to look for profile.

This is excluding the empty profile https://github.com/pulp/pulp/commit/0016f7ba16e1e3eae983527f98c6a662132894dd#diff-497c4c3e2dfb13249190d0776ea94a5eR347

This is not excluding the empty profile https://github.com/pulp/pulp/commit/0016f7ba16e1e3eae983527f98c6a662132894dd#diff-497c4c3e2dfb13249190d0776ea94a5eL705

How to reproduce the issue:

Make sure everything is clean by deleting orphaned repo profile applicability
celery -A pulp.server.async.app call pulp.server.maintenance.monthly.queue_monthly_maintenance

Register a consumer and subscribe it to a repo. The consumer should have some applicable errata.
$subscription-manager repos --enable rhel-7-server-rpms

$subscription-manager repos --list

Repo ID: rhel-7-server-rpms Repo Name: Red Hat Enterprise Linux 7 Server (RPMs) Repo URL: https://mysatellite.fqdn/pulp/repos/redhat/Library/content/dist/rhel/server/7/$releasever/$basearch/os Enabled: 1

$ yum list-sec rhel-7-server-rpms

RHBA-2019:2224

RHBA-2018:3349

RHSA-2018:3665

Trigger the regenerate applicability for repos and wait for the task to finish.
You'll get empty applicable errata.

Comment 1 pulp-infra@redhat.com 2020-06-15 13:03:08 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 2 pulp-infra@redhat.com 2020-06-15 13:03:10 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 3 Ian Ballou 2020-06-19 12:23:10 UTC
*** Bug 1848717 has been marked as a duplicate of this bug. ***

Comment 4 Tanya Tereshchenko 2020-06-23 08:17:49 UTC
Steps to reproduce https://github.com/pulp/pulp/pull/3990#issuecomment-647978777

Comment 5 pulp-infra@redhat.com 2020-06-23 09:03:22 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2020-06-23 10:03:28 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 7 Tanya Tereshchenko 2020-06-23 18:46:16 UTC
Steps to reproduce from the comment#4 didn't work for me.

The only way I could reproduce the issue is the following:
On pulp 2.21.2
1. create or update a host profile for a repo with no modules enabled on the host (so katello send an empty profile for modulemd type). Make sure profile is such that there is applicable content.
2. trigger applicability
3. try to retrieve applicability, you'll get the empty applicability
4. apply the patch form the attached upstream issue (will be in 2.21.3)
5. retrieve applicability again (no regeneration), it should be there.

Comment 8 pulp-infra@redhat.com 2020-07-14 11:04:11 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 9 Tasos Papaioannou 2020-09-30 16:13:31 UTC
Verified on 6.8.0_17.0.

Comment 12 errata-xmlrpc 2020-10-27 13:03:19 UTC
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 (Important: Satellite 6.8 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-2020:4366


Note You need to log in before you can comment on or make changes to this bug.