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

fix build-kmod-kit build failure #1357

Merged
merged 2 commits into from
Feb 26, 2021
Merged

Conversation

sanu11
Copy link
Contributor

@sanu11 sanu11 commented Feb 26, 2021

Issue number:
NA

Description of changes:
The build was failing on the build-kmod-kit task on one host with the following error

WARNING: 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's docker run command and it worked..

Testing done:
cargo make build-kmod-kit worked

Terms 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.

Copy link
Contributor

@samuelkarp samuelkarp left a 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.

@sanu11
Copy link
Contributor Author

sanu11 commented Feb 26, 2021

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!

Copy link
Contributor

@webern webern left a 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.

@sanu11
Copy link
Contributor Author

sanu11 commented Feb 26, 2021

@sanu11 sanu11 force-pushed the sanu11:develop branch from 113e44a to 24c31df now

Added description to commit message

Copy link
Contributor

@tjkirch tjkirch left a 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.
@sanu11
Copy link
Contributor Author

sanu11 commented Feb 26, 2021

@sanu11 sanu11 force-pushed the sanu11:develop branch from 6fd0845 to 2c188c0
Resolved conflicts, pulled with rebase.

@sanu11 sanu11 merged commit fb2d161 into bottlerocket-os:develop Feb 26, 2021
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