<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hello everyone, I have configured a nova-compute-lxd node in our openstack environment.   We are currently running Openstack Mitaka (Not Devstack) with neutron.  I am able to provision instances however they have no network connectivity.  When using a
 regular provider network and not VxLAN networks, if I add the provider network (em2 in my case) to the bridge group manually it will function properly. So it appears that the interface is not added to the bridge during the provisioning process.  </div>
<div><br>
</div>
<div>My neutron config on the host has </div>
<div><br>
</div>
<div>physical_interface_mappings = public:em2</div>
<div><br>
</div>
<div>This is for VxLAN support.</div>
<div><br>
</div>
<div>
<div>enable_vxlan = True</div>
<div>local_ip = 172.26.3.1</div>
<div>l2_population = True</div>
</div>
<div><br>
</div>
<div>After adding an instance. </div>
<div><br>
</div>
<div>
<div>root@lxd01:~# nova list</div>
<div>+--------------------------------------+------+--------+------------+-------------+--------------------+</div>
<div>| ID                                   | Name | Status | Task State | Power State | Networks           |</div>
<div>+--------------------------------------+------+--------+------------+-------------+--------------------+</div>
<div>| d98ec618-1d98-47d1-95d1-31d39af38f3a | test | ACTIVE | -          | Running     | public=70.36.33.15 |</div>
<div>+--------------------------------------+------+--------+------------+-------------+——————————+</div>
</div>
<div><br>
</div>
<div>
<div>root@lxd01:~# lxc list</div>
<div>+-------------------+---------+------+------+------------+-----------+</div>
<div>|       NAME        |  STATE  | IPV4 | IPV6 |    TYPE    | SNAPSHOTS |</div>
<div>+-------------------+---------+------+------+------------+-----------+</div>
<div>| instance-0000001b | RUNNING |      |      | PERSISTENT | 0         |</div>
<div>+-------------------+---------+------+------+------------+—————+</div>
</div>
<div><br>
</div>
<div>
<div>root@lxd01:~# brctl show</div>
<div>bridge name<span class="Apple-tab-span" style="white-space: pre;"> </span>bridge id<span class="Apple-tab-span" style="white-space: pre;">
</span>STP enabled<span class="Apple-tab-span" style="white-space: pre;"> </span>
interfaces</div>
<div>brq5d71d51f-4b<span class="Apple-tab-span" style="white-space: pre;"> </span>
8000.feec5f898aa5<span class="Apple-tab-span" style="white-space: pre;"> </span>no<span class="Apple-tab-span" style="white-space: pre;">
</span>vethNV5DFH</div>
<div>lxdbr0<span class="Apple-tab-span" style="white-space: pre;"> </span>8000.000000000000<span class="Apple-tab-span" style="white-space: pre;">
</span>no<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>virbr0<span class="Apple-tab-span" style="white-space: pre;"> </span>8000.52540009839a<span class="Apple-tab-span" style="white-space: pre;">
</span>yes<span class="Apple-tab-span" style="white-space: pre;"> </span>virbr0-nic</div>
<div>root@lxd01:~# </div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>root@lxd01:~# lxc exec instance-0000001b -- /bin/bash</div>
<div>root@ubuntu:~# ifconfig ethic</div>
<div>eth0      Link encap:Ethernet  HWaddr fa:16:3e:06:30:fc  </div>
<div>          inet6 addr: fe80::f816:3eff:fe06:30fc/64 Scope:Link</div>
<div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div>
<div>          RX packets:9 errors:0 dropped:0 overruns:0 frame:0</div>
<div>          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0</div>
<div>          collisions:0 txqueuelen:1000 </div>
<div>          RX bytes:718 (718.0 B)  TX bytes:61866 (61.8 KB)</div>
<div><br>
</div>
<div><br>
</div>
<div>root@ubuntu:~# </div>
</div>
<div>Exit</div>
<div><br>
</div>
<div>
<div>root@lxd01:~# brctl addif brq5d71d51f-4b em2</div>
<div>root@lxd01:~# brctl show</div>
<div>bridge name<span class="Apple-tab-span" style="white-space: pre;"> </span>bridge id<span class="Apple-tab-span" style="white-space: pre;">
</span>STP enabled<span class="Apple-tab-span" style="white-space: pre;"> </span>
interfaces</div>
<div>brq5d71d51f-4b<span class="Apple-tab-span" style="white-space: pre;"> </span>
8000.0026b942da6f<span class="Apple-tab-span" style="white-space: pre;"> </span>no<span class="Apple-tab-span" style="white-space: pre;">
</span>em2</div>
<div><span class="Apple-tab-span" style="white-space: pre;"></span>vethNV5DFH</div>
<div>lxdbr0<span class="Apple-tab-span" style="white-space: pre;"> </span>8000.000000000000<span class="Apple-tab-span" style="white-space: pre;">
</span>no<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>virbr0<span class="Apple-tab-span" style="white-space: pre;"> </span>8000.52540009839a<span class="Apple-tab-span" style="white-space: pre;">
</span>yes<span class="Apple-tab-span" style="white-space: pre;"> </span>virbr0-nic</div>
<div>root@lxd01:~#</div>
</div>
<div><br>
</div>
<div>
<div>root@lxd01:~# lxc restart instance-0000001b </div>
<div>root@lxd01:~# lxc list</div>
<div>+-------------------+---------+--------------------+------+------------+-----------+</div>
<div>|       NAME        |  STATE  |        IPV4        | IPV6 |    TYPE    | SNAPSHOTS |</div>
<div>+-------------------+---------+--------------------+------+------------+-----------+</div>
<div>| instance-0000001b | RUNNING | 70.36.33.15 (eth0) |      | PERSISTENT | 0         |</div>
<div>+-------------------+---------+--------------------+------+------------+-----------+</div>
<div>root@lxd01:~# nova list</div>
<div>+--------------------------------------+------+--------+------------+-------------+--------------------+</div>
<div>| ID                                   | Name | Status | Task State | Power State | Networks           |</div>
<div>+--------------------------------------+------+--------+------------+-------------+--------------------+</div>
<div>| d98ec618-1d98-47d1-95d1-31d39af38f3a | test | ACTIVE | -          | Running     | public=70.36.33.15 |</div>
<div>+--------------------------------------+------+--------+------------+-------------+--------------------+</div>
<div>root@lxd01:~# </div>
</div>
<div><br>
</div>
<div>
<div>root@lxd01:~# lxc exec instance-0000001b -- /bin/bash</div>
<div>root@ubuntu:~# ifconfig eth0</div>
<div>eth0      Link encap:Ethernet  HWaddr fa:16:3e:06:30:fc  </div>
<div>          inet addr:70.36.33.15  Bcast:70.36.33.255  Mask:255.255.255.0</div>
<div>          inet6 addr: fe80::f816:3eff:fe06:30fc/64 Scope:Link</div>
<div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div>
<div>          RX packets:491 errors:0 dropped:0 overruns:0 frame:0</div>
<div>          TX packets:182 errors:0 dropped:0 overruns:0 carrier:0</div>
<div>          collisions:0 txqueuelen:1000 </div>
<div>          RX bytes:39890 (39.8 KB)  TX bytes:17244 (17.2 KB)</div>
<div><br>
</div>
<div><br>
</div>
<div>root@ubuntu:~# ping 8.8.8.8</div>
<div>PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.</div>
<div>64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=20.0 ms</div>
<div>64 bytes from 8.8.8.8: icmp_seq=2 ttl=48 time=19.5 ms</div>
<div>^C</div>
<div>--- 8.8.8.8 ping statistics ---</div>
<div>2 packets transmitted, 2 received, 0% packet loss, time 1001ms</div>
<div>rtt min/avg/max/mdev = 19.516/19.803/20.090/0.287 ms</div>
<div>root@ubuntu:~# </div>
</div>
<div><br>
</div>
<div>Yay all good. </div>
<div><br>
</div>
<div><br>
</div>
<div>Any idea on what I might be missing?  Does the LXC implementation support VxLAN?  When I provision an instance with VxLAN the vxnet—XX interfaces do not seem to get created either. </div>
</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div><span style="color: rgb(89, 89, 89); font-family: Cambria, serif; font-size: 11pt;">Steven Searles, CTO | </span><a href="mailto:ssearles@zimcom.net" class="" style="font-family: Cambria, serif; font-size: 11pt;">ssearles@zimcom.net</a></div>
<div class="" style="font-family: Helvetica; font-size: 12px;">
<div class="">
<div class="">
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span class="" style="font-size: 11pt; font-family: Cambria, serif; color: rgb(89, 89, 89);">Zimcom Internet Solutions  | <a href="http://www.zimcom.net/" class="">www.zimcom.net</a><o:p class=""></o:p></span></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; line-height: 24px;">
<span class="" style="font-size: 11pt; line-height: 22px; font-family: Cambria, serif; color: rgb(89, 89, 89);">O: 513.231.9500  |  D: 513.233.4130<o:p class=""></o:p></span></div>
<div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span class="" style="font-size: 11pt; font-family: Cambria, serif; color: rgb(89, 89, 89);"><br class="Apple-interchange-newline">
</span></div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<span style="font-family: Calibri;"><img height="36" width="163" apple-inline="yes" id="84FF77AB-3DBB-421B-9F9A-DF6871FA8AB6" apple-width="yes" apple-height="yes" src="cid:24905604-AD83-44BD-8DEA-0C708E4E8AD7" class="" type="image/png"></span></div>
</div>
</body>
</html>