Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message when the run-image is not readable #436

Open
ekcasey opened this issue Oct 12, 2020 · 1 comment
Open

Misleading error message when the run-image is not readable #436

ekcasey opened this issue Oct 12, 2020 · 1 comment
Labels
status/blocked type/bug Something isn't working

Comments

@ekcasey
Copy link
Member

ekcasey commented Oct 12, 2020

Summary

When the lifecycle does not have the credentials needed to pull the run-image it prints a misleading error message claiming that the as-yet-to-be-created app-image has no layers:

failed to export: get run image top layer SHA: image <app-image-tag> has no layers

Reproduction

Steps
  1. Push a <run-image> to a private registry
  2. pack build with the --run-image <run-image> flag pointing to the private run image.
  3. Observe the misleading error message.
Current behavior

Error message looks like:

failed to export: get run image top layer SHA: image <app-image-tag> has no layers
Expected

Something useful like:

failed to export: unable to read run-image '<run-image>': unauthorized

Context

lifecycle version

0.9.1

Warning This will likely require some (overdue) redesign of the imgutil library interface.

@ekcasey ekcasey added this to the lifecycle-0.10.0 milestone Oct 16, 2020
@ekcasey ekcasey removed this from the lifecycle-0.10.0 milestone Dec 10, 2020
@natalieparellano
Copy link
Member

Blocking this on imgutil refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/blocked type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants