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

Tag Immutability off but can't override image, which is not even present [ECR ARM] Issue #862

Closed
hasante opened this issue Apr 26, 2020 · 5 comments
Labels
Closing Soon Developer Preview This issue has an open developer preview ECR Amazon Elastic Container Registry EKS ARM Related to EKS ARM instances More Info Requested

Comments

@hasante
Copy link

hasante commented Apr 26, 2020

Please let us know how we can improve the EKS ARM preview program. This can be a bug report, feature, or functionality request.

Describe the issue
I initially set a tag immutability check on, so no tags can be overwritten
I turned it off so I can have a stable latest tag to work with.
Now all is set but when am overwriting the latest tag, I get this error in my codebuild process:
...

49faa1768b47: Pushed

244 | [DEPRECATION NOTICE] registry v2 schema1 support will be removed in an upcoming release. Please contact admins of the number.ecr.us-east-1.amazonaws.com registry NOW to avoid future disruption. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
245 | tag invalid: The image tag 'latest' already exists in the 'app_service_image' repository and cannot be overwritten because the repository is immutable.
246 |  
247 | [Container] 2020/04/26 18:07:43 Command did not exit successfully docker push $REPOSITORY_URI:latest exit status 1
248 | [Container] 2020/04/26 18:07:43 Running command echo Finished Pushing Auth_service Image into Amazon ECR

To Reproduce
First set tag immutability on your AWS ECR image repository and push and then off and push again. Thats how I experienced this

Expected behavior
That the tag is overwritten

Screenshots
Section of build process where problem occurs
image

ECR IMAGE REPO
image

Cluster Information
It's in the AWS Codebuild and AWS ECR process

Additional context
None

@hasante hasante added Developer Preview This issue has an open developer preview EKS ARM Related to EKS ARM instances labels Apr 26, 2020
@hasante hasante changed the title [EKS ARM] Issue Tag Immutability off but can't override image, which is not even present [ECR ARM] Issue Apr 26, 2020
@runningman84
Copy link

From my point of view there should be some way to exclude alias tags from the tag immutability. Maybe some regex which would allow to overwrite latest, branch name ...

Right now it is all or nothing. We use specific tags based on commit id for deployments. But is is also very convenient that a developer can just fetch the latest image without knowing the last commit id. This means we are not able to use this feature...

@rpnguyen
Copy link
Contributor

We haven’t been able to reproduce this issue, could you let us know if this is still happening?

@rpnguyen rpnguyen added More Info Requested ECR Amazon Elastic Container Registry labels Jan 14, 2021
@hasante
Copy link
Author

hasante commented Jan 14, 2021

It's been a long time since I experienced this issue, however from what I remember, after deleting the Image, and setting the tag immutability on and off again.

I could not replace it, basically as reported in my reported issue

@github-actions
Copy link

Greetings! It looks like this issue hasn't been active for a while. Because it has been some time since the last update on this, and in the absence of more information, we will be closing this issue soon. Please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.

@Mugane
Copy link

Mugane commented Apr 29, 2021

Well, that was an utter waste of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closing Soon Developer Preview This issue has an open developer preview ECR Amazon Elastic Container Registry EKS ARM Related to EKS ARM instances More Info Requested
Projects
None yet
Development

No branches or pull requests

4 participants