Project

General

Profile

Bug #21808

Docker Tags not getting cleared out on Promote

Added by Partha Aji almost 4 years ago. Updated about 3 years ago.

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

Description

When one promotes a Docker Repository from Archive to Library, the tags are not getting cleared out while the Manifests are.

1) Sync busybox (you should see around 75 tags and over 130 manifests)
2) Create a Content View pointing to this Busybox repo
3) Publish the CV
4) Goto Version 1.0 -> Docker Repositories
you should see Tag count for Library and Archive repo at 75.
5) Now create a docker filter that says "Include only glibc"
6) Publish this Content View again
7) Goto Version 2.0 -> Docker Repositories
Note the Tag count for the archive version says 4 tags while the library version still says 75

Which probably implies that promotion didn't really do its job of clearing tags in library version before copying new stuff.

Associated revisions

Revision a3ca931c (diff)
Added by Partha Aji almost 4 years ago

Fixes #21808 - Correct DockerTag unit import

Before This commit

::Katello::DockerTag.import_for_repository(repo)
would not update an existing repo. It would not clear the prior
tags before importing new ones from pulp.
This call in particular is used by the promotion operations to update
tags in a CVE repository.

After This commit

This operation is now fixed because the import for repository forcibly
clears out existing tags in the repo before the import actually starts.

History

#1 Updated by Partha Aji almost 4 years ago

  • Bugzilla link set to 1519017

#2 Updated by The Foreman Bot almost 4 years ago

  • Assignee set to Partha Aji
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7100 added

#3 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 284

#4 Updated by Partha Aji almost 4 years ago

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

Also available in: Atom PDF