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

store: skip template copy with layer in different store #1233

Conversation

giuseppe
Copy link
Member

@giuseppe giuseppe commented May 9, 2022

do not attempt to create a layer using a TemplateLayer if the source
layer is in a different store, since the lookup for the source layer
would fail in the layers store.

The reproducer for the error:

Error: error creating container storage: error creating an ID-mapped copy of layer "4fc242d58285699eca05db3cc7c7122a2b8e014d9481f323bd9277baacfa0628": layer not known

Closes: #1232

Signed-off-by: Giuseppe Scrivano [email protected]

@rhatdan
Copy link
Member

rhatdan commented May 9, 2022

LGTM
@nalind @saschagrunert @flouthoc @vrothberg PTAL

@giuseppe giuseppe force-pushed the idmaps-create-layer-from-another-image-store branch from 67481ba to 2c0bd41 Compare May 9, 2022 13:46
do not attempt to create a layer using a TemplateLayer if the source
layer is in a different store, since the lookup for the source layer
would fail in the layers store.

The reproducer for the error:

Error: error creating container storage: error creating an ID-mapped copy of layer "4fc242d58285699eca05db3cc7c7122a2b8e014d9481f323bd9277baacfa0628": layer not known

Closes: containers#1232

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe force-pushed the idmaps-create-layer-from-another-image-store branch from 2c0bd41 to 236b9ea Compare May 9, 2022 13:58
Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Restarted the flaked job

@giuseppe
Copy link
Member Author

giuseppe commented May 9, 2022

tests are green!

@flouthoc flouthoc merged commit 52f9bbd into containers:main May 9, 2022
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.

error creating an ID-mapped copy of layer when the layer is in a different store
4 participants