Regular OpenvSwitch on Xenial, strange errors... Can't add a VLAN port!

Martinx - ジェームズ thiagocmartinsc at gmail.com
Sun May 15 23:45:56 UTC 2016


Awesome!

It worked and I completely forgot to thank you for your super fast reply...

Thank you!   :-D
Thiago


On 4 May 2016 at 13:26, Christian Ehrhardt <christian.ehrhardt at canonical.com
> wrote:

> Hi Thiago,
> I could reproduce, but then I don't have a tap0 just as the error says.
> And the command says add tap0 to br0.
>
> This works (to give me a tap device before adding things)
> sudo ip tuntap add dev tap5 mode tap
> sudo ovs-vsctl add-port br0 tap5 tag=101
> sudo ovs-vsctl show
> 24fc3972-b8c2-4c53-8299-e5ea77add3cf
>     Bridge "br0"
>         Port "tap5"
>             tag: 101
>             Interface "tap5"
> [...]
>
> Christian Ehrhardt
> Software Engineer, Ubuntu Server
> Canonical Ltd
>
> On Wed, May 4, 2016 at 12:02 PM, Martinx - ジェームズ <
> thiagocmartinsc at gmail.com> wrote:
>
>>
>>
>> On 4 May 2016 at 13:59, Martinx - ジェームズ <thiagocmartinsc at gmail.com>
>> wrote:
>>
>>> Guys,
>>>
>>>  I'm trying to do a very simple thing on OpenvSwitch with Xenial but, it
>>> is not working!
>>>
>>>  I'm trying to do this:
>>>
>>>
>>> http://openvswitch.org/support/config-cookbooks/vlan-configuration-cookbook/
>>>
>>>  It fails...   :-(
>>>
>>> ---
>>> root at blade:~# ovs-vsctl add-br br0
>>>
>>> root at blade:~# ovs-vsctl add-port br0 tap0 tag=100
>>> ovs-vsctl: Error detected while setting up 'tap0'.  See ovs-vswitchd log
>>> for details.
>>> ---
>>>
>>> ---
>>> root at blade:~# ovs-dpctl show br0
>>> 2016-05-04T16:58:49Z|00001|netdev_linux|INFO|tun0 device has unknown
>>> hardware address family 65534
>>> ovs-dpctl: opening datapath br0 failed (No such device)
>>> ---
>>>
>>> But:
>>>
>>> ---
>>> root at blade:~# lsmod | grep openvs
>>> openvswitch            98304  2
>>> nf_defrag_ipv6         36864  1 openvswitch
>>> nf_conntrack          106496  6
>>> openvswitch,nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4
>>> libcrc32c              16384  1 openvswitch
>>> ---
>>>
>>>  What's going on?
>>>
>>> Thanks!
>>> Thiago
>>>
>>
>> The log:
>>
>> ---
>> 2016-05-04T16:57:58.491Z|00007|bridge|INFO|ovs-vswitchd (Open vSwitch)
>> 2.5.0
>> 2016-05-04T16:58:03.005Z|00008|ofproto_dpif|INFO|system at ovs-system:
>> Datapath supports recirculation
>> 2016-05-04T16:58:03.005Z|00009|ofproto_dpif|INFO|system at ovs-system: MPLS
>> label stack length probed as 1
>> 2016-05-04T16:58:03.005Z|00010|ofproto_dpif|INFO|system at ovs-system:
>> Datapath supports unique flow ids
>> 2016-05-04T16:58:03.005Z|00011|ofproto_dpif|INFO|system at ovs-system:
>> Datapath supports ct_state
>> 2016-05-04T16:58:03.005Z|00012|ofproto_dpif|INFO|system at ovs-system:
>> Datapath supports ct_zone
>> 2016-05-04T16:58:03.005Z|00013|ofproto_dpif|INFO|system at ovs-system:
>> Datapath supports ct_mark
>> 2016-05-04T16:58:03.005Z|00014|ofproto_dpif|INFO|system at ovs-system:
>> Datapath supports ct_label
>> 2016-05-04T16:58:03.010Z|00001|ofproto_dpif_upcall(handler1)|INFO|received
>> packet on unassociated datapath port 0
>> 2016-05-04T16:58:03.043Z|00015|bridge|INFO|bridge br0: added interface
>> br0 on port 65534
>> 2016-05-04T16:58:03.044Z|00016|bridge|INFO|bridge br0: using datapath ID
>> 0000bebee71ce947
>> 2016-05-04T16:58:03.044Z|00017|connmgr|INFO|br0: added service controller
>> "punix:/var/run/openvswitch/br0.mgmt"
>> 2016-05-04T16:58:08.491Z|00018|memory|INFO|33540 kB peak resident set
>> size after 10.1 seconds
>> 2016-05-04T16:58:08.491Z|00019|memory|INFO|handlers:1 ports:1
>> revalidators:1 rules:5
>> 2016-05-04T16:58:14.894Z|00020|bridge|WARN|could not open network device
>> tap0 (No such device)
>> ---
>>
>> ;-(
>>
>> --
>> ubuntu-server mailing list
>> ubuntu-server at lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
>> More info: https://wiki.ubuntu.com/ServerTeam
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20160515/1547ad35/attachment.html>


More information about the ubuntu-server mailing list