[ovs-discuss] ovs-vsctl:Error detected while setting up 'vn0'.Seeovs-vswitchd log for details.

Joe Stringer joestringer at nicira.com
Fri Apr 10 06:29:22 UTC 2015


If you don't specify the type of the interface when you add it to OVS,
then it attempts to use a system interface. It looks like 'vn0'
doesn't exist on your system, so OVS can't attach it to the bridge.
Try either creating the device first (eg using 'ip' tools) or
specifying a different port type to add (eg internal, gre, vxlan,
etc). There are plenty of examples of adding different port types
around the internet (and a few in the FAQ, too).

On 9 April 2015 at 20:33, 吴超标 <745460565 at qq.com> wrote:
> hi Joe & justin
> thanks for your help.
>
> i created two commands
> #ovs-vsctl add-br br0
> #ovs-vsctl add-port br0 vn0
> and the ovs-log is here
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
> 2015-04-10T02:38:32.193Z|00001|vlog|INFO|opened log file
> /usr/local/var/log/openvswitch/ovs-vswitchd.log
> 2015-04-10T02:38:32.194Z|00002|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
> connecting...
> 2015-04-10T02:38:32.195Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
> connected
> 2015-04-10T02:38:32.195Z|00004|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.3.1
> 2015-04-10T02:40:24.354Z|00005|memory|INFO|1504 kB peak resident set size
> after 112.2 seconds
> 2015-04-10T02:40:24.355Z|00006|dpif|WARN|system at ovs-system: failed to
> put[create] (Invalid argument)
> skb_priority(0),skb_mark(0),recirc_id(0x1),dp_hash(0x1),in_port(0),eth(src=00:00:00:00:00:00,dst=00:00:00:00:00:00)
> 2015-04-10T02:40:24.355Z|00007|ofproto_dpif|INFO|system at ovs-system: Datapath
> does not support recirculation
> 2015-04-10T02:40:24.355Z|00008|dpif|WARN|system at ovs-system: execute
> userspace(pid=0,userdata(00000000)) failed (Numerical result out of range)
> on packet
> metadata=0,in_port=0,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,dl_type=0x1234
> 2015-04-10T02:40:24.355Z|00009|ofproto_dpif|WARN|system at ovs-system: datapath
> does not support variable-length userdata feature (needs Linux 3.10+ or
> kernel module from OVS 1..11+).  The NXAST_SAMPLE action will be ignored.
> 2015-04-10T02:40:24.355Z|00010|dpif|WARN|system at ovs-system: failed to
> put[create] (Invalid argument)
> skb_priority(0),skb_mark(0),in_port(0),eth(src=00:00:00:00:00:00,dst=00:00:00:00:00:00),eth_type(0x8847),mpls(label=0,tc=0,ttl=0,bos=1)
> 2015-04-10T02:40:24.355Z|00011|ofproto_dpif|INFO|system at ovs-system: MPLS
> label stack length probed as 0
> 2015-04-10T02:40:24.359Z|00012|bridge|INFO|bridge br0: added interface br0
> on port 65534
> 2015-04-10T02:40:24.360Z|00013|bridge|INFO|bridge br0: using datapath ID
> 0000d6f3df37754c
> 2015-04-10T02:40:24.360Z|00014|connmgr|INFO|br0: added service controller
> "punix:/usr/local/var/run/openvswitch/br0.mgmt"
> 2015-04-10T02:40:52.290Z|00015|bridge|WARN|could not open network device vn0
> (No such device)‍
> -------------------------------------------------------------------------------------------------------------------------------------------------------
> the last  sentence says "could not open network device vn0 (No such
> device)‍", i dont know what it means.
>
> I have resintalled my ubuntu system three times (13.10, 12.04.5 ,12.04.2),
> and reinstalled ovs N times.
> is there a  possible that my installation has problems?
> my installation process is following (I tried two methods)
> -----------------Method one----------------
> 1. wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz‍
> 2. tar -xzf openvswitch-2.3.1.tar.gz‍
> 3. cd openvswitch-2.3.0‍
> 4. ./configure --with-linux=/lib/modules/`uname -r`/build‍
> 5. make && make install‍
> 6. make modules_install‍
> 7. /sbin/modprobe openvswitch‍
> 8. mkdir -p /usr/local/etc/openvswitch‍
> 9.ovsdb-tool create /usr/local/etc/openvswitch/conf.db
> vswitchd/vswitch.ovsschema‍
> ---------------------------------------------------
> ------------------Method two----------------
> 1. wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
> 2. tar -xzf openvswitch-2.3.1.tar.gz
> 3. cd openvswitch-2.3.0
> 4. ./configure --with-linux=/lib/modules/`uname -r`/build
> 5. make && make install
> 6. insmod datapath/linux/openvswitch.ko‍
> 7. make modules_install
> 8. /sbin/modprobe openvswitch
> 9. mkdir -p /usr/local/etc/openvswitch
> 10.ovsdb-tool create /usr/local/etc/openvswitch/conf.db
> vswitchd/vswitch.ovsschema
>> ------------------------------------------------------
> But in Method two, the sixth step "insmod datapath/linux/openvswitch.ko‍" ,I
> got an error,something like " openvswitch.ko no mudles ", then i use two
> commands  "modprobe gre ,modporbe libcrc32c", the sixth step pass.
>
> is there any step i miss? what happened in the end.......>_<
>
> thanks & gratitude
> bush
> ------------------ 原始邮件 ------------------
> 发件人: "Joe Stringer";<joestringer at nicira.com>;
> 发送时间: 2015年4月10日(星期五) 凌晨0:54
> 收件人: "吴超标"<745460565 at qq.com>;
> 主题: Re: [ovs-discuss] ovs-vsctl:Error detected while setting up
> 'vn0'.Seeovs-vswitchd log for details.
>
> Did you see the ovs-vswitchd log for details?
>
> (Probably somewhere like /var/run/openvswitch/ovs-vswitchd.log)
>
> On 9 Apr 2015 00:42, "吴超标" <745460565 at qq.com> wrote:
>>
>> hi dear all.
>> when i use this command----- ovs-vsctl add-port br0 vn0
>> an error occurred.
>> -------ovs-vsctl:Error detected while setting up 'vn0'.See ovs-vswitchd
>> log for details.
>> i dont know why. my ovs version is 2.3.1, and my ubuntu version is 12.4.5
>>
>> Thanks
>> bush
>>
>>
>>
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>
>



More information about the discuss mailing list