Add a handler for broken tags in the tag backfill system

This will generate a tag pointing to an empty manifest; the tag will be broken, but as it is *already* broken, at least the backfill can complete
This commit is contained in:
Joseph Schorr 2019-02-07 13:36:47 -05:00
parent bbaee0d3f2
commit 0bfbccdd44
4 changed files with 49 additions and 10 deletions

View file

@ -418,7 +418,11 @@ class SharedModel:
repo_name = repo.name
# Find the v1 metadata for this image and its parents.
parents = model.image.get_parent_images(namespace_name, repo_name, legacy_image_row)
try:
parents = model.image.get_parent_images(namespace_name, repo_name, legacy_image_row)
except model.DataModelException:
logger.exception('Could not load parent images for legacy image %s', legacy_image_row.id)
return None
# If the manifest is being generated under the library namespace, then we make its namespace
# empty.