Skip to content

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

Merged
rhatdan merged 1 commit intocontainers:mainfrom
nalind:pullup-2
Apr 8, 2023
Merged

"pull up" images when creating them, too#1560
rhatdan merged 1 commit intocontainers:mainfrom
nalind:pullup-2

Conversation

@nalind
Copy link
Copy Markdown
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
Copy Markdown
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.

@Luap99
Copy link
Copy Markdown
Member

Luap99 commented Apr 6, 2023

@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
Copy Markdown
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
Copy Markdown
Member Author

nalind commented Apr 6, 2023

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

@Luap99
Copy link
Copy Markdown
Member

Luap99 commented Apr 6, 2023

ok, done

@Luap99
Copy link
Copy Markdown
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
Copy Markdown
Member Author

nalind commented Apr 6, 2023

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

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 6, 2023

Is this ready to go in?

@nalind
Copy link
Copy Markdown
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
Copy Markdown
Member

containers/podman#18089 is green and happy @nalind

@rhatdan
Copy link
Copy Markdown
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.

4 participants