-
Notifications
You must be signed in to change notification settings - Fork 585
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
OpenShift-SDN failed when work as default multus cni plugin #149
Comments
Hi @flyinghawkren ! Cool, I'm excited that you want to use Multus CNI with OpenShift. There's still only preliminary work done in terms of integration of Multus CNI into OpenShift -- but still work underway there. Something I think you Might like to reference is this ansible playbook that's in my fork of OpenShift-Ansible -- https://github.com/dougbtv/openshift-ansible/tree/multus-developer-preview/playbooks/openshift-multinetwork (edit: maybe you've seen this, because your config looks quite similar!) There's a README there with information on how I've been trialing Multus with OpenShift 3.10. Possibly the most concerning thing to me is this line:
It seems like OpenShift SDN is not ready. This is something that we have a pull request open for, #98 -- that I will be implementing to detect if the OpenShift SDN is ready under OpenShift. In my particular playbook, it's designed to be run after a full deployment of OpenShift with openshift-ansible, and then it checks to see that there's.... pods that are running (a hacky work-around for now) so, a weak attempt at saying "is something happening, yet?" -- then it creates an alphabetically first config file. In the future -- it'll wait for a semaphore from the openshift node.go code (which is basically just a config file that gets placed in /etc/cni/net.d/ which then tells the kubelet "hey this node is ready"). In the short term implementation, what we'll be telling Multus to look for) Can you list the contents of the Additionally -- what version of OpenShift are you running? Thanks! |
Hi @dougbtv ! Thanks for your advice. I am running OpenShift 3.9. And before I deploy multus daemonset, I run the following commands:
And I have manually removed the files in /etc/cni/net.d/. Maybe that cause the openshift sdn config go wrong.
I have tried to copy an original 80-openshift-network.conf into |
Another supplement: I have changed the OpenShift master config in |
It might be a little bit before I can make an attempt with OpenShift 3.9. Currently, I have only made some preliminary tests in OpenShift 3.10 -- the README in the link I sent over mentions some of the limitations. Generally, what my approach has been is to:
I didn't worry about specifically removing these you had:
I located where that error is coming from, it's apparently in the cniserver.go in this ReadConfig function. My best guess is that it's being called by openshift-sdn_linux.go This may be requiring that there be a file named What I'd currently recommend if you can -- is to spin up a fresh 3.9 cluster, and attempt my steps 1-6 above. That should generally emulate what I would be trying in my own lab. We do have some work going forward regarding Multus in OpenShift, however, it targets newer versions. This shouldn't mean it's impossible in v3.9, however, I haven't specifically tried it / found the pitfalls. |
@flyinghawkren I've managed to run Multus on 3.9 without deleting the clusternetwork and hostsubnets. According to your log, it seems the openshift-sdn was not well installed. You can try to redeploy it and make sure openshift-sdn can function normally without Multus. However I suggest you try Multus on 3.10 or 3.11, where you can deploy multus with Doug's playbook. On 3.9, the deployment of Multus needs some extra steps. |
@pliurh -- do you have any docs on how you accomplished it on 3.9? (edit: +1 regarding verifying that openshift-sdn is in working order before a Multus install) |
I've created a pull request to Doug's Openshift-ansible fork, which explains the extra steps needed for Openshift 3.9. |
Obrigado pelo comentários. |
I have tried in OpenShift 3.10 and everything is OK. |
@dougbtv have you tried sending a PR to the upstream openshift-ansible repo ? i tried to look it up and couldn't find it. |
I use multus 3.1 and my multus conf is as follow:
And when I create a Pod without any network annotation, I got such errors:
Can you give me some tips? Thanks!
The text was updated successfully, but these errors were encountered: