Update the DNS nameserver for the provisioning subnet on the undercloud
Get the subnet information
(undercloud) [stack@pike ~]$ openstack subnet list
+--------------------------------------+-----------------+--------------------------------------+---------------+
| ID | Name | Network | Subnet |
+--------------------------------------+-----------------+--------------------------------------+---------------+
| 288814d4-45c5-4ad8-8146-35b3b9657363 | ctlplane-subnet | 33210ead-1bcc-4512-aefc-a601a59bb8ad | 172.16.0.0/16 |
+--------------------------------------+-----------------+--------------------------------------+---------------+
(undercloud) [stack@pike ~]$
OR
neutron subnet-list
Get the Subnet UUID from here
Update the DNS nameserver in the subnet for provisioning on the undercloud
openstack subnet set --dns-nameserver 172.16.0.1 288814d4-45c5-4ad8-8146-35b3b9657363
OR
neutron subnet-update 288814d4-45c5-4ad8-8146-35b3b9657363 --dns_nameserver 172.16.0.1
--
Ensure the subnet update reflects the DNS server
(undercloud) [stack@pike ~]$ openstack subnet show 288814d4-45c5-4ad8-8146-35b3b9657363
+-------------------------+------------------------------------------------------------+
| Field | Value |
+-------------------------+------------------------------------------------------------+
| allocation_pools | 172.16.201.11-172.16.201.51 |
| cidr | 172.16.0.0/16 |
| created_at | 2018-04-03T00:32:02Z |
| description | |
| dns_nameservers | 172.16.0.1 |
| enable_dhcp | True |
| gateway_ip | 172.16.0.1 |
| host_routes | destination='169.254.169.254/32', gateway='172.16.128.177' |
| id | 288814d4-45c5-4ad8-8146-35b3b9657363 |
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | ctlplane-subnet |
| network_id | 33210ead-1bcc-4512-aefc-a601a59bb8ad |
| project_id | 1531b6b3876d4ceaa037fa838643240d |
| revision_number | 1 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2018-04-03T00:34:14Z |
| use_default_subnet_pool | None |
+-------------------------+------------------------------------------------------------+
(undercloud) [stack@pike ~]$ openstack subnet list
+--------------------------------------+-----------------+--------------------------------------+---------------+
| ID | Name | Network | Subnet |
+--------------------------------------+-----------------+--------------------------------------+---------------+
| 288814d4-45c5-4ad8-8146-35b3b9657363 | ctlplane-subnet | 33210ead-1bcc-4512-aefc-a601a59bb8ad | 172.16.0.0/16 |
+--------------------------------------+-----------------+--------------------------------------+---------------+
(undercloud) [stack@pike ~]$
No comments:
Post a Comment