-
Notifications
You must be signed in to change notification settings - Fork 240
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
multus: add multus manifests #53
Conversation
zshi-redhat
commented
Jan 7, 2019
•
edited
Loading
edited
- add manifests for multus-cni, sriov-cni, sriov-device-plugin
- add Namespace and Annotations fields in AdditionalNetworkDefinition structure to enable creation of namespace isolated and annotated Custom Resource (annotated CR is used to pass SR-IOV resource annotation to multus).
- add multusNodeConfig function to generate content of Multus CNI configMap: 70-multus.conf
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zshi-redhat If they are not already assigned, you can assign the PR to them by writing 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 |
/assign @squeed Hi Casey, this is a follow up PR to add multus related manifests, please help to review, Thanks! @s1061123 @dougbtv please help to review if multus manifests are correct, I copied them from downstream repo and did a little modification to fit with openshift. With current PR, I occasionally saw a problem when the operator applys CR of net-attach-def Kind:
And this is the yaml file I used to created NetworkConfig custom resource:
do you see what might be the problem? |
099fe0b
to
c827279
Compare
updated code gen and verified code style. |
The CI test failure doesn't seem to be related with network operator, re-run the tests: |
c827279
to
ae8945e
Compare
@zshi-redhat: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
It looks like that CRD and associated CR cannot be created in a single run, if I restart the operator, the net-attach-def CR can be successfully created (since the net-attach-def CRD is already created before restarting operator). It might imply that we need to apply CRD and CR separately in different context. It doesn't seem that operator supports it now. |
@squeed @zshi-redhat so the branch I'm working on for Multus support takes a lighter weight approach, see here: #54 . I think that we should keep the Multus stuff separate and not logically combine it with AdditionalNetworks or the SRIOV plugin. SRIOV can be a separate PR that does actually inspect AdditionalNetworks for SRIOV-enabled ones and then renders the DevicePlugin and associated RBAC/Namespace. But that's logically separate from Multus configuration, and the Multus config can be very simple (eg we don't need to specify Delegates since everything except the default network should be handled by AdditionalNetworks). Thoughts? |
+1 to keep Multus config separate from SR-IOV and additionalNetworks.
I remember Multus now supports config default network with net-attach-def CR, in which case it may re-use the additional Network CR template to render the default network during Multus configuration, this may requires additional network be configured to provide default network CR.
|
@zshi-redhat: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Should we close this one and do separate follow-ups for any parts that aren't already there? |
Yes, this should be closed. Thanks for the reminding! |