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

WIP: Primary udn integration #59

Closed
wants to merge 1 commit into from

Conversation

maiqueb
Copy link
Collaborator

@maiqueb maiqueb commented Aug 26, 2024

What this PR does / why we need it:
This PR instructs OVN-K of the IPAMClaim name to be used for the primary UDN feature.

We could have hard-coded instead the name, but then, we would need to understand which workload really wants persistent IPs on OVN-K - i.e. it would have to identify if it is allocating for a VM or a pod.

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:
WIP. PLEASE DO NOT merge.

Release note:

Integrate with the primary user defined network OVN-Kubernetes feature.

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Aug 26, 2024
@maiqueb maiqueb requested review from qinqon and oshoval and removed request for qinqon August 26, 2024 15:03
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from maiqueb. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

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

@oshoval
Copy link
Collaborator

oshoval commented Aug 26, 2024

to review it or it is wip ?
confused

@maiqueb
Copy link
Collaborator Author

maiqueb commented Aug 26, 2024

to review it or it is wip ? confused

WIP

@maiqueb maiqueb force-pushed the primary-udn-integration branch 4 times, most recently from 0254a3b to 303e01f Compare August 27, 2024 14:38
@maiqueb maiqueb force-pushed the primary-udn-integration branch from 303e01f to d145131 Compare August 28, 2024 07:50
Copy link
Collaborator

@qinqon qinqon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass, normalize ipam claim key generation.

return controllerruntime.Result{}, err
}
if primaryUDN != nil {
claimKey := fmt.Sprintf("%s.%s-primary-udn", vmi.Name, primaryUDN.Name)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should normalize the key to follow k8s naming conventions, I have see errors like the following when the network name at the NAD has unexpected chars.

 Retry add failed for *v1.Pod kv-live-migration-8805/virt-launcher-worker1-987pq, will try again later: failed to update pod kv-live-migration-8805/virt-launcher-worker1-987pq: error retrieving IPAMClaim for pod kv-live-migration-8805/virt-launcher-worker1-987pq: failed to get IPAMClaim "worker1.jv45k_net1-primary-udn": ipamclaim.k8s.cni.cncf.io "worker1.jv45k_net1-primary-udn" not found

@maiqueb
Copy link
Collaborator Author

maiqueb commented Sep 2, 2024

Abandoned in-lieu of #36 .

Didn't notice that PR existed, sorry about that.

@maiqueb maiqueb closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants