<div dir="ltr">Yeah, this basically comes down to what entity is going to be the authoritative source of IP address assignment. Quantum... errr, Neutron assigns IP addresses when a new NIC is allocated, but unless you have external logic to pull those IP address assignments out of Neutron (e.g., via the API) and into your corporate DHCP server, the DHCP response to the VM will not match the one assigned by Neutron.<div>
<br></div><div>Another approach that is possible is to have an some logic outside of OpenStack pick the MAC + IP address(es) to be used by a VM. This logic would then push this information to the DHCP server, and "push" it to Neutron by creating a port with that MAC + IP on the desired network, and then passing in that port-id when booting the VM. This is the designed way to bypass having Neutron allocate an IP from a pool on its own.</div>
<div><br></div><div style>Making the Neutron IPAM more pluggable so that it could, for example, interact with the corporate DHCP when allocating IPs for certain networks is something that has been discussed and would be valuable, though I am not personally aware of anything in progress on that end.</div>
<div style><br></div><div style>Dan</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 8, 2013 at 7:39 PM, Lorin Hochstein <span dir="ltr"><<a href="mailto:lorin@nimbisservices.com" target="_blank">lorin@nimbisservices.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi John:<div><br></div><div>I don't think OpenStack supports an external DHCP server, because there's no mechanism for OpenStack to determine which IP addresses have been assigned to the instances. You could configure the OVS plugin in flat mode for each of the two physical networks, but you wouldn't know what the IP addresses were of the instances after they booted.</div>
<div><br></div><div>Lorin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, Aug 4, 2013 at 11:54 AM, John Griffith <span dir="ltr"><<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hey Everyone,</div>
<div class="gmail_default" style="font-family:courier new,monospace">
<br></div><div class="gmail_default" style="font-family:courier new,monospace">
I have a specific use case that I'm trying to use in OpenStack.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">
My Compute Node has two public Nics (one for data/iscsi (10G) and one for general public net access (1G)), both networks have their own DHCP server. Each compute node also has an additional 10G network for OpenSack management.</div>
<div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Here's what I've been trying to get working:</div><div class="gmail_default" style="font-family:courier new,monospace">
* assign both public networks to the instances on boot</div><div class="gmail_default" style="font-family:courier new,monospace">* utilize the corporate DHCP server to handle IP assignment and config for both of those networks on the instance.</div>
<div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">I have not been able to get this to work and was wondering if any Neutron folks (or anybody else for that matter) had any tips on how to configure this?</div>
<div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">I'm using KVM/Libvirt with openvswitch, but I'm willing to change things around if needed to make this work.</div>
<div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks,</div><div class="gmail_default" style="font-family:courier new,monospace">
John</div></div>
<br></div></div>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Lorin Hochstein<br><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div>
<a href="http://www.nimbisservices.com" target="_blank">www.nimbisservices.com</a></div>
</div>
</font></span></div>
<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira, Inc: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div>
</div>