Neutron is not creating DNS records when recreating an instance with the same floating IP

Bug #2032973 reported by Mick Schellekens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Undecided
Unassigned

Bug Description

When creating an instance for the first time and assigning a floating IP to it. A DNS record is created. When removing the instance using the API and recreating it. The DNS record gets deleted but is not created again.

The issue is present for us on the Stein release (14.4.2).

To reproduce (using the CLI):
* Create project
* Create an internal network and subnet.
* Create router and add an External gateway.
* Create DNS zone (we also use Bind9 as an external DNS provider).
* Create an instance on the internal network
* Create a floating IP and assign it to an instance. A DNS record is created.
* Delete the instance. Its DNS record is *not* removed.
* Recreate the instance with the same steps. The DNS record is removed.
* Recreating the instance again will not create a DNS record.

This causes some issues when recreating an instance with the same floating IP.
Because the DNS record does not get created when recreating the instance, we can't connect to the instance using the hostname.

Some other things we noticed were

When removing floating IPs from an instance using the CLI (OpenStack server remove floating ip <servername><IP>) the DNS entry in the zone is not deleted.
When you use the Horizon dashboard to remove the floating IP the DNS record is removed.

In the neutron database. The table "floatingipdnses" is updated when a floating IP is assigned to an instance for the first time.
When removing the floating IP with the CLI, the record in this table is not removed.
When removing the floating IP with the Horizon dashboard, the record in this table is removed.

If we create a floating IP with dns_domain and dns_name configured, It will create a DNS record immediately (without an instance).
if we assign that floating IP to an instance and delete the instance. The DNS record gets removed and is not created again when using that floating IP.

Tags: dns
tags: added: dns
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Hello Mick:

We no longer provide support for Stein release. Is it possible for you to upgrade to a newer version and confirm that this is happening too?

Regards.

Revision history for this message
Mick Schellekens (theraga) wrote :

Hello Rodolfo,

I will try and get an upgrade done for our Openstack installation.

I assume we should go to Zed/Antelope? I was looking at https://releases.openstack.org/ and saw Stein in extended maintenance so I wasn't sure if it was still getting bugfixes

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.