Ask Your Question
0

DNSDomainNotFound while integrating neutron with Designate

asked 2017-06-07 09:29:44 -0500

Bhujay Kumar Bhatta gravatar image

updated 2017-06-08 08:51:17 -0500

Trying to integrate Extrnal Dns ( Designate ) with Neutron I am going by this link https://docs.openstack.org/project-install-guide/dns/ocata/install-ubuntu.html (link text) https://docs.openstack.org/ocata/networking-guide/config-dns-int.html (link text)

neutron configuration

[designate]
url = http://10.0.0.14:9001
admin_auth_url = http://10.0.0.14:35357
admin_username = neutron
admin_password = d57fa18eaf47710b1fad18b8ee067ba1c19444ebb93
admin_tenant_name = service
allow_reverse_dns_lookup = True
ipv4_ptr_zone_prefix_size = 24
ipv6_ptr_zone_prefix_size = 116

designate record-list itc.in.

+--------------------------------------+------+-----------------+------------------------------------------+
| id                                   | type | name            | data                                     |
+--------------------------------------+------+-----------------+------------------------------------------+
| 6d5d5666-e01d-4e56-a3a3-07b666237186 | SOA  | itc.in.         | ns1.itc.in. snigdha.sinha.itc.in.        |
|                                      |      |                 | 1496752484 3530 600 86400 3600           |
| 567cf1ec-9142-4be2-bae6-2c41f9a2b888 | NS   | itc.in.         | ns1.itc.in.                              |
| 3f9f0503-333f-4a27-94ee-43e21d6f779f | A    | snigdha.itc.in. | 191.1.1.60                               |
+--------------------------------------+------+-----------------+------------------------------------------+

The record snigdha.itc.in was created manually to test deisgnate and its working . Resposne was ok from dig.

my networks are as follows:

neutron net-list
+--------------------------------------+--------------+---------------------------------------------------+
| id                                   | name         | subnets                                           |
+--------------------------------------+--------------+---------------------------------------------------+
| 07e56525-2a59-47df-9ce3-38d47e17a043 | net6         | 3bcd6f4b-06ef-49ae-8976-41ecf2f1fb8e 186.1.1.0/24 |
| 0a22135c-be0d-4ab7-932f-cbb4888b4b69 | net5         | 9d1a8a7e-d779-490b-8b64-93d62d7592a9 185.1.1.0/24 |
| b3e25401-b4f5-484f-b77e-c3b4166310b8 | provider-303 | 177a89f6-2699-4b11-a9e5-94a9b99ec06d 191.1.1.0/24 |
| d02e593f-a696-4d96-934d-4bfd4a586800 | net7         | 1d068daf-2d22-4893-b904-c1da64763187 120.1.1.0/24 |
| d1f96195-fc54-473a-b83e-2599ecb050b9 | net8         | 76f35ba9-5fbf-41e2-9c8b-3f40469935b4 130.1.1.0/24 |
| e45d1777-0a55-4e17-9440-0f02ecd7071a |              | 6b067954-c856-4dff-bc42-4ff62bc09568 10.0.0.0/24  |
+--------------------------------------+--------------+---------------------------------------------------+

neutron net-show b3e25401-b4f5-484f-b77e-c3b4166310b8

-------------------------+--------------------------------------+
| Field                   | Value                                |
+-------------------------+--------------------------------------+
| admin_state_up          | True                                 |
| availability_zone_hints |                                      |
| availability_zones      | nova                                 |
| created_at              | 2017-05-18T17:23:04Z                 |
| description             |                                      |
| dns_domain              | itc.in.                              |
| id                      | b3e25401-b4f5-484f-b77e-c3b4166310b8 |
| ipv4_address_scope      |                                      |
| ipv6_address_scope      |                                      |
| is_default              | False                                |
| mtu                     | 1500                                 |
| name                    | provider-303                         |
| port_security_enabled   | True                                 |
| project_id              | 77607953b9d044af8f0907b844beb371     |
| qos_policy_id           |                                      |
| revision_number         | 7                                    |
| router:external         | True                                 |
| shared                  | True                                 |
| status                  | ACTIVE                               |
| subnets                 | 177a89f6-2699-4b11-a9e5-94a9b99ec06d |
| tags                    |                                      |
| tenant_id               | 77607953b9d044af8f0907b844beb371     |
| updated_at              | 2017-06-07T07:28:09Z                 |
+-------------------------+--------------------------------------+

openstack server show dnscase3

+-----------------------------+----------------------------------------------------------+
| Field                       | Value                                                    |
+-----------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig           | MANUAL                                                   |
| OS-EXT-AZ:availability_zone | nova                                                     |
| OS-EXT-STS:power_state      | Running                                                  |
| OS-EXT-STS:task_state       | None                                                     |
| OS-EXT-STS:vm_state         | active                                                   |
| OS-SRV-USG:launched_at      | 2017-06-07T11:59:11.000000                               |
| OS-SRV-USG:terminated_at    | None                                                     |
| accessIPv4                  |                                                          |
| accessIPv6                  |                                                          |
| addresses                   | net7=120.1.1.31                                          |
| config_drive                | True                                                     |
| created                     | 2017-06-07T11:55:42Z                                     |
| flavor                      | tiny (d2d3bec8-240d-4430-bc23-4f7f4eb625c3)              |
| hostId                      | 800f358d97ff7eed9a73cc7debea756720ceba7ea70f17d25f3fb3b6 |
| id                          | 7463e1e5-b50c-48ac-a131-fc4a83a96633                     |
| image                       | cirros (545c9919-b94e-4642-92e1-d2f67b3a3e00)            |
| key_name                    | k1                                                       |
| name                        | dnscase3                                                 |
| progress                    | 0                                                        |
| project_id                  | 89c07e8d3a204e588d1fc0c531f50852                         |
| properties                  |                                                          |
| security_groups             | name='common'                                            |
| status                      | ACTIVE                                                   |
| updated                     | 2017-06-07T11:57:38Z                                     |
| user_id                     | a2ee74b343dc4670b17cb4321990d37c                         |
| volumes_attached            |                                                          |
+-----------------------------+----------------------------------------------------------+

I am trying the use case 3 as per the document to create a vm and publish it to dns using floating ip

neutron floatingip-create  provider-303  --dns_domain abc.com. --dns_name dnscase3 
Created a new floatingip:
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| created_at          | 2017-06-07T14:21:15Z                 |
| description         |                                      |
| dns_domain          | abc.com.                             |
| dns_name            | dnscase3                             |
| fixed_ip_address    |                                      |
| floating_ip_address | 191.1.1.41                           |
| floating_network_id | b3e25401-b4f5-484f-b77e-c3b4166310b8 |
| id                  | c73d6d8f-7b8d-43bc-9035-6805556bd4f4 |
| port_id             |                                      |
| project_id          | 89c07e8d3a204e588d1fc0c531f50852     |
| revision_number     | 2                                    |
| router_id           |                                      |
| status              | DOWN                                 |
| tenant_id           | 89c07e8d3a204e588d1fc0c531f50852     |
| updated_at          | 2017-06-07T14:21:15Z                 |
+---------------------+--------------------------------------+

record is not getting added in designate and and getting this error in neutron server log :

 2017-06-07 14:52:36.969 5374 ERROR oslo.messaging._drivers.impl_rabbit [req-b9101d12-5e85-4442-9933-9a4e9c23b94c a2ee74b343dc4670b17cb4321990d37c 89c07e8d3a204e588d1fc0c531f50852 - - -] [2e6b0b1c-054b-475f-9f53-b7bd35d665b3] AMQP server on 10.0.0.101:5671 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 1 seconds. Client port: None
    2017-06-07 14:52:38.004 5374 INFO oslo.messaging._drivers.impl_rabbit [req-b9101d12-5e85-4442-9933-9a4e9c23b94c a2ee74b343dc4670b17cb4321990d37c 89c07e8d3a204e588d1fc0c531f50852 - - -] [2e6b0b1c-054b-475f-9f53-b7bd35d665b3] Reconnected to AMQP server on 10.0.0.151:5671 via [amqp] client with port 56198.
    2017-06-07 14:52:38.033 5374 INFO neutron.quota [req-b9101d12-5e85-4442-9933-9a4e9c23b94c a2ee74b343dc4670b17cb4321990d37c 89c07e8d3a204e588d1fc0c531f50852 - - -] Loaded quota_driver: <neutron.db.quota.driver.DbQuotaDriver object at 0x7fc2526afe50>.
    2017-06-07 14:52:42.251 5374 ERROR neutron.db.dns_db [req-b9101d12-5e85-4442-9933-9a4e9c23b94c a2ee74b343dc4670b17cb4321990d37c 89c07e8d3a204e588d1fc0c531f50852 - - -] Error publishing floating IP data ...
(more)
edit retag flag offensive close merge delete

Comments

The thing I find odd is that your log errors are referencing the dnscase2 record but you are showing it as the output for dnscase3 record. Also the first error in the output is a rabbit communication error. What does your designate config look like? What errors are you seeing in the designate logs.

xdaxdb gravatar imagexdaxdb ( 2017-09-16 04:58:27 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2017-09-21 04:19:33 -0500

j-harbott gravatar image

The url parameter in neutron.conf needs to contain the versioned designate endpoint as shown in the installation docs, so add /v2 to it.

edit flag offensive delete link more
0

answered 2017-09-16 05:51:00 -0500

xdaxdb gravatar image

The docs example does use the neutron user, but both users should have the admin role so I think both would work.

I think the reason you aren't seeing anything when you CLI query is because you are specifying the service tenant name. That means you are looking for DNS records in the service and admin tenants themselves, which is probably not the tenant that holds the records. The os-tenant name is not a part of the user's identity in the same way that the os-domain is. Users can exist in multiple tenants. Specify the tenant name where the floating ip, instance, and DNS zone were created in your CLI query.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2017-06-07 09:29:44 -0500

Seen: 357 times

Last updated: Sep 21 '17