Problems with order of DNS nameservers in Red Hat Enterprise Linux OpenStack Platform 7

Solution In Progress - Updated -

Issue

In Red Hat Enterprise Linux OpenStack Platform 7, instances need to point to 2 different DNS servers, e.g. 8.8.8.8 and 8.8.4.4, 8.8.8.8 as the primary and 8.8.4.4 as the secodary.

It is not possible to choose the primary vs the secondary nameserver:

neutron subnet-update <SUBNET-UUID> --dns_nameservers list=true 8.8.8.8 8.8.4.4

Produces:

[stack@undercloud ~]$ neutron subnet-show <SUBNET-UUID>
+-------------------+----------------------------------------------------+
| Field             | Value                                              |
+-------------------+----------------------------------------------------+
| allocation_pools  | {"start": "192.168.0.2", "end": "192.168.0.200"} |
| cidr              | 192.168.0.0/24                                    |
| dns_nameservers   | 8.8.4.4                                     |
|                   | 8.8.8.8                                     |
| enable_dhcp       | True                                               |
| gateway_ip        | 192.168.0.254                                     |
| host_routes       |                                                    |
| id                | <SUBNET-UUID>               |
| ip_version        | 4                                                  |
| ipv6_address_mode |                                                    |
| ipv6_ra_mode      |                                                    |
| name              | subnet-name                            |
| network_id        | <NETWORK-UUID>               |
| subnetpool_id     |                                                    |
| tenant_id         | <TENANT-UUID>                   |
+-------------------+----------------------------------------------------+

The following produces the same order

[stack@undercloud ~]$ neutron subnet-update <SUBNET-UUID> --dns_nameservers list=true 8.8.4.4  8.8.8.8 
[stack@undercloud ~]$ neutron subnet-show <SUBNET-UUID>
+-------------------+----------------------------------------------------+
| Field             | Value                                              |
+-------------------+----------------------------------------------------+
| allocation_pools  | {"start": "192.168.0.2", "end": "192.168.0.200"} |
| cidr              | 192.168.0.0/24                                    |
| dns_nameservers   | 8.8.4.4                                     |
|                   | 8.8.8.8                                     |
| enable_dhcp       | True                                               |
| gateway_ip        | 192.168.0.254                                     |
| host_routes       |                                                    |
| id                | <SUBNET-UUID>               |
| ip_version        | 4                                                  |
| ipv6_address_mode |                                                    |
| ipv6_ra_mode      |                                                    |
| name              | subnet-name                            |
| network_id        | <NETWORK-UUID>               |
| subnetpool_id     |                                                    |
| tenant_id         | <TENANT-UUID>                   |
+-------------------+----------------------------------------------------+

Environment

Red Hat Enterprise Linux OpenStack Platform 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content