-
Notifications
You must be signed in to change notification settings - Fork 522
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
release: mark ipv6 lease as optional for eth0 #1602
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.
I wonder if 1 second is slightly too aggressive and if something 2-5 might be a safer choice.
If the wicked client doesn't wait, the dhcp clients would still attempt to lease addresses in the background. Timing out doesn't actually cause Setting it higher would just result in more time spent waiting for dhcpv6 lease when wicked decides to wait. I guess the concern would be that services that depend on It's also not clear to me how much time is appropriate to wait for an IP under suboptimal network conditions. It's unfortunate that we can't separately specify the timeout for dhcpv4 and dhcpv6. I'll go ahead and set the timeout to 5 seconds then. (5000 milliseconds sound like more than enough time for dhcpv4 to get an address). |
f839153
to
6d5f298
Compare
Push above changes the timeout value from 1 seconds to 5 seconds. Updated PR description to reflect changes. |
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.
nice fix
This marks the DHCPv6 as optional in the network interface configuration file for eth0. When wicked reads the network interface configuration, it knows not to wait for an ipv6 address lease. Wicked no longer waits the full 30 seconds for an ipv6 address lease when there is no ipv6 support.
Push above changes the approach. @bcressey found a better way of making wicked skip waiting on an ipv6 address lease. Updated PR description to reflect changes. |
Issue number:
Fixes #1351
Description of changes:
Testing done:
Launched 10 instances in an subnet without ipv6 address assignment, all of them get initialized much quicker than before. Wicked no longer waits the full 30 seconds for an ipv6 address assignment.
Then I enabled IPv6 address assignment for a subnet and launched an instance into it, wicked comes up fine, the host gets both an ipv4 address and ipv6 address without problem:
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.