spiegel_podman/libpod/image
Valentin Rothberg 6140369208 make layer-tree lookup errors non-fatal
Internally, Podman constructs a tree of layers in containers/storage to
quickly compute relations among layers and hence images.  To compute the
tree, we intersect all local layers with all local images.  So far,
lookup errors have been fatal which has turned out to be a mistake since
it seems fairly easy to cause storage corruptions, for instance, when
killing builds.  In that case, a (partial) image may list a layer which
does not exist (anymore).  Since the errors were fatal, there was no
easy way to clean up and many commands were erroring out.

To improve usability, turn the fatal errors into warnings that guide the
user into resolving the issue.  In this case, a `podman system reset`
may be the approriate way for now.

[NO TESTS NEEDED] because I have no reliable way to force it.

[1] https://github.com/containers/podman/issues/8148#issuecomment-778253474

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-02-12 19:31:58 +01:00
..
testdata Split refNamesFromImageReference from Runtime.getPullListFromRef 2018-08-01 18:22:58 +00:00
config.go honor pull policy in play kube 2020-01-28 13:36:10 -06:00
df.go Spelling 2020-12-22 13:34:31 -05:00
docker_registry_options.go BlobInfoCacheDir is set incorrectly when copying images 2020-10-08 16:22:55 -04:00
errors.go Ensure libpod/define does not include libpod/image 2020-07-31 17:17:56 -04:00
filters.go Convert Split() calls with an equal sign to SplitN() 2020-10-13 19:30:08 -04:00
image.go Merge pull request #8950 from mheon/exorcise_driver 2021-01-12 14:02:32 -05:00
image_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
layer_tree.go make layer-tree lookup errors non-fatal 2021-02-12 19:31:58 +01:00
manifests.go Not use local image create/add manifest 2020-11-24 15:54:41 -05:00
parts.go Spelling 2020-12-22 13:34:31 -05:00
parts_test.go Remove imageParts.{isTagged,registry,name,tag} 2019-01-14 04:07:24 +01:00
prune.go Fix problems reported by staticcheck 2021-01-12 16:11:09 +01:00
pull.go Fix problems reported by staticcheck 2021-01-12 16:11:09 +01:00
pull_test.go short-name aliasing 2020-11-13 15:40:06 +01:00
search.go Spelling 2020-12-22 13:34:31 -05:00
signing_options.go Stage3 Image Library 2018-03-14 20:21:31 +00:00
tree.go Refactor image tree for API usage 2020-02-17 11:12:35 +01:00
utils.go Allow image errors to bubble up from lower level functions. 2021-01-04 10:51:54 -05:00