-
Notifications
You must be signed in to change notification settings - Fork 6
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
UDN: Use managedTap instead passt #73
Conversation
3b8c3e1
to
03d7144
Compare
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.
/lgtm
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.
How can this work ?
Where do we register the bindings ?
Why are you dropping cloud init ?
we register the binding on OVN k8s repo, that we use in this repo [1] https://gist.github.com/RamLavi/91a25858a56f87e47039ceef99df662b |
Please add this info to the commit message.
|
test/e2e/persistentips_test.go
Outdated
version: 2 | ||
ethernets: | ||
eth0: | ||
dhcp4: true` | ||
) |
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.
for managedTap we need to activate dhcpv4 and dhcpv6.
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.
aint kubevirt assign ipv4 by default ?
VM does get ipv4, and this what i remember for the past, wdyt ?
ipv6 we don't test on git actions, (also on OVN CI we dont have the cluster with ipv6, because git actions doesnt support it), do we still want to add it ?
EDIT - hmm this one does have .github/workflows/test.yml: KIND_IPV6_SUPPORT: "${{ matrix.ipfamily == 'IPv6' || matrix.ipfamily == 'dualstack' }}"
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.
wait. This depends on the cluster's configuration.
We need to introspect the cluster, figure out which IP families are enabled, and configure this accordingly.
OR we can hard-code it to support whatever it is we're deploying by default in the e2e tests, but make a real good note about it, then open an issue to introspect in a follow-up PR.
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.
aint kubevirt assign ipv4 by default ? VM does get ipv4, and this what i remember for the past, wdyt ?
ipv6 we don't test on git actions, (also on OVN CI we dont have the cluster with ipv6, because git actions doesnt support it), do we still want to add it ? EDIT - hmm this one does have
.github/workflows/test.yml: KIND_IPV6_SUPPORT: "${{ matrix.ipfamily == 'IPv6' || matrix.ipfamily == 'dualstack' }}"
That's not true, we run dual stack at ovn-k, and is ovn-k the one handling IPs.
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.
best imo the 2nd option, have it on a follow-up
will allow me to concentrate on the other tasks first as well
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.
wait. This depends on the cluster's configuration. We need to introspect the cluster, figure out which IP families are enabled, and configure this accordingly.
OR we can hard-code it to support whatever it is we're deploying by default in the e2e tests, but make a real good note about it, then open an issue to introspect in a follow-up PR.
We just acivate dhcp for both and that's all, if cluster is just ipv4 we will not have an ipv6 address.
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 dont think we should add code that might not have an effect, better to have a task to investigate as Miguel said, what cluster we run here and only then add whatever config that is needed
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.
btw does ipv6 is tested on OVN repo ? also something that worth checking
Once we have agreement on the direction i will do that, personally i prefer the one that doesnt have unused code and to open issue that is focused and changed whatever needed on all repos.
We can first finish the IPv4 flow on all the repos and then add the IPv6 tests according needs (and according what cluster we have).
Atm we are running IPv4 cluster on this repo.
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.
btw does ipv6 is tested on OVN repo ?
It surely is in some lanes. It's a configuration knob.
Atm we are running IPv4 cluster on this repo.
So we'll need to change that. That means we're testing half the feature.
Sure, for now, you can move forward with ipv4 (since it appears it's the only thing we support).
But ensure you open a ticket to add IPv6 support to this repo.
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 surely is in some lanes. It's a configuration knob.
ye i meant if it is tested for managedTap itself on OVN
np will open Jira ticket (done)
thanks
test/e2e/persistentips_test.go
Outdated
@@ -402,6 +395,5 @@ ethernets: | |||
Pod: &kubevirtv1.PodNetwork{}, | |||
}, | |||
}), | |||
testenv.WithCloudInitNoCloudVolume(cloudInitNetworkData), |
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.
we still need cloudInit for managedTap.
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.
Can you please see #73 (comment) ?
according Miguel and from what i know we don't need it when using just IPv4
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.
if you'll need to template it according to the ip families, it'll probably be better to always include it.
It's also more explicit.
But I don't care much; at least for fedora, I know it'll default to ipv4 using dhcp.
Your call.
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.
ok will return it, thx
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.
done
once we merge the new binding name on HCO, need to adapt it on OVN and here |
we need ovn-kubernetes/ovn-kubernetes#4854 |
Updated the PR description (will update commit message as well once we converge) |
from quick check, all is done now |
/lgtm |
@RamLavi EDIT |
/hold it will fail or to revert here back to the name note that HCO uses |
we patch replace managedTap after clonning ovn-kubernetes, is dirty but that will unblock this. |
i dont like it, it will require fix later anyhow, |
just rebased |
just rebased |
Signed-off-by: Or Shoval <[email protected]>
updated name to managedTap until OVN adapt it to l2bridge /hold cancel |
Let's get this in today, and adapt once ovn-k deploys l2bridge via ovn-kubernetes/ovn-kubernetes#4854 /lgtm @qinqon any objection ? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qinqon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @RamLavi maybe just bump + kubevirt/cluster-network-addons-operator#1919 is needed |
since a tag was already created yesterday without this PR, and this one is needed i created a new one |
What this PR does / why we need it:
Use
managedTap
binding insteadPasst
for primary UDN.It is registered as part of OVN kind.sh that we use in this repo to spin the cluster.
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:
Currently only IPv4 is supported.
A follow-up will add IPv6 support, by adding it to cloud-init, and deploying a dual stack cluster.
Once OVN use
l2bridge
naming we will adapt as well.Release note: