neutron placing dnsmasq port in wrong bridge

asked 2014-05-27 21:14:46 -0500

don gravatar image

I have created a heat template which creates a single vm with 2 interfaces, a new subnet and router. One interface is on my preexisting public network, and the other is private to the template.

I find that the public network dnsmasq works fine and gets an IP. the new network creates the bridge group etc, but the dnsmasq namespace port is on the wrong ovs bridge.

Can anyone suggest what might be wrong? Do you see the same behaviour w/ the simple heat template? This is running all-in-one flat nova+neutron+ovs.

The port/interface marked below in ** (port tapf2dadea4-f9, interface tapf2dadea4-f9) should be in port qvo588324fa-cd I think.

$ ovs-vsctl show 
604e6c21-b4c9-44b1-b2d6-c4aff8835c54
    Bridge br-int
        Port "qvo6c2da7d2-76"
            tag: 2
            Interface "qvo6c2da7d2-76"
        Port br-int
            Interface br-int
                type: internal
        Port int-br-ex
            Interface int-br-ex
        Port "qvo588324fa-cd"
            tag: 1
            Interface "qvo588324fa-cd"
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
        Port "tap06ba7977-87"
            Interface "tap06ba7977-87"
                type: internal
        **Port "tapf2dadea4-f9"**
            **Interface "tapf2dadea4-f9"**
                type: internal
    ovs_version: "2.0.1"

OK, so let me explain...

sudo ip netns list
qdhcp-e6b1fb74-c705-437a-ab96-6606b4205b27
qdhcp-40652eda-638d-497d-b108-8166e8dc3549

are my two namespace. The 2nd one (qdhcp-40652eda-638d-497d-b108-8166e8dc3549) is my 'public' network:

$ sudo ip netns exec qdhcp-40652eda-638d-497d-b108-8166e8dc3549 ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2880 (2.8 KB)  TX bytes:2880 (2.8 KB)

tap06ba7977-87 Link encap:Ethernet  HWaddr fa:16:3e:12:b4:ab  
          inet addr:172.16.1.11  Bcast:172.16.1.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe12:b4ab/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:470 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:22440 (22.4 KB)  TX bytes:2196 (2.1 KB)

whereas the other is the new private network created w/ heat:

$ sudo ip netns exec qdhcp-e6b1fb74-c705-437a-ab96-6606b4205b27 ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tapf2dadea4-f9 Link encap:Ethernet  HWaddr fa:16:3e:69:ab:4c  
          inet addr:172.16.10.11  Bcast:172.16.10.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe69:ab4c/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3714 ...
(more)
edit retag flag offensive close merge delete