Project

General

Profile

Actions

Bug #21048

closed

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

Added by Brad Buckingham over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
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.

Actions #1

Updated by Justin Sherrill over 6 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
  • translation missing: en.field_release set to 114
Actions #2

Updated by Brad Buckingham over 6 years ago

  • Target version changed from 217 to 225
Actions #3

Updated by The Foreman Bot over 6 years ago

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

Updated by Justin Sherrill over 6 years ago

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

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release deleted (114)
Actions #6

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 329
Actions

Also available in: Atom PDF