<div dir="ltr"><div><div><div><div><div><div><div><div>Zhi Chang,<br><br></div>Thank you for your questions. We are in the process of integrating Neutron and Nova with an external DNS service, using Designate as the reference implementation. This integration is being achieved in 3 steps. What you are seeing is the result of only the first one. These steps are:<br><br></div>1) Internal DNS integration in Neutron, which merged recently: <a href="https://review.openstack.org/#/c/200952/" target="_blank">https://review.openstack.org/#/c/200952/</a>. As you may know, Neutron has an internal DHCP / DNS service based on dnsmasq for each virtual network that you create. Previously, whenever you created a port on a given network, your port would get a default host name in dnsmasq of the form 'host-xx-xx-xx-xx.openstacklocal.", where xx-xx-xx-xx came from the port's fixed ip address "xx.xx.xx.xx" and "openstacklocal" is the default domain used by Neutron. This name was generated by the dhcp agent. In the above mentioned patchset, we are moving the generation of these dns names to the Neutron server, with the intent of allowing the user to specify it. In order to do that, you need to enable it by defining in neutron.conf the 'dns_domain' parameter with a value different to the default 'openstacklocal'. Once you do that, you can create or update a port and assign a value to its 'dns_name' attribute. Why is this useful? Please read on.<br><br>2) External DNS integration in Neutron. The patchset is being worked now: <a href="https://review.openstack.org/#/c/212213/" target="_blank">https://review.openstack.org/#/c/212213/</a>. The functionality implemented here allows Neutron to publish the dns_name associated with a floating ip under a domain in an external dns service. We are using Designate as the reference implementation, but the idea is that in the future other DNS services can be integrated.. Where does the dns name and domain of the floating ip come from? It can come from 2 sources. Source number 1 is the floating ip itself, because in this patchset we are adding a dns_name and a dns_domain attributes to it. If the floating ip doesn't have a dns name and domain associated with it, then they can come from source number 2: the port that the floating ip is associated with (as explained in point 1, ports now can have a dns_name attribute) and the port's network, since this patchset adds dns_domain to networks.<br><br></div>3) Integration of Nova with Neutron's DNS. I have started the implementation of this and over the next few days will push the code to Gerrit for first review. When an instance is created, nova will request to Neutron the creation of the corresponding port specifying the instance's hostname in the port's 'dns_name' attribute (as explained in point 1). If the network where that port lives has a dns_domain associated with it (as explained in point 2) and you assign a floating ip to the port, your instance's hostname will be published in the external dns service.<br><br></div>To make it clearer, here I walk you through an example that I executed in my devstack: <a href="http://paste.openstack.org/show/476210/" target="_blank">http://paste.openstack.org/show/476210/</a><br><br></div>As mentioned above, we also allow the dns_name and dns_domain to be published in the external dns to be defined at the floating ip level. The reason for this is that we envision a use case where the name and ip address made public in the dns service are stable, regardless of the nova instance associated with the floating ip.<br><br></div><div>If you are attending the upcoming Tokyo summit, you could attend the following talk for further information:  <a href="http://openstacksummitoctober2015tokyo.sched.org/event/5cbdd5fb4a6d080f93a5f321ff59009c#.Vh3KMZflRz2">http://openstacksummitoctober2015tokyo.sched.org/event/5cbdd5fb4a6d080f93a5f321ff59009c#.Vh3KMZflRz2</a> Looking forward to see you there!<br></div><div><br></div>Hope this answers your questions<br><br></div>Best regards<br><br></div>Miguel Lavalle<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 9:58 AM, Zhi Chang <span dir="ltr"><<a href="mailto:changzhi@unitedstack.com" target="_blank">changzhi@unitedstack.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, all</div><div>    I install the latest devstack and create a vm by nova. I get the port's info which created by Neutron. I'm confused that what the meaning of column "dns_assignment" and column "dns_name".</div><div>    First, column "<span style="line-height:19.0909px">dns_assignment</span><span style="line-height:1.5">" is a read-only attribute. What is it used for? I think that this column is useless except shows DNS infomation (include hostname, ip, fqdn). Does my thought right?</span></div><div><span style="line-height:1.5">    Second, I don't quite understand what the meaning of column "dns_name". I can update this column, but there is nothing happen when my o</span>peration was done. In other words, this column has no change when I run "neutron port-update xxx --dns_name=test". What the column "dns_name" use for?</div><div><br></div><div><br></div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Zhi Chang</div><div><u></u><u></u></div></font></span><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>