Last active
May 11, 2016 20:35
-
-
Save sfoolish/3bf1a59ab4c6085188cd32808eae115c to your computer and use it in GitHub Desktop.
Recommend Steps to run yardstick in plugfest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recommend Steps to run yardstick in plugfest | |
## Prepare yardstick | |
### install docker | |
wget -qO- https://get.docker.com/ | sh | |
### pull and run yardstick docker container | |
docker pull opnfv/yardstick | |
docker run -it opnfv/yardstick bash | |
######################################################### | |
# All below cammands run on yardstick docker container | |
######################################################### | |
## yardstick test configure | |
### POD env info configure | |
export NODE_NAME=huawei-e9000 | |
export INSTALLER_TYPE=fuel | |
export DEPLOY_SCENARIO=os-onos-nofeature-ha | |
export YARDSTICK_VERSION=yardstick | |
### test result configure env | |
# dump test results to local file | |
# if you want local test or don't want to share the test result | |
# uncommand DISPATCHER_TYPE=file | |
# and command DISPATCHER_TYPE=influxdb, | |
# export DISPATCHER_TYPE=file | |
# export DISPATCHER_FILE_NAME="/tmp/yardstick.out" | |
# if you want push results to influxdb open this config | |
# otherwise uncommand it | |
export DISPATCHER_TYPE=influxdb | |
export DISPATCHER_INFLUXDB_TARGET=http://146.148.111.19:8086 | |
# create yardstick configure file create | |
mkdir /etc/yardstick | |
cat << EOF >> /etc/yardstick/yardstick.conf | |
[DEFAULT] | |
debug = True | |
dispatcher = ${DISPATCHER_TYPE} | |
[dispatcher_file] | |
file_name = ${DISPATCHER_FILE_NAME} | |
[dispatcher_http] | |
timeout = 5 | |
target = ${DISPATCHER_HTTP_TARGET} | |
[dispatcher_influxdb] | |
timeout = 5 | |
target = ${DISPATCHER_INFLUXDB_TARGET} | |
db_name = yardstick_plugfest | |
username = plugfest | |
password = plugfest | |
EOF | |
#### below env copy from fuel's openrc file | |
# OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME must be set | |
export LC_ALL=C | |
export OS_NO_CACHE='true' | |
export OS_TENANT_NAME='admin' | |
export OS_PROJECT_NAME='admin' | |
export OS_USERNAME='admin' | |
export OS_PASSWORD='admin' | |
export OS_AUTH_URL='http://192.168.3.2:5000/' | |
export OS_DEFAULT_DOMAIN='default' | |
export OS_AUTH_STRATEGY='keystone' | |
export OS_REGION_NAME='RegionOne' | |
export CINDER_ENDPOINT_TYPE='internalURL' | |
export GLANCE_ENDPOINT_TYPE='internalURL' | |
export KEYSTONE_ENDPOINT_TYPE='internalURL' | |
export NOVA_ENDPOINT_TYPE='internalURL' | |
export NEUTRON_ENDPOINT_TYPE='internalURL' | |
export OS_ENDPOINT_TYPE='internalURL' | |
export MURANO_REPO_URL='http://storage.apps.openstack.org/' | |
export HEAT_ENDPOINT_TYPE=internalURL | |
export OS_AUTH_URL=http://192.168.3.2:5000/v2.0 | |
#### configure external network according to your environment | |
export EXTERNAL_NETWORK=admin_floating_net | |
### download yardstick guest image and upload to glance (Don't duplicate create image) | |
# This image is hosted on a vm in intel's pod locally | |
# so you don't need to create yardstick guest image yourself | |
cd /home/opnfv/images/ | |
wget http://192.168.0.71:8000/yardstick-trusty-server.img | |
glance image-create --name "yardstick-trusty-server" \ | |
--file /home/opnfv/images/yardstick-trusty-server.img \ | |
--disk-format qcow2 --container-format bare | |
# cirros-0.3.3-x86_64-disk.img is already contained in the container | |
glance image-create --name "cirros-0.3.3" \ | |
--file /home/opnfv/images/cirros-0.3.3-x86_64-disk.img \ | |
--disk-format qcow2 --container-format bare | |
### checkout if flavor is created if not create them. (Don't duplicate create flavor) | |
### plugfest test suit need m1.tiny, m1.small, yardstick-flavor | |
nova flavor-create yardstick-flavor 100 512 3 1 | |
nova flavor-create m1.tiny 101 512 1 1 | |
nova flavor-create m1.small 102 2048 20 1 | |
#### validate | |
cd /home/opnfv/repos/yardstick | |
yardstick -d task start samples/ping.yaml | |
#### run test suit | |
# The total test takes about 1 hour (takes 58mins in ericsson's pod) | |
cd /home/opnfv/repos/yardstick | |
export suit=tests/opnfv/test_suites/opnfv_plugfest.yaml | |
yardstick -d task start --suite $suit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment