Skip to content

ostree: Retain deployed images in unified storage - #2685

Open
HarshwardhanPatil07 wants to merge 1 commit into
bootc-dev:mainfrom
HarshwardhanPatil07:fix/ostree-unified-image-retention
Open

HarshwardhanPatil07 wants to merge 1 commit into
bootc-dev:mainfrom
HarshwardhanPatil07:fix/ostree-unified-image-retention

Conversation

@HarshwardhanPatil07

@HarshwardhanPatil07 HarshwardhanPatil07 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Fixes #2684. The failure while testing #2603.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 05:48
@bootc-bot
bootc-bot Bot requested a review from gursewak1997 November 24, 2026 05:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@HarshwardhanPatil07 HarshwardhanPatil07 added ci/merge Run full CI suite (all OSes) — equivalent to merge queue and removed ci/merge Run full CI suite (all OSes) — equivalent to merge queue labels Nov 24, 2026
@Johan-Liebert1

Copy link
Copy Markdown
Member

#2679 also has the same fix I think. @HarshwardhanPatil07 could you double check

@HarshwardhanPatil07
HarshwardhanPatil07 marked this pull request as ready for review November 24, 2026 08:55
@HarshwardhanPatil07

Copy link
Copy Markdown
Member Author

@Johan-Liebert1 #2679 leaves the OS image as non_bound_roots, so without this pr fix it will still delete them and test will fail and this pr doesn't touch the logically bound images so your pr fixes that. So both of them are in same class but different fixes, We can land this one and rebase both #2679 and #2603

@HarshwardhanPatil07

Copy link
Copy Markdown
Member Author

OSTree retention test passed here and the failed job will pass after a rerun;

@HarshwardhanPatil07

Copy link
Copy Markdown
Member Author

@Johan-Liebert1 this would need to be merged to unblock #2603


let found_by_id = root_images_ids.contains(&image.id);
let found_by_id =
non_bound_roots.contains(image.id.as_str()) || root_images_ids.contains(&image.id);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are we now sending image IDs for host roots? If yes, then it's better to update the function parameter docs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

An untagged containers-storage origin does not match the :latest name Podman records. Cleanup can then delete images used by live deployments, even though OSTree can still boot them.

Keep deployed images by OCI config ID alongside the existing name roots. Extend the unified storage switch test to check that both the booted and staged images survive cleanup.

Generated-by: AI
Signed-off-by: HarshwardhanPatil07 <[email protected]>
@HarshwardhanPatil07
HarshwardhanPatil07 force-pushed the fix/ostree-unified-image-retention branch from 5060f09 to 72a8ede Compare December 1, 2026 07:11
@HarshwardhanPatil07

Copy link
Copy Markdown
Member Author

pull fail rerun would succeed the ci

@Johan-Liebert1
Johan-Liebert1 enabled auto-merge (rebase) December 2, 2026 04:29
@HarshwardhanPatil07

Copy link
Copy Markdown
Member Author

@Johan-Liebert1 the ci failure 2 is not related to us, its systemd-oom, there was issue reported too in yesterdays backlog grooming about the same and joseph is working on it, tagging @jmarrero too if he wants to see the error as well available here

we can merge this if you have separate option for it

@Johan-Liebert1

Copy link
Copy Markdown
Member

Yeah, that failure seems unrelated to this PR

@jmarrero
jmarrero disabled auto-merge December 2, 2026 18:48
@jmarrero
jmarrero enabled auto-merge (rebase) December 2, 2026 18:48

This branch has not been deployed

No deployments
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.

OSTree cleanup prunes live images from bootc storage after an untagged switch

4 participants