Project

Profile

Help

Issue #3462

closed

Pulp produces incorrect crane json for removed tags

Added by jluza over 6 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
Platform Release:
2.16.1
Target Release - Docker:
master
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 35
Quarter:

Description

Reproducer:

#create repo
pulp-admin docker repo create --repo-id reproducer-repo --feed https://osbs-pulp-stage.host.prod.eng.rdu2.redhat.com:8888/ --upstream-name twaugh/rsyslog

#Sync repo with schema 2 content with more then 1 tag
pulp-admin docker repo sync run --repo-id <some_repo_id>

  1. check for synced tags
    pulp-admin docker repo search tag --repo-id reproducer-repo
  1. remove one tag by name
    pulp-admin docker repo remove tag --repo-id reproducer-repo --match 'name=<tag>'

#make sure only selected tag was removed

#publish the repo
pulp-admin docker repo publish run --repo-id reproducer-repo

#on pulp server
cat /var/lib/pulp/published/docker/v2/master/reproducer-repo/*/reproducer-repo.json | python -m json.tool

And in output you can see that removed tag is still in
"manifest_list_amd64_tags"

Tag is also pullable via "docker pull"

however tag is not present in
$ cat /var/lib/pulp/published/docker/v2/master/reproducer-repo/*/tags/list | python -m json.tool

neither is in published manifests

Pulp docker version: pulp-docker-plugins-3.1.1-2


Files

tag-orphan-remove.py (1.33 KB) tag-orphan-remove.py Used by tag-orphan-test amacdona@redhat.com, 04/10/2018 08:09 PM
tag-orphan-test.sh (1.43 KB) tag-orphan-test.sh Use with "./tag-orphan-test.sh" amacdona@redhat.com, 04/10/2018 08:09 PM

Also available in: Atom PDF