Skip to content

update image error messages#1858

Merged
stevvooe merged 1 commit intocontainerd:masterfrom
jessvalarezo:images-errors
Dec 1, 2017
Merged

update image error messages#1858
stevvooe merged 1 commit intocontainerd:masterfrom
jessvalarezo:images-errors

Conversation

@jessvalarezo
Copy link
Copy Markdown
Contributor

@jessvalarezo jessvalarezo commented Dec 1, 2017

#1855 shows an unclear error message

unpacking sha256:375718bf305a6e1a4a3e7014958ec5ea5ca52537f00dc70cde71be078fbbd64c...
ctr: : manifest not found: not found

becomes

unpacking sha256:375718bf305a6e1a4a3e7014958ec5ea5ca52537f00dc70cde71be078fbbd64c...
ctr: : manifest sha256:375718bf305a6e1a4a3e7014958ec5ea5ca52537f00dc70cde71be078fbbd64c: not found

Signed-off-by: Jess Valarezo [email protected]

Signed-off-by: Jess Valarezo <[email protected]>
@stevvooe
Copy link
Copy Markdown
Member

stevvooe commented Dec 1, 2017

Looks like there is some extra stuff in ctr: : manifest.

@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Dec 1, 2017

LGTM

Comment thread images/image.go

}
return nil, errors.Wrap(errdefs.ErrNotFound, "could not resolve manifest")
return nil, errors.Wrapf(errdefs.ErrNotFound, "could not resolve manifest %v", desc.Digest)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this case something like "unexpected media type %s for %s", desc.MediaType, desc.Digest ?

I'm not sure why this is "not found"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class of error is that the manifest is not found. It could not be found because it was unresolvable.

Copy link
Copy Markdown
Member

@dmcgowan dmcgowan Dec 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not found is the correct class, but we could add the media type here to make it clearer why the resolution couldn't happen

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, take care of this in a follow up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1861

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1858 into master will increase coverage by 4.93%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1858      +/-   ##
==========================================
+ Coverage   44.25%   49.18%   +4.93%     
==========================================
  Files          67       86      +19     
  Lines        7105     8244    +1139     
==========================================
+ Hits         3144     4055     +911     
- Misses       3468     3519      +51     
- Partials      493      670     +177
Flag Coverage Δ
#linux 52.6% <ø> (?)
#windows 44.25% <ø> (ø) ⬆️
Impacted Files Coverage Δ
oci/spec_unix.go 98.37% <0%> (ø)
fs/diff_unix.go 56.52% <0%> (ø)
archive/time_unix.go 71.42% <0%> (ø)
oci/spec.go 50% <0%> (ø)
fs/hardlink_unix.go 60% <0%> (ø)
fs/dtype_linux.go 50% <0%> (ø)
mount/mount.go 0% <0%> (ø)
archive/tar_unix.go 50.81% <0%> (ø)
fs/du_unix.go 0% <0%> (ø)
mount/mount_linux.go 0% <0%> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6df9f6...2b15951. Read the comment docs.

@stevvooe
Copy link
Copy Markdown
Member

stevvooe commented Dec 1, 2017

LGTM

@jessvalarezo Looks like the stuff in #1858 (comment) was already there, so let's handle it in another PR.

@stevvooe stevvooe merged commit 271836a into containerd:master Dec 1, 2017
@jessvalarezo jessvalarezo deleted the images-errors branch December 1, 2017 23:56
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.

5 participants