Ask Your Question
1

Dns-assignment is not changing after neutron net-update on 'dns_domain'

asked 2018-02-26 05:53:29 -0600

Sehriban gravatar image

updated 2018-02-26 06:04:59 -0600

Hi,

Openstack Release : Newton After changing dns_domain name with net-update command not able to see that domain in port creation.

[root@controller1 ~]# neutron net-update 28e19f9f-5595-4ea1-bb2e-d626bbbbf480 --dns_domain http://cpaas.com. Updated network: 28e19f9f-5595-4ea1-bb2e-d626bbbbf480

[root@controller1 ~]# neutron net-show 28e19f9f-5595-4ea1-bb2e-d626bbbbf480

+---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | True | | availability_zone_hints | | | availability_zones | nova | | created_at | 2017-12-26T08:11:44Z | | description | | | dns_domain | http://cpaas.com. | | id | 28e19f9f-5595-4ea1-bb2e-d626bbbbf480 | | ipv4_address_scope | | | ipv6_address_scope | | | mtu | 1450 | | name | dhcp-network | | project_id | ef7ad5aa8dc04045b4ce9a856d11fc8e | | provider:network_type | vxlan | | provider:physical_network | | | provider:segmentation_id | 26 | | revision_number | 16 | | router:external | False | | shared | False | | status | ACTIVE | | subnets | 0bd1f0b4-0029-41be-93b3-ff903a4cf6dd | | tags | | | tenant_id | ef7ad5aa8dc04045b4ce9a856d11fc8e | | updated_at | 2018-02-26T11:41:07Z | +---------------------------+--------------------------------------+

[root@controller1 ~]# neutron port-create dhcp-network --dns_name hello

Created a new port: +-----------------------+-----------------------------------------------------------------------------------------------------+ | Field | Value | +-----------------------+-----------------------------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | unbound | | binding:vnic_type | normal | | created_at | 2018-02-26T11:41:32Z | | description | | | device_id | | | device_owner | | | dns_assignment | {"hostname": "host-10-0-8-21", "ip_address": "10.0.8.21", "fqdn": "host-10-0-8-21.openstacklocal."} | | dns_name | | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "0bd1f0b4-0029-41be-93b3-ff903a4cf6dd", "ip_address": "10.0.8.21"} | | id | ddfed418-49e9-4570-8edd-5d03ac1d2ddd | | mac_address | fa:16:3e:88:d6:20 | | name | | | network_id | 28e19f9f-5595-4ea1-bb2e-d626bbbbf480 | | project_id | ef7ad5aa8dc04045b4ce9a856d11fc8e | | revision_number | 4 | | security_groups | 8e67f51d-76f1-427a-970a-b3c0407abb21 | | status | DOWN | | tenant_id | ef7ad5aa8dc04045b4ce9a856d11fc8e | | updated_at | 2018-02-26T11:41:32Z | +-----------------------+-----------------------------------------------------------------------------------------------------+

edit retag flag offensive close merge delete

Comments

I believe you have to remove the http:// from the domain name when running net-update.

Bernd Bausch gravatar imageBernd Bausch ( 2018-02-26 08:27:59 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-02-26 06:50:53 -0600

Radhakrishnan Rk gravatar image

Please check nova.conf

dhcp_domain = novalocal

novalocal should be changed to some other alternate domain name. Restart compute and network services.

edit flag offensive delete link more

Comments

Please share your neutron dhcp service and meta data service log for reference. Neutron meta data agent carries the information like update host name to the newly launched vm. http://169.254.169.254 is the address of meta data proxy server.

Radhakrishnan Rk gravatar imageRadhakrishnan Rk ( 2018-02-26 06:52:49 -0600 )edit

Metadata or DCHP servers are unlikely to be relevant here, as the OP has not even started an instance yet.

Bernd Bausch gravatar imageBernd Bausch ( 2018-02-26 22:04:41 -0600 )edit

Actually after changing nova.conf the problem still exist.

Sehriban gravatar imageSehriban ( 2018-02-26 23:50:12 -0600 )edit

My main problem about --dns_domain parameter on command-line. When i gave a new domain to overwrite my existing domain, it shows like network configuration changed but after creating port with this network, dns assignment is not done according to new domain.

Sehriban gravatar imageSehriban ( 2018-02-27 01:39:26 -0600 )edit

Try neutron net-update 28e19f9f-5595-4ea1-bb2e-d626bbbbf480 --dns_domain cpaas.com. without the http part. In any case, domain names must not have colons and slashes, and I suspect that Neutron is confused by this string.

Yes, I agree the command should complain that the name is not valid.

Bernd Bausch gravatar imageBernd Bausch ( 2018-02-27 02:48:23 -0600 )edit

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: 2018-02-26 05:53:29 -0600

Seen: 134 times

Last updated: Feb 27 '18