summaryrefslogtreecommitdiffstats
path: root/build/patches
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-04-26 09:47:24 -0400
committerTim Rozet <trozet@redhat.com>2017-04-28 04:23:24 -0400
commite588f35864c32c7a28f8efdcf5f69ace5020842b (patch)
tree8a5e25d7b4b4048f1cd3b8553847bcf970132a02 /build/patches
parente74b8e1e863e9d0e541a897e5681275cad40db8a (diff)
Enable OpenDaylight clustering mode for FDIO scenarios
JIRA: APEX-450 Change-Id: I6d570c19ff5286b1307e38eee439116839b1d612 Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'build/patches')
-rw-r--r--build/patches/disable_odl_clustering.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/build/patches/disable_odl_clustering.patch b/build/patches/disable_odl_clustering.patch
deleted file mode 100644
index 151481fc..00000000
--- a/build/patches/disable_odl_clustering.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-diff --git a/manifests/profile/base/neutron/opendaylight.pp b/manifests/profile/base/neutron/opendaylight.pp
-index 3269f3e..556fe63 100644
---- a/manifests/profile/base/neutron/opendaylight.pp
-+++ b/manifests/profile/base/neutron/opendaylight.pp
-@@ -22,34 +22,19 @@
- # (Optional) The current step of the deployment
- # Defaults to hiera('step')
- #
--# [*odl_api_ips*]
--# (Optional) List of OpenStack Controller IPs for ODL API
--# Defaults to hiera('opendaylight_api_node_ips')
--#
--# [*node_name*]
--# (Optional) The short hostname of node
--# Defaults to hiera('bootstack_nodeid')
-+# [*primary_node*]
-+# (Optional) The hostname of the first node of this role type
-+# Defaults to hiera('bootstrap_nodeid', undef)
- #
- class tripleo::profile::base::neutron::opendaylight (
- $step = hiera('step'),
-- $odl_api_ips = hiera('opendaylight_api_node_ips'),
-- $node_name = hiera('bootstack_nodeid')
-+ $primary_node = hiera('bootstrap_nodeid', undef),
- ) {
-
- if $step >= 1 {
-- if empty($odl_api_ips) {
-- fail('No IPs assigned to OpenDaylight Api Service')
-- } elsif size($odl_api_ips) == 2 {
-- fail('2 node OpenDaylight deployments are unsupported. Use 1 or greater than 2')
-- } elsif size($odl_api_ips) > 2 {
-- $node_string = split($node_name, '-')
-- $ha_node_index = $node_string[-1] + 1
-- class { '::opendaylight':
-- enable_ha => true,
-- ha_node_ips => $odl_api_ips,
-- ha_node_index => $ha_node_index,
-- }
-- } else {
-+ # Configure ODL only on first node of the role where this service is
-+ # applied
-+ if $primary_node == downcase($::hostname) {
- include ::opendaylight
- }
- }