Project

Profile

Help

Issue #6851

closed

Regression in regenerate applicability

Added by hyu almost 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.21.3
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Looks like there is a regression for the following commit

https://pulp.plan.io/issues/6387 https://github.com/pulp/pulp/commit/0016f7ba16e1e3eae983527f98c6a662132894dd

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:

  1. 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

  1. 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

  1. Trigger the regenerate applicability for repos and wait for the task to finish.

Task pulp.server.managers.consumer.applicability.batch_regenerate_applicability[af5ff301-fbd6-4b6c-9828-ceaeeca52049] succeeded in ..

  1. Empty applicable errata:

pp Katello.pulp_server.extensions.consumer.applicable_errata(["<consumer_uuid>"]).to_a []

Actions #1

Updated by fao89 almost 4 years ago

  • Project changed from Pulp to RPM Support
Actions #2

Updated by ipanova@redhat.com almost 4 years ago

  • Status changed from NEW to POST
  • Triaged changed from No to Yes
Actions #3

Updated by ipanova@redhat.com almost 4 years ago

  • Project changed from RPM Support to Pulp
Actions #4

Updated by ttereshc almost 4 years ago

  • Description updated (diff)

Added by hyu almost 4 years ago

Revision 814cc629 | View on GitHub

Fix regression of #6387

Regenerate applicability task and retrieve applicability request are not using the same all_profiles_hash to save and lookup the repo profile applicability.

closes: #6851 https://pulp.plan.io/issues/6851

Actions #8

Updated by hyu almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #9

Updated by ttereshc almost 4 years ago

  • Platform Release set to 2.21.3

Added by hyu over 3 years ago

Revision 81499854 | View on GitHub

Fix regression of #6387

Regenerate applicability task and retrieve applicability request are not using the same all_profiles_hash to save and lookup the repo profile applicability.

closes: #6851 https://pulp.plan.io/issues/6851 (cherry picked from commit 814cc629b2c134b4dcc167dadc1def4e62bd3599)

Actions #10

Updated by hyu over 3 years ago

Actions #11

Updated by ttereshc over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF