Bug 1513854
Summary: | Resyncing a Docker Repository does not update the tag information | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Partha Aji <paji> |
Component: | Container Management | Assignee: | Partha Aji <paji> |
Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | bbuckingham, egolov, paji, sgraessl, zhunting |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 16:41:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Partha Aji
2017-11-16 06:30:14 UTC
Created from redmine issue http://projects.theforeman.org/issues/21683 Upstream bug assigned to paji Apologize the suggested steps were slightly off. The above steps actually do the expected thing. The bug was more about updating a tag to a new manifest is not handled correctly. Here is the new set of steps # Create a docker hub account. (https://cloud.docker.com/) # Install docker on a machine # Run the following commands <pre> $ mkdir images $ cd images $ docker login -u <username> docker.io $ cat <<EOT > Dockerfile FROM alpine RUN touch bar EOT $ docker build -t alpine:latest . $ docker tag alpine:latest docker.io/<username>/alpine1:latest $ docker push docker.io/<username>/alpine1:latest </pre> # On your katello ui create a docker repo with the following data -> name: repo1, feed: https://registry-1.docker.io , upstream: <username>/alpine1 # Sync repo1. Make sure you see a repo with 1 tag # Go to repo1 details -> click on the link next to the DockerManifest number # Make a note on the digest numbers where "latest" tag points to # back on the docker terminal run the following commands <pre> $ cat <<EOT > Dockerfile FROM alpine RUN touch foo EOT $ docker build -t alpine:latest . $ docker tag alpine:latest docker.io/<username>/alpine1:latest $ docker push docker.io/<username>/alpine1:latest </pre> # On your katello ui Sync repo1 again. Make sure you see a repo with 1 tag # Go to repo1 details -> click on the link next to the DockerManifest number Expected: 4 Manifests with the "latest" pointing to different digests from the prior one Actual: 4 Manifests with the "latest" pointing to same digest from the prior one Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21683 has been resolved. Hey Partha, this does not cherrypick cleanly, and before I go and break more than I want, I thought you'd do the pick for me? :)) Thanks! Verified on Satellite 6.3 snap 30, after changing and resyncing the repo, the manifests digests are correctly updated. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
>
> For information on the advisory, and where to find the updated files, follow the link below.
>
> If the solution does not work for you, open a new bug report.
>
> https://access.redhat.com/errata/RHSA-2018:0336
|