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

build-kola-containers: delete local manifests if FORCE #1053

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jbtrystram
Copy link
Contributor

If a previous run failed while pushing the manifest, subsequent runs will fail because a manifest referencing the same image already exist in the local storage.
This will clear any existing manifests if FORCE is true, allowing re-runs.

The error is:

[2024-11-03T17:27:57.249Z] + cosa push-container-manifest --v2s2 --auth=**** --tag latest --repo quay.io/coreos-assembler/nfs --image=docker://quay.io/coreos-assembler/staging:nfs-aarch64-4e45505 --image=docker://quay.io/coreos-assembler/staging:nfs-x86_64-4e45505 --image=docker://quay.io/coreos-assembler/staging:nfs-s390x-4e45505 --image=docker://quay.io/coreos-assembler/staging:nfs-ppc64le-4e45505
[2024-11-03T17:27:57.249Z] 2024-11-03 17:27:57,220 INFO - Running command: ['podman', 'manifest', 'create', 'quay.io/coreos-assembler/nfs:latest']
[2024-11-03T17:27:57.503Z] Error: creating manifest: image name "quay.io/coreos-assembler/nfs:latest" is already associated with image "88541596f5bb4fb033eb24ac82d8325096d9490463019033ed42e5bbdcb86a2c": that name is already in use

This happens as a previous run tried to create the nfs image, following coreos/coreos-assembler@4e45505, but failing to upload it.
I guess this will go away with some cache refresh but having the force option override it can help

If a previous run failed while pushing the manifest,
subsequent runs will fail because a manifest referencing the
same image already exist in the local storage.
This will clear any existing manifests if FORCE is true,
allowing re-runs.

The error is:
```
[2024-11-03T17:27:57.249Z] + cosa push-container-manifest --v2s2 --auth=**** --tag latest --repo quay.io/coreos-assembler/nfs --image=docker://quay.io/coreos-assembler/staging:nfs-aarch64-4e45505 --image=docker://quay.io/coreos-assembler/staging:nfs-x86_64-4e45505 --image=docker://quay.io/coreos-assembler/staging:nfs-s390x-4e45505 --image=docker://quay.io/coreos-assembler/staging:nfs-ppc64le-4e45505
[2024-11-03T17:27:57.249Z] 2024-11-03 17:27:57,220 INFO - Running command: ['podman', 'manifest', 'create', 'quay.io/coreos-assembler/nfs:latest']
[2024-11-03T17:27:57.503Z] Error: creating manifest: image name "quay.io/coreos-assembler/nfs:latest" is already associated with image "88541596f5bb4fb033eb24ac82d8325096d9490463019033ed42e5bbdcb86a2c": that name is already in use
```
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

Successfully merging this pull request may close these issues.

1 participant