Skip to content

Conversation

jbtrystram
Copy link
Member

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