Install dpdk packages when dataplane is set to ovs_dpdk 69/15369/2
authorFeng Pan <fpan@redhat.com>
Fri, 10 Jun 2016 13:01:30 +0000 (09:01 -0400)
committerFeng Pan <fpan@redhat.com>
Fri, 10 Jun 2016 19:12:50 +0000 (15:12 -0400)
Change-Id: Ib9978595738bb70172244af0505b6b43b0bc60a2
Signed-off-by: Feng Pan <fpan@redhat.com>
build/overcloud-full.sh
build/variables.sh
ci/deploy.sh

index 065201f..af978ed 100755 (executable)
@@ -23,10 +23,19 @@ mv -f images/overcloud-full.qcow2 images/overcloud-full_build.qcow2
 
 pushd images > /dev/null
 
+dpdk_pkg_str=''
+for package in ${dpdk_rpms[@]}; do
+  curl -O "$dpdk_uri_base/$package"
+  dpdk_pkg_str+=" --upload $package:/root/dpdk_rpms"
+done
+
 # remove openstack-neutron-openvswitch, ain't nobody need that in OPNFV
 # enable connection tracking for protocal sctp
+# upload dpdk rpms but do not install
 LIBGUESTFS_BACKEND=direct virt-customize \
     --run-command "echo 'nf_conntrack_proto_sctp' > /etc/modules-load.d/nf_conntrack_proto_sctp.conf" \
+    --run-command "mkdir /root/dpdk_rpms" \
+    $dpdk_pkg_str \
     -a overcloud-full_build.qcow2
 
 mv -f overcloud-full_build.qcow2 overcloud-full.qcow2
index 115650d..ad1edf9 100644 (file)
 rdo_images_uri=https://ci.centos.org/artifacts/rdo/images/mitaka/delorean/stable/
 onos_release_uri=https://dl.dropboxusercontent.com/u/7079970/
 onos_release_file=onos-1.5.0.tar.gz
+
+dpdk_uri_base=http://artifacts.opnfv.org/ovsnfv
+dpdk_rpms=(
+'ovs4opnfv-dpdk-16.04.0-2.el7.centos.x86_64.rpm'
+'ovs4opnfv-dpdk-devel-16.04.0-2.el7.centos.x86_64.rpm'
+'ovs4opnfv-dpdk-examples-16.04.0-2.el7.centos.x86_64.rpm'
+'ovs4opnfv-dpdk-tools-16.04.0-2.el7.centos.x86_64.rpm'
+)
\ No newline at end of file
index f9a5f0c..25dc6aa 100755 (executable)
@@ -803,11 +803,7 @@ function undercloud_prep_overcloud_deploy {
     exit 1
   fi
 
-  # Handle different dataplanes
-  if [ "${deploy_options_array['dataplane']}" != 'ovs' ]; then
-    echo "${red}ovs is the only currently available dataplane. ${deploy_options_array['dataplane']} not implemented${reset}"
-    exit 1
-  fi
+
 
   # Make sure the correct overcloud image is available
   if [ ! -f $RESOURCES/overcloud-full-${SDN_IMAGE}.qcow2 ]; then
@@ -841,9 +837,12 @@ EOF
                                                --upload uio_pci_generic.modules:/etc/sysconfig/modules/ \
                                                --run-command "chmod 0755 /etc/sysconfig/modules/vfio_pci.modules" \
                                                --run-command "chmod 0755 /etc/sysconfig/modules/uio_pci_generic.modules" \
+                                               --run-command "yum install -y /root/dpdk_rpms/*" \
                                                -a overcloud-full.qcow2
 EOI
-
+  elif [ "${deploy_options_array['dataplane']}" != 'ovs' ]; then
+    echo "${red}${deploy_options_array['dataplane']} not supported${reset}"
+    exit 1
   fi
 
   # Set ODL version accordingly