-
Notifications
You must be signed in to change notification settings - Fork 292
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
Regression in v0.30.0-pre3 ? #1850
Comments
I get the error you mentioned on both v0.30.0-pre3 and v0.30.0-pre2 I used this branch pack report
|
@mhdawson @pacostas thanks for this - I only see a README.md in that repo. Are you perhaps working off a different version? I do see that the default lifecycle version from |
About the repository: is this one |
@pacostas thanks for the tip! From this branch, I see the lifecycle version in use is
Does the smoke script ensure that the builder image is saved to a registry? This is needed in order to generate the manifest required for extension with kaniko (previous versions of pack and the lifecycle had bugs that resulted in silent failure to pull the builder image manifest). When I'm testing locally I always push the builder to a I should note, if your extensions perform run image switching (only, without extension) there is a bug in lifecycle |
Thanks for the updates, will take a closer look at it using `0.17.0rc.3' |
So updated to `0.17.0rc.3' and I pushed the builder to my local docker repostory and get a different error. I'm still a bit confused how it was working before, maybe the pull of the builder image meta data is new since the older version it worked with? The new error seems to indicate it is still looking in the docker registry even though we are trying to test a local version.
|
We do that, so likely affected but don't think it looks like we get that far. |
I see that explains why things worked before. |
This is true. I'm actually surprised the build got as far as it did, because the pack client should enforce Line 460 in 02e0139
|
I did some digging and I think I understand why the build did not fail earlier - When extending an image (either the builder image or the run image) we must be able to pull the remote image, because we need to provide the manifest to kaniko. For the builder image, you could spin up a local registry like we recommend in the extension docs. For the run image, if you are NOT extending it (only switching to a new image) we are currently still requiring the remote image to be available, but I think this is a mistake - we don't need a manifest for kaniko, and only need to read "target" data (image config values) for which a daemon image would work just fine. I can make this change in the lifecycle and pack. This would avoid needing to push the run image to the local registry. |
@mhdawson I managed to get the smoke tests passing again with a dev lifecycle and a dev pack... basically I commented out the stuff that installs pack and I tagged over
I needed to add |
@natalieparellano thanks for getting that to work. Just to confirm, the only changes that will be required once we have a version of pack with the newer lifecycle will be the change in nodejs_test.go on line 61 and then those changes in scripts/smoke.sh? If so that is good news and I'll queue up a PR that we can land once there is a newer pack. Once I'm back from holiday (I'm out from Aug 7 through 11) I'll look at how to apply something similar to the integration testing for the extension (versus the builder) which uses occam. My guess is we might need some updates to occam to optionally use a registry to build/run images. @pacostas if you have some cycles before I'm back this might be something you can look at as well. |
Hi @mhdawson. Could you be able to test your set up with the new version of lifecycle 0.17.0 and the new pack's release candidate 0.30.0-rc2? Will be great if you can confirm that everything works as expected with these versions or if there is still something to be fix it on pack side. |
@jjbustamante thanks, just back from holidays last week. Will try to test it out early this week. |
@jjbustamante I checked it out and it seems to work ok. The PR to update the builder-ubi-base to use the newer lifecycle and pack versions is in paketo-community/builder-ubi-base#11. Let me know if there was anything else I should have updated/tested. |
@mhdawson sweet! Thanks for testing this out, I think we are ok. We can leave this issue open until pack 0.30.0 is released (hopefully by the end of this week or the next one), after that, you can update your paketo PR to use the final pack version and then I will close this ticket! Thanks a lot!! |
@jjbustamante thanks for your help :) |
Closing, pack 0.30.0 was released! |
Summary
Running the smoke test for the ubi-builder-base which uses the ubi-ndoejs-extension that we have been working on works with v0.30.0-pre2 but not with v0.30.0-pre3.
The error seems to be:
Reproduction
Steps
Current behavior
Fails with the error shown above.
Expected behavior
container builds and smoke tests passes
Environment
pack info
docker info
The text was updated successfully, but these errors were encountered: