Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-1849

Expose storage Check()/Repair() in buildah

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • None
    • False
    • rhel-sst-container-tools

      The storage library's Store object now provides Check and Repair methods.

      Repair is a bit of a misnomer, because the best we can do with an image which contains data that's been corrupted is to remove it so that it can be re-pulled.

      https://github.com/containers/storage/pull/1596 fixed a number of cases where it could misreport something normal as an error.

      So, as a person who has gone in and mucked around in my layer storage, I'd like to diagnose what I've done to my system by running "buildah ... check". I'd like to run a similar command with "repair" as the verb instead of "check" that will actually make changes to try to clear up detected problems I'd like both of these to be available in a way that somehow doesn't feel out of place in buildah's CLI, despite its not having a grab bag top-level command like podman's "system".

      Ideally, a pull request that exposes this functionality would include tests that mimic some of the tests that accompany the functionality in the storage library's repository: pulling images and creating working containers, intentionally introducing errors into their storage, verifying first that the newly-introduced errors can be detected, and then verifying that after repair, the errors are no longer detected.

              Unassigned Unassigned
              rhn-engineering-nalin Nalin Dahyabhai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: