Merge "Partial Revert "Don't pass the DNSServers param in undercloud env"" into stable/ussuri
This commit is contained in:
commit
5bc44f7321
|
@ -175,6 +175,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.24.1',
|
{'gateway': '192.168.24.1',
|
||||||
|
@ -223,6 +224,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
'MysqlIPv6': True,
|
'MysqlIPv6': True,
|
||||||
'IronicIpVersion': '6',
|
'IronicIpVersion': '6',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': 'fd12:3456:789a:1::1',
|
{'gateway': 'fd12:3456:789a:1::1',
|
||||||
'host_routes': [],
|
'host_routes': [],
|
||||||
|
@ -273,6 +275,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
'MysqlIPv6': True,
|
'MysqlIPv6': True,
|
||||||
'IronicIpVersion': '6',
|
'IronicIpVersion': '6',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': 'fd12:3456:789a:1::1',
|
{'gateway': 'fd12:3456:789a:1::1',
|
||||||
'host_routes': [],
|
'host_routes': [],
|
||||||
|
@ -346,6 +349,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.24.1',
|
{'gateway': '192.168.24.1',
|
||||||
|
@ -377,6 +381,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.10.1',
|
{'gateway': '192.168.10.1',
|
||||||
|
@ -410,6 +415,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.10.1',
|
{'gateway': '192.168.10.1',
|
||||||
|
@ -442,6 +448,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.24.1',
|
{'gateway': '192.168.24.1',
|
||||||
|
@ -472,6 +479,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.24.1',
|
{'gateway': '192.168.24.1',
|
||||||
|
@ -503,6 +511,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [],
|
'ControlPlaneStaticRoutes': [],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
{'gateway': '192.168.24.1',
|
{'gateway': '192.168.24.1',
|
||||||
|
@ -557,6 +566,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [
|
'ControlPlaneStaticRoutes': [
|
||||||
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'},
|
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'},
|
||||||
{'ip_netmask': '192.168.20.0/24', 'next_hop': '192.168.24.1'}],
|
{'ip_netmask': '192.168.20.0/24', 'next_hop': '192.168.24.1'}],
|
||||||
|
@ -646,6 +656,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [
|
'ControlPlaneStaticRoutes': [
|
||||||
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'},
|
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'},
|
||||||
{'ip_netmask': '192.168.20.0/24', 'next_hop': '192.168.24.1'}],
|
{'ip_netmask': '192.168.20.0/24', 'next_hop': '192.168.24.1'}],
|
||||||
|
@ -715,6 +726,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [
|
'ControlPlaneStaticRoutes': [
|
||||||
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'}],
|
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'}],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
|
@ -769,6 +781,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [
|
'ControlPlaneStaticRoutes': [
|
||||||
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'}],
|
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'}],
|
||||||
'IronicInspectorSubnets': [
|
'IronicInspectorSubnets': [
|
||||||
|
@ -841,6 +854,7 @@ class TestNetworkSettings(TestBaseNetworkSettings):
|
||||||
env = {}
|
env = {}
|
||||||
undercloud_config._process_network_args(env)
|
undercloud_config._process_network_args(env)
|
||||||
expected = {
|
expected = {
|
||||||
|
'DnsServers': '10.10.10.10,10.10.10.11',
|
||||||
'ControlPlaneStaticRoutes': [
|
'ControlPlaneStaticRoutes': [
|
||||||
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'},
|
{'ip_netmask': '192.168.10.0/24', 'next_hop': '192.168.24.1'},
|
||||||
{'ip_netmask': '192.168.20.0/24', 'next_hop': '192.168.24.1'},
|
{'ip_netmask': '192.168.20.0/24', 'next_hop': '192.168.24.1'},
|
||||||
|
|
|
@ -397,6 +397,7 @@ def _process_network_args(env):
|
||||||
'Please provide less than 6 '
|
'Please provide less than 6 '
|
||||||
'servers in undercloud_'
|
'servers in undercloud_'
|
||||||
'nameservers.')
|
'nameservers.')
|
||||||
|
env['DnsServers'] = ','.join(CONF['undercloud_nameservers'])
|
||||||
if netaddr.IPNetwork(CONF['local_ip']).version == 6:
|
if netaddr.IPNetwork(CONF['local_ip']).version == 6:
|
||||||
env['NovaIPv6'] = True
|
env['NovaIPv6'] = True
|
||||||
env['RabbitIPv6'] = True
|
env['RabbitIPv6'] = True
|
||||||
|
|
Loading…
Reference in New Issue