kimchi-project / ginger

WoK plugin for host management
Other
66 stars 41 forks source link

Error while attaching interface to a ovs bridge and deleting the bridge #542

Open alinefm opened 7 years ago

alinefm commented 7 years ago

Error while adding interface to the Ovs bridge.

====== Issue

I could able to create a Ovs bridge without any issue,

1 . Tried adding an interface to that bridge - UI displays an ERROR "The server encountered an unexpected condition which prevented it from fulfilling the request".

but, I can see the interface is been added to the bridge via command line :

[root@c158f2u07os ~]# ovs-vsctl show 40528c79-a4a5-4108-b102-e8393e2e3931 Bridge "Ovsbr00" Port "Ovsbr00" Interface "Ovsbr00" type: internal Port "enP3p9s0f3" Interface "enP3p9s0f3" ovs_version: "2.5.0" [root@c158f2u07os ~]#

  1. Now I tried Removing the Ovs bridge, again it says "The server encountered an unexpected condition which prevented it from fulfilling the request." and the bridge is seen on the UI.

But If I either refresh the UI page or switch to other tab and come back to network tab - the bridge is not seen!

And again, I still see the bridge with the interface added is seen in command line : [root@c158f2u07os ~]# ovs-vsctl show 40528c79-a4a5-4108-b102-e8393e2e3931 Bridge "Ovsbr00" Port "Ovsbr00" Interface "Ovsbr00" type: internal Port "enP3p9s0f3" Interface "enP3p9s0f3" ovs_version: "2.5.0" [root@c158f2u07os ~]#

================== Steps to recreate

  1. Navigate to 'Host->Network' frame.
  2. Click on 'OVS Bridges->Add Bridge', give a name to the bridge you want to create and click on Add.

you can see the Ovs bridge is created.

  1. Now click on 'Actions->Edit Bridge' against the bridge you have created.
  2. Click on 'Add Interface' and select an interface from the drop down list, save it

UI says "The server encountered an unexpected condition which prevented it from fulfilling the request."

But you can see the interface added via command line using "ovs-vsctl show".

  1. Now you try removing the bridge by clicking 'Actions->Remove Bridge->OK' - UI says "The server encountered an unexpected condition which prevented it from fulfilling the request."

After refreshing the UI page or switch to some other tabs and come back to Network tab, the Ovs bridge created will not be seen.

But again via command line(ovs-vsctl show), we can see the bridge still exists.