<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey all,<br>
<br>
Sorry for the lengthy email, just trying to explain my issue the
best that I can. <br>
<br>
I'm trying to run devstack with neutron within a guest.<br>
<br>
The host of this guest is a Ubuntu 14.04 machine devstack running
nova-net. To simplify setup and teardown of devstack within this
guest, I add an OVS bridge to eth0 (br0) and specify it within the
localrc. This allows stack.sh and unstack.sh to run without losing
ssh access to the guest/machine. Basically, I'm stuck at getting a
DHCP request from the guest's OVS bridge honoured by the host's
nova-net. Here's what happens:<br>
<br>
1) I spawn the guest (Ubuntu 14.04) and it's properly networked (Can
ping it and ssh to it from outside the host).<br>
2) I then install openvswitch and add the OVS bridge (sudo ovs-vsctl
add-br br0; sudo ovs-vsctl add-port br0 eth0)\<br>
3) Of course eth0 then loses connectivity. So I use the following
/etc/network/interfaces file to remove eth0's IP and set it to
promiscuous mode. It also sets the bridge to use DHCP and sets it
to promiscuous mode.<br>
<br>
<pre class="prettyprint"><code><span class="com">#eth0 set to manual, br0 set to dhcp</span><span class="pln">
</span><span class="com"># The loopback network interface</span><span class="pln">
</span><span class="kwd">auto</span><span class="pln"> lo
iface lo inet loopback
</span></code><code><span class="pln">
</span><span class="com"># The primary network interface</span><span class="pln">
</span><span class="kwd">auto</span><span class="pln"> eth0
</span><span class="com"># iface eth0 inet dhcp</span><span class="pln">
iface eth0 inet manual
</span></code><code><span class="pln">
up ifconfig $IFACE </span><span class="lit">0.0</span><span class="pun">.</span><span class="lit">0.0</span><span class="pln"> up
up ip link </span><span class="kwd">set</span><span class="pln"> $IFACE promisc on
down ip link </span><span class="kwd">set</span><span class="pln"> $IFACE promisc off
down ifconfig $IFACE down
</span></code><code><span class="pln">
</span><span class="kwd">auto</span><span class="pln"> br0
iface br0 inet dhcp
up ip link </span><span class="kwd">set</span><span class="pln"> $IFACE promisc on
</span></code></pre>
4) I then cycle br0 and eth0. As expected eth0 loses it's IP and is
set to promisc on. <b>br0 then issues a DHCP request which never
gets honoured</b>. This is where I'm stuck. Any ideas?<br>
<br>
<b>Also worth noting</b>, I've tried using neutron on the host which
was a bit more successful. Neutron has a concept of ports where you
can specify MACs to serve. I added the OVS bridge's MAC address to
the port list and DHCP requests were fulfilled. However, the bridge
could not ping in or out after receiving its IP. Does nova-net have
something similar? <br>
<br>
I also posted about it here, so if you want more info this might be
helpful.
<a class="moz-txt-link-freetext" href="https://ask.openstack.org/en/question/79792/using-ovs-within-an-instance-whose-host-is-running-nova-net/">https://ask.openstack.org/en/question/79792/using-ovs-within-an-instance-whose-host-is-running-nova-net/</a><br>
<br>
If you need any other info, more detail, etc. Please do not hesitate
to ask, I really appreciate any help!<br>
<br>
Thanks,<br>
Mike Turek<br>
</body>
</html>