diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-06-15 17:19:51 +0200 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-06-15 16:59:36 +0000 |
commit | 1f8be57195cc5423edeb73ea26d644b698a35b08 (patch) | |
tree | a1e7d8e84fab6c3a15e117a7f9c415345772ce9c | |
parent | a8ced6b99a496fd01db2744e4b68f05d66582fe4 (diff) |
Execute yardstick sample ping scenario
This is the initial version of yardstick execution on LF POD1 and POD2.
JIRA: YARDSTICK-33
Change-Id: I8abb1b6d72655b057370e6eae0405081289cfe9d
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
-rw-r--r-- | jjb/yardstick/yardstick.yml | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/jjb/yardstick/yardstick.yml b/jjb/yardstick/yardstick.yml index cb58a586b..8040cd64c 100644 --- a/jjb/yardstick/yardstick.yml +++ b/jjb/yardstick/yardstick.yml @@ -191,7 +191,7 @@ project-type: freestyle - disabled: true + disabled: false node: '{pod}' @@ -226,5 +226,36 @@ set -o nounset set -o pipefail - # TODO: will add real stuff here - echo "Hello world!" + echo "Yardstick: prepare Yardstick environment" + + # source openstack vars + source $HOME/yardstick/opnfv-openrc.sh + + # check if cirros-0.3.3 image is already available + # if not, create the image + echo "Yardstick: configure the image" + IMAGE_NAME=cirros-0.3.3 + if [[ ! $(nova image-show $IMAGE_NAME > /dev/null 2>&1) ]]; then + echo "Image $IMAGE_NAME doesn't exist. Creating image $IMAGE_NAME" + glance image-create --name cirros-0.3.3 --is-public true --disk-format qcow2 --container-format bare --file $HOME/yardstick/cirros-0.3.3-x86_64-disk.img + else + echo "Image $IMAGE_NAME exists. Proceeding with yardstick." + fi + + # set virtualenv + echo "Yardstick: setup virtualenv" + cd $WORKSPACE + virtualenv $WORKSPACE/yardstick_venv + source $WORKSPACE/yardstick_venv/bin/activate + python setup.py develop + + # set virtualenv + echo "Yardstick: execute ping scenario" + yardstick -v -d samples/ping.yaml + + # cleanup + echo "Yardstick: cleanup" + glance image-delete $IMAGE_NAME" + + # done + echo "Yardstick: done!" |