← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1628670] [NEW] Duplicate designate record error shown when floating ip attached to two VMs with same name

 

Public bug reported:

We have seen observed this error in designate-neutron integration for
mitaka.

 when we create a network and add a designate dns domain to it using
"neutron net-update __dns_domain my-domain.com" , and later assign a
floating IP, the designate record for floating IP gets created fine.

However, when we create a second network, and add SAME designate domain
like "neutron net-update __dns_domain my-domain.com", later create the
VM with SAME name too, but this time the VM is created in this second
network, upon floating IP association, we see this error in neutron
logs:

"""

/var/log/neutron/neutron-server.log:9698:2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db [req-4c6ff4f4-a542-49e2-8051-9e16404142c3 1de3aeb554644fccb20bbee5c9f41c9b e6fcd8295a5349e8bb96ec47c30b9cd7 - - -] Error publishing floating IP data in external DNS service. Name: 'nova-test'. Domain: 'my-domain.com.'. DNS service driver message 'Name nova-test is duplicated in the external DNS service'
/var/log/neutron/neutron-server.log-9699-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db Traceback (most recent call last):
/var/log/neutron/neutron-server.log-9700-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db   File "/usr/lib/python2.7/site-packages/neutron/db/dns_db.py", line 316, in _add_ips_to_external_dns_service
/var/log/neutron/neutron-server.log-9701-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db     records)
/var/log/neutron/neutron-server.log-9702-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db   File "/usr/lib/python2.7/site-packages/neutron/services/externaldns/drivers/designate/driver.py", line 142, in create_record_set
/var/log/neutron/neutron-server.log-9703-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db     raise dns.DuplicateRecordSet(dns_name=dns_name)
/var/log/neutron/neutron-server.log:9704:2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db DuplicateRecordSet: Name nova-test is duplicated in the external DNS service
/var/log/neutron/neutron-server.log-9705-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db

"""


is this because lack of multi-network support in designate neutron integration? 

the scenario is very simple, create two networks, update both networks
with same dns designate domain, create two VMs with same name but in
each separate network, when floating ip is associated to second vm , we
see duplicate record error

** 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/1628670

Title:
  Duplicate designate record error shown when floating ip attached to
  two VMs with same name

Status in neutron:
  New

Bug description:
  We have seen observed this error in designate-neutron integration for
  mitaka.

   when we create a network and add a designate dns domain to it using
  "neutron net-update __dns_domain my-domain.com" , and later assign a
  floating IP, the designate record for floating IP gets created fine.

  However, when we create a second network, and add SAME designate
  domain like "neutron net-update __dns_domain my-domain.com", later
  create the VM with SAME name too, but this time the VM is created in
  this second network, upon floating IP association, we see this error
  in neutron logs:

  """

  /var/log/neutron/neutron-server.log:9698:2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db [req-4c6ff4f4-a542-49e2-8051-9e16404142c3 1de3aeb554644fccb20bbee5c9f41c9b e6fcd8295a5349e8bb96ec47c30b9cd7 - - -] Error publishing floating IP data in external DNS service. Name: 'nova-test'. Domain: 'my-domain.com.'. DNS service driver message 'Name nova-test is duplicated in the external DNS service'
  /var/log/neutron/neutron-server.log-9699-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db Traceback (most recent call last):
  /var/log/neutron/neutron-server.log-9700-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db   File "/usr/lib/python2.7/site-packages/neutron/db/dns_db.py", line 316, in _add_ips_to_external_dns_service
  /var/log/neutron/neutron-server.log-9701-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db     records)
  /var/log/neutron/neutron-server.log-9702-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db   File "/usr/lib/python2.7/site-packages/neutron/services/externaldns/drivers/designate/driver.py", line 142, in create_record_set
  /var/log/neutron/neutron-server.log-9703-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db     raise dns.DuplicateRecordSet(dns_name=dns_name)
  /var/log/neutron/neutron-server.log:9704:2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db DuplicateRecordSet: Name nova-test is duplicated in the external DNS service
  /var/log/neutron/neutron-server.log-9705-2016-09-28 19:43:15.731 502 ERROR neutron.db.dns_db

  """

  
  is this because lack of multi-network support in designate neutron integration? 

  the scenario is very simple, create two networks, update both networks
  with same dns designate domain, create two VMs with same name but in
  each separate network, when floating ip is associated to second vm ,
  we see duplicate record error

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


Follow ups