alpine-cloud-init: Add udhcpc6 script for IPv6 DHCP #1856
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
/test check-provision-k8s-1.37
I get that this is a shim script to make a test image work, but is there a better basepath for a logfile? As is, it looks like debugging cruft.
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubevirt/kubevirtci/pull/1856#issuecomment-5898973023" title="Approved">stu-gott</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
/hold
Temporarily until I thoroughly test it and make sure it doesn't cause any regression
~~Image tested successfully in https://github.com/kubevirt/kubevirt/pull/19357~~
Image tested successfully in https://github.com/kubevirt/kubevirt/pull/19357, following last push .
/cc @orelmisan @EdDev need your ack on this.
This PR adds a DHCP6 request to Alpine. It is non-blocking and fails silently if the server does not respond.
It is required for https://github.com/kubevirt/kubevirt/pull/17878, which currently mitigates this issue by running a Fedora guest instead of Alpine.
I am missing some context here to properly evaluate this.
Why the default behavior of Alpine is not sufficient?
How many tests are effected by the current limitation?
As the cost is to maintain yet another piece of code/script, what alternatives have been considered?
I am missing some context here to properly evaluate this. Why the default behavior of Alpine is not sufficient? How many tests are effected by the current limitation? As the cost is to maintain yet another piece of code/script, what alternatives have been considered?
Why the default behavior of Alpine is not sufficient
It does not perform DHCP6 request
How many tests are effected by the current limitation?
I've identified one (passt UDP IPv6), there may be other false positives. Particularly in passt and masquerade.
what alternatives have been considered?
Currently https://github.com/kubevirt/kubevirt/pull/17878 has a replacement of Alpine with Fedora just for the 2 UDP tests.
Another alternative is to keep alpine but perform a DHCP6 request through the console just in that tests.
The alternative proposed in this PR was suggested in https://github.com/kubevirt/kubevirt/pull/19113#pullrequestreview-5197068534 by @akalenyu.
stu-gott
nirdothan
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Consider creating this PR as draft: https://github.com/kubevirt/kubevirt/blob/main/CONTRIBUTING.md#consider-opening-your-pull-request-as-draft
2. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
-->
What this PR does / why we need it:
Alpine's busybox udhcpc6 does not apply leases without a custom script. Install one in the test image and wire eth0 inet6 dhcp to use it so IPv6 DHCP works in guest tests.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note:
<!-- Write your release note:
1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
2. If no release note is required, just write "NONE".
-->
``
release-note
``NONE