-
Notifications
You must be signed in to change notification settings - Fork 521
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
fix build-kmod-kit build failure #1357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth updating the commit message to have a bit more data. For reference, some hosts might have the net.ipv4.ip_forward
sysctl set to 0
, but we still want those hosts to be able to build Bottlerocket.
Given that the image in question is the SDK image, the script isn't doing anything funky, and we're running inside the container as non-root this looks fine to me.
Sure, Would update the commit message. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good when CI passes.
Added description to commit message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please add a commit that updates the changelog and adds this PR ID/link to the entry for kmod kits?
Some hosts might have the net.ipv4.ip_forward sysctl set to 0, but we still want those hosts to be able to build Bottlerocket. We added --network=host to docker run command to fix this.
Issue number:
NA
Description of changes:
The build was failing on the
build-kmod-kit
task on one host with the following errorWARNING: IPv4 forwarding is disabled. Networking will not work. curl: (6) Could not resolve host: cache.bottlerocket.aws
Added a fix
--network=host
to the build-kmod-kit task'sdocker run
command and it worked..Testing done:
cargo make build-kmod-kit
workedTerms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.