aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-10-13 06:43:44 +0000
committerGerrit Code Review <review@openstack.org>2017-10-13 06:43:44 +0000
commitbd5f80ef0bd4733d6da85279aae244737b07dde8 (patch)
tree66340d2dd3da6702ca1cdae937d3828f43f98caf /manifests/profile
parentcb32fd0ab470e5aa1d01d4ab93979be4d5af6afb (diff)
parentf0c17319a9d48ec63e620c3510220fb88557a0c0 (diff)
Merge "ovn HA: Enable ip_nonlocal_bind sysctl flag" into stable/pike
Diffstat (limited to 'manifests/profile')
-rw-r--r--manifests/profile/pacemaker/ovn_dbs_bundle.pp7
-rw-r--r--manifests/profile/pacemaker/ovn_northd.pp6
2 files changed, 13 insertions, 0 deletions
diff --git a/manifests/profile/pacemaker/ovn_dbs_bundle.pp b/manifests/profile/pacemaker/ovn_dbs_bundle.pp
index 8c287b1..a0fe736 100644
--- a/manifests/profile/pacemaker/ovn_dbs_bundle.pp
+++ b/manifests/profile/pacemaker/ovn_dbs_bundle.pp
@@ -71,6 +71,13 @@ class tripleo::profile::pacemaker::ovn_dbs_bundle (
}
if $step >= 3 {
+
+ # Allow non local bind, because all the ovsdb-server's running in the
+ # cluster try to open a TCP socket on the VIP.
+ ensure_resource('sysctl::value', 'net.ipv4.ip_nonlocal_bind', {
+ 'value'=> 1,
+ })
+
if $pacemaker_master {
$ovndb_servers_resource_name = 'ovndb_servers'
$ovndb_servers_ocf_name = 'ovn:ovndb-servers'
diff --git a/manifests/profile/pacemaker/ovn_northd.pp b/manifests/profile/pacemaker/ovn_northd.pp
index 4f39a7b..7b081b7 100644
--- a/manifests/profile/pacemaker/ovn_northd.pp
+++ b/manifests/profile/pacemaker/ovn_northd.pp
@@ -61,6 +61,12 @@ class tripleo::profile::pacemaker::ovn_northd (
tries => $pcs_tries,
node => $::hostname,
}
+
+ # Allow non local bind, because all the ovsdb-server's running in the
+ # cluster try to open a TCP socket on the VIP.
+ ensure_resource('sysctl::value', 'net.ipv4.ip_nonlocal_bind', {
+ 'value'=> 1,
+ })
}
if $step >= 3 and downcase($::hostname) == $pacemaker_master {