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

"pull up" images when creating them, too #1560

Merged
merged 1 commit into from
Apr 8, 2023
Merged

Conversation

nalind
Copy link
Member

@nalind nalind commented Apr 5, 2023

We previously started "pulling up" images when we changed their names, and started denying the presence of images in read-only stores which shared their ID with an image in the read-write store, so that it would be possible to "remove" names from an image in read-only storage.

Do the same when we're asked to create an image, since denying the presence of images with the same ID in read-only stores would prevent us from finding the image by any of the names that it "had" just a moment before we created the new record.

@Luap99
Copy link
Member

Luap99 commented Apr 6, 2023

I can confirm that the last failing test in podman passes with this patch. I created containers/podman#18079 to confirm that everything else in CI passes as well.

However looks like the tests here are not happy.

@nalind nalind force-pushed the pullup-2 branch 2 times, most recently from 76f0e4f to 9779558 Compare April 6, 2023 14:28
@Luap99
Copy link
Member

Luap99 commented Apr 6, 2023

@nalind Do you want me to repush containers/podman#18079 with your latest change to test again?

@nalind
Copy link
Member Author

nalind commented Apr 6, 2023

@Luap99 If you could, that would be terrific. Thanks!

@Luap99
Copy link
Member

Luap99 commented Apr 6, 2023

ok, done

@Luap99
Copy link
Member

Luap99 commented Apr 6, 2023

still red unfortunately: https://api.cirrus-ci.com/v1/artifact/task/6632512290553856/html/int-podman-fedora-37-root-host-boltdb.log.html
I am gone until Tuesday, if you want to test with podman CI in the meantime just do

go mod edit -replace github.com/containers/storage=github.com/nalind/storage@pullup-2 && make vendor

in the podman repo, then commit/push/open PR (do not forget to add [NO NEW TESTS NEEDED] to the commit msg)

@nalind
Copy link
Member Author

nalind commented Apr 6, 2023

@Luap99 no worries. Thanks for your help getting it this far!

@rhatdan
Copy link
Member

rhatdan commented Apr 6, 2023

Is this ready to go in?

@nalind
Copy link
Member Author

nalind commented Apr 6, 2023

Once tests pass in containers/podman#18089, yes. That PR currently combines this PR and containers/podman#18090.

We previously started "pulling up" images when we changed their names,
and started denying the presence of images in read-only stores which
shared their ID with an image in the read-write store, so that it would
be possible to "remove" names from an image in read-only storage.  We
forgot about the Flags field, so start pulling that up, too.

Do all of the above when we're asked to create an image, since denying
the presence of images with the same ID in read-only stores would
prevent us from finding the image by any of the names that it "had" just
a moment before we created the new record.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@TomSweeneyRedHat
Copy link
Member

containers/podman#18089 is green and happy @nalind

@rhatdan
Copy link
Member

rhatdan commented Apr 8, 2023

LGTM

@rhatdan rhatdan merged commit a7f37ce into containers:main Apr 8, 2023
@nalind nalind deleted the pullup-2 branch April 10, 2023 12:28
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.

None yet

4 participants