![Alex Schultz](/assets/img/avatar_default.png)
For a workaround for bug 1458625, a 32 second sleep was added to the url_available function that is run as part of the connectivity_tests task that is run after netconfig. This wait should be part of the netconfig task where the delay is needed when bringing up a new bridge in ubuntu. This will help ensure that the interfaces are ready after the netconfig task if the url_available task is removed or tasks are run in a different order. Change-Id: Ie715d6bf1622d33dd10b15c5bea74e05f1bba858 Related-Bug: 1458625 Closes-Bug: 1458954
80 lines
2.3 KiB
Puppet
80 lines
2.3 KiB
Puppet
notice('MODULAR: netconfig.pp')
|
|
|
|
$network_scheme = hiera('network_scheme')
|
|
|
|
class { 'l23network' :
|
|
use_ovs => hiera('use_neutron', false)
|
|
}
|
|
prepare_network_config($network_scheme)
|
|
$sdn = generate_network_config()
|
|
notify {'SDN': message => $sdn }
|
|
|
|
#Set arp_accept to 1 by default #lp1456272
|
|
sysctl::value { 'net.ipv4.conf.all.arp_accept': value => '1' }
|
|
sysctl::value { 'net.ipv4.conf.default.arp_accept': value => '1' }
|
|
|
|
# setting kernel reserved ports
|
|
# defaults are 49000,49001,35357,41055,58882
|
|
class { 'openstack::reserved_ports': }
|
|
|
|
### TCP connections keepalives and failover related parameters ###
|
|
# configure TCP keepalive for host OS.
|
|
# Send 3 probes each 8 seconds, if the connection was idle
|
|
# for a 30 seconds. Consider it dead, if there was no responces
|
|
# during the check time frame, i.e. 30+3*8=54 seconds overall.
|
|
# (note: overall check time frame should be lower then
|
|
# nova_report_interval).
|
|
class { 'openstack::keepalive' :
|
|
tcpka_time => '30',
|
|
tcpka_probes => '8',
|
|
tcpka_intvl => '3',
|
|
tcp_retries2 => '5',
|
|
}
|
|
|
|
# increase network backlog for performance on fast networks
|
|
sysctl::value { 'net.core.netdev_max_backlog': value => '261144' }
|
|
|
|
L2_port<||> -> Sysfs_config_value<||>
|
|
L3_ifconfig<||> -> Sysfs_config_value<||>
|
|
L3_route<||> -> Sysfs_config_value<||>
|
|
|
|
class { 'sysfs' :}
|
|
|
|
sysfs_config_value { 'rps_cpus' :
|
|
ensure => 'present',
|
|
name => '/etc/sysfs.d/rps_cpus.conf',
|
|
value => cpu_affinity_hex($::processorcount),
|
|
sysfs => '/sys/class/net/*/queues/rx-*/rps_cpus',
|
|
exclude => '/sys/class/net/lo/*',
|
|
}
|
|
|
|
sysfs_config_value { 'xps_cpus' :
|
|
ensure => 'present',
|
|
name => '/etc/sysfs.d/xps_cpus.conf',
|
|
value => cpu_affinity_hex($::processorcount),
|
|
sysfs => '/sys/class/net/*/queues/tx-*/xps_cpus',
|
|
exclude => '/sys/class/net/lo/*',
|
|
}
|
|
|
|
if !defined(Package['irqbalance']) {
|
|
package { 'irqbalance':
|
|
ensure => installed,
|
|
}
|
|
}
|
|
|
|
if !defined(Service['irqbalance']) {
|
|
service { 'irqbalance':
|
|
ensure => running,
|
|
require => Package['irqbalance'],
|
|
}
|
|
}
|
|
|
|
# We need to wait at least 30 seconds for the bridges and other interfaces to
|
|
# come up after being created. This should allow for all interfaces to be up
|
|
# and ready for traffic before proceeding with further deploy steps. LP#1458954
|
|
exec { 'wait-for-interfaces':
|
|
path => '/usr/bin:/bin',
|
|
command => 'sleep 32',
|
|
require => Class['l23network'],
|
|
}
|