New Question
1

Error when add bridge and port (OvSwitch on Hyper-v 2012)

asked 2015-08-28 18:24:59 +0200

IlyaSA gravatar image

Hi! I've used two instructions from your side - http://www.cloudbase.it/open-vswitch-... and http://wiki.cloudbase.it/ovs-hyperv-a... but when I added bridge (or port) I received error like - Error detected while setting up 'external'. See ovs-vswitchd log for details First of all, there are no ovs-vswitchd log-file on the system. I can see ovs-vswitchd errors only if I start ovs-vswitchd in command line, or add '--log-file' option. As a result, ovs on hyperv doesn't work - in my case the instance can't receive IP-address and so on. I'm not sure where to attach logs, so here it is - From windows -

PS C:\Users\Administrator> Get-VMSwitchExtension hypervsw

Id : EA24CD6C-D17A-4348-9190-09F0D5BE83DD Name : Microsoft NDIS Capture Vendor : Microsoft Version : 6.2.9200.16384 ExtensionType : Monitoring ParentExtensionId : ParentExtensionName : SwitchId : 394F7713-5B48-419A-A990-743BF32C8F38 SwitchName : hypervsw Enabled : False Running : False ComputerName : WINDOWS-HV1 IsDeleted : False

Id : E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A Name : Microsoft Windows Filtering Platform Vendor : Microsoft Version : 6.2.9200.17218 ExtensionType : Filter ParentExtensionId : ParentExtensionName : SwitchId : 394F7713-5B48-419A-A990-743BF32C8F38 SwitchName : hypervsw Enabled : True Running : True ComputerName : WINDOWS-HV1 IsDeleted : False

Id : 583CC151-73EC-4A6A-8B47-578297AD7623 Name : Open vSwitch Extension Vendor : Open vSwitch Version : 7.8.47.457 ExtensionType : Forwarding ParentExtensionId : ParentExtensionName : SwitchId : 394F7713-5B48-419A-A990-743BF32C8F38 SwitchName : hypervsw Enabled : True Running : False ComputerName : WINDOWS-HV1 IsDeleted : False

and ovs-vswitchd output - 2015-08-28T12:35:15.531Z|00001|vlog|INFO|opened log file C:/ProgramData/openvswitch/ovs-vswitchdMy.log 2015-08-28T12:35:15.536Z|00002|reconnect|DBG|unix:C:/ProgramData/openvswitch/db.sock: entering BACKOFF 2015-08-28T12:35:15.539Z|00003|reconnect|INFO|unix:C:/ProgramData/openvswitch/db.sock: connecting... 2015-08-28T12:35:15.541Z|00004|reconnect|DBG|unix:C:/ProgramData/openvswitch/db.sock: entering CONNECTING 2015-08-28T12:35:15.542Z|00005|reconnect|INFO|unix:C:/ProgramData/openvswitch/db.sock: connected 2015-08-28T12:35:15.545Z|00006|reconnect|DBG|unix:C:/ProgramData/openvswitch/db.sock: entering ACTIVE 2015-08-28T12:35:15.563Z|00007|jsonrpc|DBG|unix:C:/ProgramData/openvswitch/db.sock: send request, method="monitor", params=["OpenvSwitch",null,{"sFlow":{"columns":["agent","header","polling","sampling","targets"]},"SSL":{"columns":["bootstrapcacert","cacert","certificate","privatekey"]},"Port":{"columns":["bondactiveslave","bonddowndelay","bondfakeiface","bondmode","bondupdelay","fakebridge","interfaces","lacp","mac","name","otherconfig","qos","rstpstatistics","rstpstatus","statistics","status","tag","trunks","vlanmode"]},"Controller":{"columns":["connectionmode","controllerburstlimit","controllerratelimit","enableasyncmessages","inactivityprobe","isconnected","localgateway","localip","localnetmask","maxbackoff","otherconfig","role","status","target"]},"Bridge":{"columns":["controller","datapathid","datapathtype","datapathversion","failmode","floodvlans","flowtables","ipfix","mcastsnoopingenable","mirrors","name","netflow","otherconfig","ports","protocols","rstpenable","rstpstatus","sflow","status","stpenable"]},"FlowSampleCollectorSet":{"columns":["bridge","id","ipfix"]},"Queue":{"columns":["dscp","otherconfig"]},"FlowTable":{"columns":["externalids","flowlimit","groups","name","overflowpolicy","prefixes"]},"Mirror":{"columns":["name","outputport","outputvlan","selectall","selectdstport","selectsrcport","selectvlan","statistics"]},"OpenvSwitch":{"columns":["bridges","curcfg","manageroptions","nextcfg","otherconfig","ssl","statistics"]},"NetFlow":{"columns":["activetimeout","addidtointerface","engineid","enginetype","targets"]},"IPFIX":{"columns":["cacheactive ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2015-09-29 19:44:09 +0200

aserdean gravatar image

Hi IlyaSA, Sorry for the delayed response. But GRE is not currently suported by OVS 2.4.0. If you want to set up a Kilo environment you can follow the steps in the following link: http://www.cloudbase.it/open-vswitch-24-on-hyperv-part-1/.

edit flag offensive delete link more
1

answered 2015-08-29 00:09:27 +0200

aserdean gravatar image

Hi,

The reason you are getting the error is due to an outdated documentation.

Please refer to the following answer: http://ask.cloudbase.it/question/403/...

Short story instead of issuing:

ovs-vsctl.exe add-port br0 external

you should now issue:

ovs-vsctl.exe add-port br0 external.1

ovs-vsctl.exe add-port br0 internal

" In OVS for Hyper-V, we use 'external' as a special name to refer to the physical NICs connected to the Hyper-V switch. An index is added to this special name to refer to the particular physical NIC. Eg. 'external.1' refers to the first physical NIC on the Hyper-V switch.

Note: Currently, we assume that the Hyper-V switch on which OVS extension is enabled has a single physical NIC connected to it.

Interal port is the virtual adapter created on the Hyper-V switch using the 'AllowManagementOS' setting. In OVS for Hyper-V, we use a 'internal' as a special name to refer to that adapter."

edit flag offensive delete link more

Comments

Thank you it was helpful. And what about the command line 'ovs-vsctl.exe add-port br0 gre-1' I got the same error what do I have to type ? I have only 2 NICs in the compute node. The first one I called it 'external' which is the vswitch for hyper-v and it is considered as Data VM Traffic connected to the network node and the second one is considered as Management Network connected to the controller node

Rochdi gravatar imageRochdi ( 2015-09-07 17:58:07 +0200 )edit

Hello and thank you for your answer. Also I need to thank you for the latest OVS from 01.09.15.Now I can add ovs-switch and there are no errors, Also, by your instructions,I can add 'external.1' and internal ports. But I have error when trying to add 'gre-1' port. Also, new release still has problem with creation of the ovs-vswitchd log - this file doesn't exist. Can you help me again?

IlyaSA gravatar imageIlyaSA ( 2015-09-14 15:46:44 +0200 )edit

Hello again - below is the error output, when I'm trying to add port "gretun2". If I'm ignoring this error and continue the configuration of the 'gretun2' port, then when I added 'local_ip" option for the 'gretun2" port, the windows server became unavailable until it was returned to the 'last known good configuration'. 2015-09-14T15:33:23.079Z|00002|vlog|INFO|opened log file C:\ProgramData\openvswitch\1.log 2015-09-14T15:33:23.081Z|00003|reconnect|DBG|unix:C:\ProgramData\openvswitch\/db.sock: entering BACKOFF 2015-09-14T15:33:23.085Z|00004|reconnect|INFO|unix:C:\ProgramData\openvswitch\/db.sock: connecting... 2015-09-14T15:33:23.087Z|00005|reconnect|DBG|unix:C:\ProgramData\openvswitch\/db.sock: entering CONNECTING 2015-09-14T15:33:23.089Z|00006|poll_loop|DBG|wakeup due to 0-ms timeout 2015-09-14T15:33:23.090Z|00007|reconnect|INFO|unix:C:\ProgramData\openvswitch\/db.sock: connected 2015-09-14T15:33:23.092Z|00008|reconnect|DBG|unix:C:\ProgramData\openvswitch\/db.sock: entering ACTI

IlyaSA gravatar imageIlyaSA ( 2015-09-14 19:31:24 +0200 )edit

VE 2015-09-14T15:33:23.093Z|00009|jsonrpc|DBG|unix:C:\ProgramData\openvswitch\/db.sock: send request, method="get_schema", params=["Open_vSwitch"], id=0 2015-09-14T15:33:23.148Z|00010|jsonrpc|DBG|unix:C:\ProgramData\openvswitch\/db.sock: received reply, result={"cksum":"2211824403 22535","name":"Open_vSwitch","version":"7.12.1","tables":{"Controller":{"columns":{"is_connected":{"ephemeral":true,"type":"boolean"},"connection_mode":{"type":{"min":0,"key":{"type":"string","enum":["set",["in-band","out-of-band"]]}}},"local_gateway":{"type":{"min":0,"key":"string"}},"enable_async_messages":{"type":{"min":0,"key":"boolean"}},"external_ids":{"type":{"max":"unlimited","min":0,"value":"string","key":"string"}},"other_config":{"type":{"max":"unlimited","min":0,"value":"string","key":"string"}},"status":{"ephemeral":true,"type":{"max":"unlimited","min":0,"value":"string","key":"string"}},"local_netmask":{"type":{"min":0,"key":"string"}},"controller_burst_limit":{"type":{"min":0,"key":{"minInteger

IlyaSA gravatar imageIlyaSA ( 2015-09-14 19:32:54 +0200 )edit

Sorry, I don't know how to add whole error message in comments...

IlyaSA gravatar imageIlyaSA ( 2015-09-14 19:34:50 +0200 )edit
0

answered 2015-09-18 13:47:43 +0200

IlyaSA gravatar image

At the current moment OVS 2.4.0 can only crash my system. I'll be waiting for the OVS's future releases with hope

edit flag offensive delete link more

Comments

OVS 2.5 has been released some time ago. You can try it out. https://cloudbase.it/openvswitch/

Claudiu Belu gravatar imageClaudiu Belu ( 2016-11-09 19:05:21 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-08-28 18:24:59 +0200

Seen: 2,654 times

Last updated: Sep 18 '15