← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1812168] [NEW] Neutron doesn't delete Designate entry when port is deleted

 

Public bug reported:

When a port with a FIP and DNS association is deleted, Neutron
integration is not deleting the DNS entry from Designate.

To reproduce use the following flow:

# Create a Designate zone and associate with a tenant network
openstack zone create --email admin@xxxxxxxxxxx example.org.
neutron net-create net1 --dns-domain example.org.
neutron subnet-create --name sub1 net1 192.168.1.0/24

# Create a router, and attach tenant network to a public network
neutron router-create rtr
neutron router-interface-add rtr sub1
neutron router-interface-add rtr sub2
neutron router-gateway-set rtr public

# Create a port, associate with a FIP
PORT_ID=$(neutron port-create --name testport --dns-name testport net1 | awk '/ id /{print $4}')
neutron floatingip-create --port-id $PORT_ID public

# Entry should be seen in Designate recordset
openstack recordset list example.org.

# Delete port
neutron port-delete $PORT_ID

# Entry is expected to be deleted from Designate recordset. Yet it isn't
openstack recordset list example.org.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1812168

Title:
  Neutron doesn't delete Designate entry when port is deleted

Status in neutron:
  New

Bug description:
  When a port with a FIP and DNS association is deleted, Neutron
  integration is not deleting the DNS entry from Designate.

  To reproduce use the following flow:

  # Create a Designate zone and associate with a tenant network
  openstack zone create --email admin@xxxxxxxxxxx example.org.
  neutron net-create net1 --dns-domain example.org.
  neutron subnet-create --name sub1 net1 192.168.1.0/24

  # Create a router, and attach tenant network to a public network
  neutron router-create rtr
  neutron router-interface-add rtr sub1
  neutron router-interface-add rtr sub2
  neutron router-gateway-set rtr public

  # Create a port, associate with a FIP
  PORT_ID=$(neutron port-create --name testport --dns-name testport net1 | awk '/ id /{print $4}')
  neutron floatingip-create --port-id $PORT_ID public

  # Entry should be seen in Designate recordset
  openstack recordset list example.org.

  # Delete port
  neutron port-delete $PORT_ID

  # Entry is expected to be deleted from Designate recordset. Yet it isn't
  openstack recordset list example.org.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1812168/+subscriptions


Follow ups