Adding vsperf support 95/16695/12
authorDan Radez <dradez@redhat.com>
Thu, 28 Apr 2016 19:47:18 +0000 (15:47 -0400)
committerDan Radez <dradez@redhat.com>
Mon, 18 Jul 2016 12:57:00 +0000 (08:57 -0400)
JIRA: APEX-141

Change-Id: I9983ec5583100b7c536524a01e64bb6884b38d1d
Signed-off-by: Dan Radez <dradez@redhat.com>
build/overcloud-full.sh
config/deploy/os-nosdn-performance-ha.yaml
docs/release-notes/release-notes.rst
lib/post-install-functions.sh
lib/python/apex/deploy_env.py

index 6143b28..675343d 100755 (executable)
@@ -74,6 +74,11 @@ pushd puppet-fdio > /dev/null
 git archive --format=tar.gz --prefix=fdio/ HEAD > ../puppet-fdio.tar.gz
 popd > /dev/null
 
+# tar up vsperf
+rm -rf vsperf vsperf.tar.gz
+git clone https://gerrit.opnfv.org/gerrit/vswitchperf vsperf
+tar czf vsperf.tar.gz vsperf
+
 # installing forked opnfv-puppet-tripleo
 # enable connection tracking for protocal sctp
 # upload dpdk rpms but do not install
@@ -83,6 +88,7 @@ popd > /dev/null
 # install doctor driver ## Can be removed in Newton
 # install fd.io yum repo and packages
 # upload puppet fdio
+# git clone vsperf into the overcloud image
 LIBGUESTFS_BACKEND=direct virt-customize \
     --upload ../opnfv-puppet-tripleo.tar.gz:/etc/puppet/modules \
     --run-command "if ! rpm -qa | grep python-redis; then yum install -y python-redis; fi" \
@@ -107,6 +113,8 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --install unzip,vpp,honeycomb \
     --upload puppet-fdio.tar.gz:/etc/puppet/modules \
     --run-command "cd /etc/puppet/modules && tar xzf puppet-fdio.tar.gz" \
+    --upload vsperf.tar.gz:/var/opt \
+    --run-command "cd /var/opt && tar xzf vsperf.tar.gz" \
     -a overcloud-full_build.qcow2
 
 mv -f overcloud-full_build.qcow2 overcloud-full.qcow2
index f7312ad..9bbbdd2 100644 (file)
@@ -8,6 +8,7 @@ deploy_options:
   congress: false
   sfc: false
   vpn: false
+  vsperf: false
   performance:
     Controller:
       kernel:
index 9f3ddb5..a066e07 100644 (file)
@@ -198,6 +198,9 @@ Known issues
 | JIRA: APEX-86                        | Compute node count configurable      |
 |                                      | for virtual deployments              |
 +--------------------------------------+--------------------------------------+
+| JIRA: APEX-141                       | Adding VSPERF support                |
+|                                      |                                      |
++--------------------------------------+--------------------------------------+
 
 Workarounds
 -----------
index 23c8336..ec2ca89 100755 (executable)
@@ -131,6 +131,12 @@ done
 EOI
   fi
 
+  ### VSPERF ###
+  if [[ "${deploy_options_array['vsperf']}" == 'True' ]]; then
+    echo "${blue}\nVSPERF enabled, running build_base_machine.sh\n${reset}"
+    overcloud_connect "compute0" "sudo sh -c 'cd /var/opt/vsperf/systems/ && ./build_base_machine.sh 2>&1 > /var/log/vsperf.log'"
+  fi
+
   # Collect deployment logs
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
 mkdir -p ~/deploy_logs
index 1fe137e..816dc11 100644 (file)
@@ -21,7 +21,7 @@ REQ_DEPLOY_SETTINGS = ['sdn_controller',
                        'vpn',
                        'vpp']
 
-OPT_DEPLOY_SETTINGS = ['performance']
+OPT_DEPLOY_SETTINGS = ['performance', 'vsperf']
 
 VALID_ROLES = ['Controller', 'Compute', 'ObjectStorage']
 VALID_PERF_OPTS = ['kernel', 'nova']