diff options
author | Michael Chapman <woppin@gmail.com> | 2016-06-02 15:03:47 +1000 |
---|---|---|
committer | Michael Chapman <woppin@gmail.com> | 2016-06-09 07:50:04 +1000 |
commit | 2fefb7de8758acd7d2ce4ee86c47474932fb651e (patch) | |
tree | 3b7f68ae92ac8680a886954132a5cd7e249e0886 /ci/deploy.sh | |
parent | cb503a62f938187a57bcea7565760a50b52a0c90 (diff) |
Add required kernel modules for dpdk
vfio_pci and uio_pci_generic are required for dpdk, and will now
be available on boot.
Change-Id: Ie91d0e66d2b797d909944df662f9f087f36630a1
Signed-off-by: Michael Chapman <woppin@gmail.com>
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-x | ci/deploy.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index 1a84421e..5f530530 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -821,6 +821,31 @@ function undercloud_prep_overcloud_deploy { ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "rm -f overcloud-full.qcow2" scp ${SSH_OPTIONS[@]} $RESOURCES/overcloud-full-${SDN_IMAGE}.qcow2 "stack@$UNDERCLOUD":overcloud-full.qcow2 + # Install ovs-dpdk inside the overcloud image if it is enabled. + if [ "${deploy_options_array['dataplane']}" == 'ovs_dpdk' ]; then + # install dpdk packages before ovs + echo -e "${blue}INFO: Enabling kernel modules for dpdk inside overcloud image${reset}" + + ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI + cat << EOF > vfio_pci.modules +#!/bin/bash +exec /sbin/modprobe vfio_pci >/dev/null 2>&1 +EOF + + cat << EOF > uio_pci_generic.modules +#!/bin/bash +exec /sbin/modprobe uio_pci_generic >/dev/null 2>&1 +EOF + + LIBGUESTFS_BACKEND=direct virt-customize --upload vfio_pci.modules:/etc/sysconfig/modules/ \ + --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" \ + -a overcloud-full.qcow2 +EOI + + fi + # Add performance deploy options if they have been set if [ ! -z "${deploy_options_array['performance']}" ]; then |