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.

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 <harshpat@redhat.com>
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;

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

3 participants