Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with multiple Tags using Event Based Replication #21245

Open
dloxterm opened this issue Nov 26, 2024 · 2 comments
Open

Problem with multiple Tags using Event Based Replication #21245

dloxterm opened this issue Nov 26, 2024 · 2 comments

Comments

@dloxterm
Copy link

Expected behavior and actual behavior:
We're using 2 Harbor instances with Event Based Push Replication, let's call them harbor1 and harbor2

When an image is built and pushed using multiple tags, e.g. similar to this

docker buildx build --tag harbor1.example.com/tag-test/harbor-test:0.0.1 --tag harbor1.example.com/tag-test/harbor-test:mytest --tag harbor1.example.com/tag-test/harbor-test:latest --push .

All tags are visible for the artifact on harbor1, but after replication to harbor2 there's only the first tag replicated (0.0.1)

  • When I run the same replication rule manually from the WebUI, I can see all three tags in the harbor2.
  • Also, when I add a new Tag from the WebUI to the artifact, it is replicated automatically.
  • When I use docker build with one tag, and then just docker tag and docker push from my computer, the problems also occurs.

When I check the logs for the docker build --tag a --tag b I only see that tag a was created in harbor, the asdasd is my test from the WebUI.

image

However in the artifact display the tags and times are correct:

image

For now, we will try to just add an API call at the end of the pipeline to trigger the replication.
However it would be greatly appreciated to understand if this is wanted behavior or a bug, and in case it's wanted to document it somewhere (or make it more obvious because I could not find it).

Steps to reproduce the problem:
Set up a Replication rule with these settings:

image

And try to push an image with multiple tags (e.g. docker buildx build --tag harbor1.example.com/tag-test/harbor-test:0.0.1 --tag harbor1.example.com/tag-test/harbor-test:mytest --tag harbor1.example.com/tag-test/harbor-test:latest --push .)

Versions:
Please specify the versions of following systems.

  • harbor version: 2.12.0 (also happens in 2.11.1)
  • Docker version 27.3.1, build ce12230
  • Docker Compose version v2.29.7
@chlins
Copy link
Member

chlins commented Nov 26, 2024

It seems same with #20897.

@dloxterm
Copy link
Author

Indeed, my search did not find this but I'm also not familiar with the github search syntax so I just missed it.

@chlins this can be closed from my side, no need to track two issues for the same problem right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants