diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-09-15 19:01:09 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-09-15 19:15:56 +0000 |
commit | a05c0d1dcdf8b28a9478fed2310c3ae480bec46e (patch) | |
tree | 23a365c34c130cbcf6a746cfa9c027c4e1b663ad /patches/fuel-plugin-ovs/0009-install.sh-AArch64-Fix-dpkg-installation-issues.patch | |
parent | 7e91c2c84439e27212e06b71b3546399eda37984 (diff) |
fuel-plugin-ovs: Simplify debian version strings
Remove all suffixes from OVS debian packages, and simplify the
plugin code handling the fetching of said packages.
While at it, enable:
- local mirror caches, by mounting /etc/hosts in the docker
builder
- HACK: mismatch between debian source versions and debian binaries
Related-bug: ARMBAND-89
Change-Id: Ifbf0e11c90cf7b2f76ce72af8ca3469a33bee071
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 6be5639d8ce2f6e282db6f3d19699a341b9b491c)
Diffstat (limited to 'patches/fuel-plugin-ovs/0009-install.sh-AArch64-Fix-dpkg-installation-issues.patch')
-rw-r--r-- | patches/fuel-plugin-ovs/0009-install.sh-AArch64-Fix-dpkg-installation-issues.patch | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/patches/fuel-plugin-ovs/0009-install.sh-AArch64-Fix-dpkg-installation-issues.patch b/patches/fuel-plugin-ovs/0009-install.sh-AArch64-Fix-dpkg-installation-issues.patch deleted file mode 100644 index 8f7a259f..00000000 --- a/patches/fuel-plugin-ovs/0009-install.sh-AArch64-Fix-dpkg-installation-issues.patch +++ /dev/null @@ -1,82 +0,0 @@ -From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> -Date: Wed, 14 Sep 2016 16:42:48 +0200 -Subject: [PATCH] install.sh: AArch64: Fix dpkg installation issues - -There are 2 minor issues with our Armband version string of -openvswitch packages shipped for fuel-plugin-ovs: - -1. Setting up openvswitch-datapath-dkms (2.5.90~08.08-1+amos1) - ... Error! Could not find module source directory. - -This happens because our version string has a "+" char in it, -and the /usr/src path looked for is trimmed at that char, -hence dkms installation is looking for -"/usr/src/openvswitch-2.5.90~08.08" directory instead of -"/usr/src/openvswitch-2.5.90~08.08+amos1". - -Temporary fix will be to add the following to install.sh: -ln -s openvswitch-2.5.90~08.08+amos1/ openvswitch-2.5.90~08.08 - -2. dpkg -i complains about "breaks" dependencies in debian/control -when reinstalling OVS 2.5.90. - -This happens because of faulty dpkg version comparison algorithm: -$ dpkg --compare-versions 2.5.90~08.08-1+amos1 - gt 2.5.90 && echo "This should work!" -$ - -The temporary fix will be to add --force-breaks to dpkg invocation. - -Related-bug: ARMBAND-89 - -Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> ---- - deployment_scripts/install.sh | 26 ++++++++++++++++++-------- - 1 file changed, 18 insertions(+), 8 deletions(-) - -diff --git a/deployment_scripts/install.sh b/deployment_scripts/install.sh -index 46d74bb..169c64a 100644 ---- a/deployment_scripts/install.sh -+++ b/deployment_scripts/install.sh -@@ -17,10 +17,20 @@ if [ $nsh = 'true' ]; then - fi - - curl http://$host:8080/plugins/fuel-plugin-ovs-0.9/repositories/ubuntu/${ovs} | tar -xzv --dpkg -i openvswitch-datapath-dkms_*.deb --dpkg -i openvswitch-common_*.deb --dpkg -i openvswitch-switch_*.deb --dpkg -i python-openvswitch_*.deb -+ -+# FIXME(armband): https://jira.opnfv.org/browse/ARMBAND-89 -+# e.g.: ln -s openvswitch-2.5.90~08.08+amos1 openvswitch-2.5.90~08.08 -+for usr_src_ovs in /usr/src/openvswitch-*+*; do -+ echo ${usr_src_ovs} -+ if [ -d ${usr_src_ovs} ]; then -+ ln -sf ${usr_src_ovs} ${usr_src_ovs%+*} -+ fi -+done -+ -+dpkg -i --force-breaks openvswitch-datapath-dkms_*.deb -+dpkg -i --force-breaks openvswitch-common_*.deb -+dpkg -i --force-breaks openvswitch-switch_*.deb -+dpkg -i --force-breaks python-openvswitch_*.deb - if [ $dpdk = 'true' ]; then - if [ $nsh = 'true' -o -n $dpdk_socket_mem ]; then - dpkg -i libxenstore3.0*.deb -@@ -28,12 +38,12 @@ if [ $dpdk = 'true' ]; then - # FIXME(armband): arm64 DPDK ships individual libs, install them all - dpdk_deb_name=$(ls dpdk_*) - dpdk_deb_suffix=${dpdk_deb_name#dpdk_} -- dpkg -i *${dpdk_deb_suffix%_*}*.deb -+ dpkg -i --force-breaks *${dpdk_deb_suffix%_*}*.deb - else -- dpkg -i libdpdk0_*.deb -- dpkg -i dpdk_*.deb -+ dpkg -i --force-breaks libdpdk0_*.deb -+ dpkg -i --force-breaks dpdk_*.deb - fi -- dpkg -i openvswitch-switch-dpdk_*.deb -+ dpkg -i --force-breaks openvswitch-switch-dpdk_*.deb - fi - if ! [ $nsh = 'true' -a -n $dpdk_socket_mem ]; then - #Set to 0, dpdk init script mount hugepages but don't change current allocation |