nmstate / kubernetes-nmstate

Declarative node network configuration driven through Kubernetes API.
GNU General Public License v2.0
178 stars 89 forks source link

Failed to modify existing bridge with different ports. remove a port and add a new one #727

Open nabbas-ca opened 3 years ago

nabbas-ca commented 3 years ago

What happened: I'm trying to update the network configuration of IPI install of openshift on baremetal. I have 2 ports, that I would like to bond, however, at installation time I can only configure provisioning network on one and baremetal network on the other, according to this doc https://openshift-kni.github.io/baremetal-deploy/4.6/Deployment.html .

I created a policy, where i add a bond interface, enslaving the 2 ports (ens1f0np0 and ens1f1np1) , created a vlan interface on top of the bond, and updated the bridge br-ex to use the newly created bond as its port. I put the policy below in the questions section.

What you expected to happen: I expect that the bond0, bond0.4091 will be created and the bridge will be updated to use the bond0 as its port.

How to reproduce it (as minimally and precisely as possible): 1- Install openshift on baremetal nodes, with 2 network ports, 1 with provisioning network, 1 with baremetal network 2- create and apply policy below

Anything else we need to know?: I understand that the ipv4 will be unreachable after the configuration change. I plan to update the switch connected to reflect the change after.

If there is a better way to do what I'm trying to do, I'm all ears. The main issue is that openshift doesn't support changing or setting the network configuration at install time. They recommend using this operator on Day2 to change the network. Error attached here nnce-ru5.txt

Environment:

qinqon commented 3 years ago

Looks like there is an issue at the NNCP yaml

AttributeError: 'bool' object has no attribute 'items'
qinqon commented 3 years ago

Also openshift is the "owner" of "br-ext" admins should not touch it, if something need to be done with that it has to be done at "day 1" using ignition or the like.

phoracek commented 3 years ago

@nabbas-ca did the comment above help you?