timeout_comissioning: 10 # commissioning timeout in minutes
timeout_deploying: 15 # deploy timeout in minutes
network: # Cluster nodes network (mandatory)
+ interface_mtu: 1500 # Cluster-level MTU (optional)
ntp_strata_host1: 1.pool.ntp.org # NTP1 (optional)
ntp_strata_host2: 0.pool.ntp.org # NTP2 (optional)
node: ... # List of per-node cfg (mandatory)
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
- maas/region.sls | 40 ++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 40 insertions(+)
+ maas/region.sls | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
diff --git a/maas/region.sls b/maas/region.sls
-index e0f65b0..d151e3a 100644
+index e0f65b0..5da3a7f 100644
--- a/maas/region.sls
+++ b/maas/region.sls
-@@ -38,6 +38,46 @@ restore_maas_database_{{ region.database.name }}:
+@@ -38,6 +38,36 @@ restore_maas_database_{{ region.database.name }}:
{%- endif %}
+ - require_in:
+ - service: maas_region_services
+
-+maas_ip_blksize_force:
-+ file.replace:
-+ - name: "/usr/lib/python3/dist-packages/tftp/bootstrap.py"
-+ - pattern: 'int_blksize = min\(\(int_blksize, MAX_BLOCK_SIZE\)\)'
-+ - repl: 'int_blksize = 1464'
-+ - require:
-+ - pkg: maas_region_packages
-+ - require_in:
-+ - service: maas_region_services
-+
+maas_interface_default_mode_dhcp:
+ file.replace:
+ - name: "/usr/lib/python3/dist-packages/maasserver/models/node.py"
mcpcontrol_interface: ${_param:opnfv_fn_vm_primary_interface}
primary_interface: ${_param:opnfv_fn_vm_secondary_interface}
pxe_admin_interface: ${_param:opnfv_fn_vm_tertiary_interface}
- interface_mtu: 1500
- # MaaS has issues using MTU > 1500 for PXE interface
- pxe_admin_interface_mtu: 1500
linux_system_codename: xenial
maas_admin_username: opnfv
dns_server01: '{{ nm.dns_public[0] }}'
name: ${_param:mcpcontrol_interface}
type: eth
proto: dhcp
+ mtu: ${_param:interface_mtu}
primary_interface:
enabled: true
name: ${_param:primary_interface}
pxe_admin_interface:
enabled: true
name: ${_param:pxe_admin_interface}
- mtu: ${_param:pxe_admin_interface_mtu}
+ # MaaS has issues using MTU > 1500 for PXE interface
+ mtu: 1500
proto: static
address: ${_param:single_address}
netmask: ${_param:opnfv_net_admin_mask}
opnfv_vcp_vm_tertiary_interface: ens4
{%- endif %}
+ interface_mtu: {{ conf.idf.fuel.network.interface_mtu or 1500 }}
+
ntp_strata_host1: {{ conf.idf.fuel.network.ntp_strata_host1 or '1.pool.ntp.org' }}
ntp_strata_host2: {{ conf.idf.fuel.network.ntp_strata_host2 or '0.pool.ntp.org' }}
{%- set vlans = { nm.vlan_admin: nm.ctl01.nic_admin, nm.vlan_mgmt: nm.ctl01.nic_mgmt, nm.vlan_public: nm.ctl01.nic_public } %}
---
parameters:
- _param:
- interface_mtu: 1500
linux:
network:
interface:
cluster_node03_hostname: ${_param:openstack_control_node03_hostname}
cluster_node03_address: ${_param:openstack_control_node03_address}
nova_vncproxy_url: https://${_param:cluster_public_host}:6080
- interface_mtu: 1500
keepalived_vip_interface: br-ctl
keepalived_vip_virtual_router_id: 69
linux_system_codename: xenial
type: ovs_port
ovs_bridge: br-floating
bridge: br-floating
+ mtu: ${_param:interface_mtu}
<<: *db_conn_recycle_time
vlan_aware_vms: true
root_helper_daemon: false
+ global_physnet_mtu: ${_param:interface_mtu}
+ backend:
+ external_mtu: ${_param:interface_mtu}
keystone:
server:
<<: *db_conn_recycle_time
name_servers:
- {{ nm.net_admin_gw }}
noifupdown: true
+ mtu: ${_param:interface_mtu}
single:
enabled: true
type: eth
name: ${_param:single_nic}
address: ${_param:single_address}
netmask: ${_param:opnfv_net_public_mask}
+ mtu: ${_param:interface_mtu}
{%- endif %}
address: ${_param:pxe_admin_address}
netmask: ${_param:opnfv_net_admin_mask}
noifupdown: true
+ mtu: ${_param:interface_mtu}
single_int:
enabled: true
type: eth
netmask: ${_param:opnfv_net_public_mask}
gateway: ${_param:opnfv_net_public_gw}
name_servers: {{ nm.dns_public }}
+ mtu: ${_param:interface_mtu}
control_int:
enabled: true
type: eth
name: ${_param:control_nic}
address: ${_param:control_address}
netmask: ${_param:opnfv_net_mgmt_mask}
+ mtu: ${_param:interface_mtu}
{%- else %}
{#- For NOVCP scenarios, base config is in kvm_pdf, only add/override gw #}
parameters:
- cluster.mcp-common-noha.openstack_compute_pdf
parameters:
_param:
- interface_mtu: 9000
linux_system_codename: xenial
nova:
compute:
- cluster.mcp-common-noha.openstack_control_pdf
parameters:
_param:
- interface_mtu: 9000
linux_system_codename: xenial
ceilometer_create_gnocchi_resources: 'True'
barbican_integration_enabled: 'false'
server:
vlan_aware_vms: true
root_helper_daemon: false
- global_physnet_mtu: 9000
+ global_physnet_mtu: ${_param:interface_mtu}
backend:
- external_mtu: 9000
+ external_mtu: ${_param:interface_mtu}
{%- if '-bgpvpn-' in conf.MCP_DEPLOY_SCENARIO %}
bgp_vpn:
enabled: True
type: eth
address: ${_param:pxe_admin_address}
netmask: ${_param:opnfv_net_admin_mask}
+ mtu: ${_param:interface_mtu}
noifupdown: true
{#- prevent duplicates for tagged mgmt on the same physical interface as PXE/admin #}
- cluster.mcp-common-noha.openstack_gateway_pdf
parameters:
_param:
- interface_mtu: 9000
linux_system_codename: xenial
neutron:
gateway:
- cluster.mcp-odl-noha.opendaylight.control_pdf
parameters:
_param:
- interface_mtu: 1500
linux_system_codename: xenial
opendaylight:
server:
-Subproject commit 7b870a0cf6306b3de451860829508c0633493284
+Subproject commit 8f43c9af3ca49498659fb3caa08162504b50ab07