Project

General

Profile

Bug #21048

Having empty repo in a Content View, Capsule sync of the CV fails on retrieving this repo metadata

Added by Brad Buckingham about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1491646

Description of problem:

Having an empty repository in a Content View and publishing this C.V. or promoting to a L.E., an (automated) attempt to synchronize the C.V. content fails on trying to sync this empty repo with error:

PulpCodedException: Error retrieving metadata: NOT FOUND

Also manual Capsule sync fails the same way.

This situation (empty repo in a C.V.) can happen due to various legitimate reasons and shouldnt be dealt as a user/config error.

Root cause behind this bug: the empty repo is never published on Katello. Because step Actions::Pulp::Repository::DistributorPublish is called with "matching_content: true" - since previously published content (empty) matches current content (empty).

Version-Release number of selected component (if applicable):
tfm-rubygem-katello-3.0.0.144-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
0. Katello with a Capsule in Library environment
1. Have a repo with 1 package
2. Add the repo to a Content View and use filter to exclude the package
3. Publish the repo
4. Check task Actions::Katello::ContentView::CapsuleGenerateAndSync triggered on background
5. Try to sync the Cpasule manually

Actual results:
4. and 5. fails with error

PulpCodedException: Error retrieving metadata: NOT FOUND

on the empty repo

Expected results:
No such error

Additional info:
Refer to bugzilla for additional details.

Associated revisions

Revision d068817d (diff)
Added by Justin Sherrill about 4 years ago

Fixes #21048 - publish empty repos on cv publish/promote

also, i reogrdganized how repository glue tests are run
so that the entire set does not have to be re-recorded just to
add a new test. Now you can use the 'new_episodes' recording
option'

History

#1 Updated by Justin Sherrill about 4 years ago

  • Subject changed from Having empty repo in a Content View, Capsule sync of the CV fails on retrieving this repo metadata to Having empty repo in a Content View, Capsule sync of the CV fails on retrieving this repo metadata
  • Status changed from New to Assigned
  • Assignee set to Justin Sherrill
  • Target version set to 217
  • Legacy Backlogs Release (now unused) set to 114

#2 Updated by Brad Buckingham about 4 years ago

  • Target version changed from 217 to 225

#3 Updated by The Foreman Bot about 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7004 added

#4 Updated by Justin Sherrill about 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#5 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) deleted (114)

#6 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 329

Also available in: Atom PDF