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

crane: crane copy is not working in 0.10 #1393

Closed
janosmiko opened this issue Jun 23, 2022 · 6 comments
Closed

crane: crane copy is not working in 0.10 #1393

janosmiko opened this issue Jun 23, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@janosmiko
Copy link

janosmiko commented Jun 23, 2022

Describe the bug

I'm trying to copy images from a GitLab registry to a Harbor registry using the latest version of Crane (0.10).

To Reproduce

bash-5.1# crane version
0.10.0
bash-5.1# crane copy registry.gitlabexample.com/examplegroup/examplerepo/image:main registry.harborexample.com/target/target:main
2022/06/23 11:12:00 Copying from registry.gitlabexample.com/examplegroup/examplerepo/image:main to registry.harborexample.com/target/target:main
Error: failed to copy image: POST registry.harborexample.com/v2/target/target:main/blobs/uploads/?from=examplegroup%2Fexamplerepo%2Fimage&mount=sha256%3A0568686c22c248c1ef8ae00f5baa5d660cb5dcd3424e63a60d9c9b9b71e39785&origin=REDACTED: UNAUTHORIZED: project examplegroup not found: project examplegroup not found

Expected behavior

When I revert to 0.9, it works as expected.

bash-5.1# crane version
0.9.0
bash-5.1# crane copy registry.example.com/examplegroup/examplerepo/image:main registry.harborexample.com/target/target:main
2022/06/23 11:18:06 Copying from registry.example.com/examplegroup/examplerepo/image:main to registry.harborexample.com/target/target:main
2022/06/23 11:18:12 pushed blob: sha256:0568686c22c248c1ef8ae00f5baa5d660cb5dcd3424e63a60d9c9b9b71e39785
2022/06/23 11:18:12 pushed blob: sha256:c78c48e60064d4d5592af2c868e99063f54b6a44f8c309f1c4f370c378ecce6f
...
@janosmiko janosmiko added the bug Something isn't working label Jun 23, 2022
@imjasonh
Copy link
Collaborator

@jonjohnsonjr seems related to cross origin mounting?

@jonjohnsonjr
Copy link
Collaborator

jonjohnsonjr commented Jun 23, 2022

@janosmiko
Copy link
Author

What about a command-line flag to support this old behavior?

@janosmiko
Copy link
Author

I updated my Harbor instance from (2.4.x) to the latest version (2.5.1) and it seems like it's working again with Crane 0.10.

Thanks for the help!

@imjasonh
Copy link
Collaborator

That's great to hear! We might just want to document that this behavior breaks on Harbor <v2.5, if that's already fixed.

@adriannieto-attechnest
Copy link

Just to note that we are experiencing this bug in latest harbor version in the helm chart (Version v2.5.1-b0506782) @imjasonh how did you fix the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants