X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=patches%2Ffuel-plugin-opendaylight%2F0001-ODL-leveldb-leveldbjni-Enable-arm64-support.patch;h=30e9010ab8030fd26662efc87660739ba7495889;hb=refs%2Fchanges%2F71%2F27571%2F1;hp=5cfa99b53cf148e93f52ffb8e247928a71f3e788;hpb=572381de2421d62b14028cf5d4efa721ee434832;p=armband.git diff --git a/patches/fuel-plugin-opendaylight/0001-ODL-leveldb-leveldbjni-Enable-arm64-support.patch b/patches/fuel-plugin-opendaylight/0001-ODL-leveldb-leveldbjni-Enable-arm64-support.patch index 5cfa99b5..30e9010a 100644 --- a/patches/fuel-plugin-opendaylight/0001-ODL-leveldb-leveldbjni-Enable-arm64-support.patch +++ b/patches/fuel-plugin-opendaylight/0001-ODL-leveldb-leveldbjni-Enable-arm64-support.patch @@ -16,18 +16,20 @@ For more info about this ODL limitation, see [1]. [ Alexandru.Avadanii@enea.com ] Remove JAVA8 changes after upstream rework. Convert puppet patching to prebuilt DEB package, as part of [2]. +Rebase for Fuel Newton. [1] https://bugs.opendaylight.org/show_bug.cgi?id=3973 [2] https://jira.opnfv.org/browse/ARMBAND-114 +Change-Id: Ia7abf375ffd122ff0ac7b12422f64526ff2c78fd Signed-off-by: Florin Dumitrascu Signed-off-by: Stanislaw Kardach Signed-off-by: Alexandru Avadanii --- - .../puppet/modules/opendaylight/manifests/init.pp | 8 ++++++++ - .../modules/opendaylight/manifests/install.pp | 12 +++++++++-- - .../modules/opendaylight/manifests/leveldbjni.pp | 24 ++++++++++++++++++++++ - 3 files changed, 42 insertions(+), 2 deletions(-) + .../puppet/modules/opendaylight/manifests/init.pp | 8 +++++++ + .../modules/opendaylight/manifests/install.pp | 7 ++++++ + .../modules/opendaylight/manifests/leveldbjni.pp | 25 ++++++++++++++++++++++ + 3 files changed, 40 insertions(+) create mode 100644 deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp diff --git a/deployment_scripts/puppet/modules/opendaylight/manifests/init.pp b/deployment_scripts/puppet/modules/opendaylight/manifests/init.pp @@ -48,44 +50,33 @@ index 69cc23a..791ceba 100644 + } } diff --git a/deployment_scripts/puppet/modules/opendaylight/manifests/install.pp b/deployment_scripts/puppet/modules/opendaylight/manifests/install.pp -index 1962609..ca98532 100644 +index 2c3d776..673ccb3 100644 --- a/deployment_scripts/puppet/modules/opendaylight/manifests/install.pp +++ b/deployment_scripts/puppet/modules/opendaylight/manifests/install.pp -@@ -17,6 +17,12 @@ class opendaylight::install ( - ensure => installed, +@@ -20,6 +20,12 @@ class opendaylight::install ( + ensure => $odl_package, } + if ($::osfamily == 'Debian' and $::opendaylight::arch == 'arm64') { + class { 'opendaylight::leveldbjni': -+ require => Package[$odl_package], ++ require => Package['opendaylight'], + } + } + - # quagga - class { 'opendaylight::quagga': - before => Service['opendaylight'] -@@ -35,7 +41,8 @@ class opendaylight::install ( - - debug("Set odl rest api port to ${rest_port}") - -- file { "${conf_dir}/jetty.xml": -+ file { 'jetty.xml': -+ path => "${conf_dir}/jetty.xml", - ensure => file, - owner => 'odl', - content => template('opendaylight/jetty.xml.erb') -@@ -71,6 +78,7 @@ class opendaylight::install ( - Package[$odl_package] -> + #Temporary solution until number of allowed open files + #will be fixed in main systemd service file + file {'/etc/systemd/system/opendaylight.service.d': +@@ -88,6 +94,7 @@ class opendaylight::install ( + Package['opendaylight'] -> Ini_setting <||> -> Firewall <||> -> -- File <||> -> -+ File['jetty.xml'] -> + Class['opendaylight::leveldbjni'] -> + File <||> ~> Service['opendaylight'] } diff --git a/deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp b/deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp new file mode 100644 -index 0000000..ed97c5d +index 0000000..0a20fa3 --- /dev/null +++ b/deployment_scripts/puppet/modules/opendaylight/manifests/leveldbjni.pp @@ -0,0 +1,25 @@