Skip to content

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

In review

Description

@HarshwardhanPatil07
  • What the retention test checks

Retention means keeping the container image in bootc storage through cleanup. The existing test-switch-to-unified already verified that the derived deployment boots. We extended it to also check what happens to the container images immediately after the switch.

  1. Boot the base deployment and run bootc image set-unified to put its image in bootc storage.
  2. Build localhost/bootc-unified-derived in that store and record the full image IDs for the base and derived images.
  3. Switch to the derived image with its untagged name. The switch stages it and runs cleanup. Check that both IDs are still in bootc storage.
  4. Reboot and check that the derived deployment is running and that its marker file is present.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions