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

Not able to push component to AWS ECR #301

Closed
mayankraipure12 opened this issue Mar 14, 2023 · 2 comments
Closed

Not able to push component to AWS ECR #301

mayankraipure12 opened this issue Mar 14, 2023 · 2 comments
Assignees
Labels

Comments

@mayankraipure12
Copy link

What happened:
ocm transfer component ./component-archive 671041269596.dkr.ecr.ap-south-1.amazonaws.com/mayankr-registry/podinfo-component
transferring version "github.com/acme/podinfo:v1.0.0"...
...resource 0...
Error: github.com/acme/podinfo:v1.0.0: transferring resource 0: unable to add blob: unable to add blob: failed to push: failed to do request: Post "https://671041269596.dkr.ecr.ap-south-1.amazonaws.com/v2/mayankr-registry/podinfo-component/component-descriptors/github.com/acme/podinfo/blobs/uploads/": EOF
1 versions transferred
Error: transfer finished with 1 error(s)
What you expected to happen:
Component should get uploaded.
How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

Environment:
Ubuntu to AWS

@shivenduverma-sap
Copy link
Contributor

shivenduverma-sap commented Mar 30, 2023

Root Cause: Unlike GCP, AWS does not create folders/repositories automatically in a registry and the error is caused by lack of repositories. The error can be confirmed from CloudTrail "The repository with name '<path to image>' does not exist in the registry with id '<account-id>'"
The issue is known but has still not been implemented: aws/containers-roadmap#853

Intermediate Solution: Creating the repositories manually via the aws ecr create-repository --repository-name <path to docker image> solves the issue, but has to be repeated for all repositories hosting images. ie. Consider a component archive with 1 local resource, 2 repositories have to be created, 1 for the image of the local resource and 1 for the component-descriptor.

@shivenduverma-sap
Copy link
Contributor

Team Decision:

  • Close the current bug ticket as supporting AWS is not currently a priority
  • For testing on AWS, repositories can be created manually
  • Create ticket to support AWS in the future

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

No branches or pull requests

2 participants