Uploaded image for project: 'OpenShift Runtimes'
  1. OpenShift Runtimes
  2. RUN-1848

Expose storage Check()/Repair() via `podman system`

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • podman
    • RUN 252, RUN 253, RUN 254

      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 "podman system check", "podman system storage check", or something similar. I'd like to run similar commands 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 doesn't feel out of place in podman's CLI.

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

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

              Created:
              Updated: