summaryrefslogtreecommitdiffstats
path: root/etc/conf/bottlenecks_config.yml
blob: c44047fdafe21ac4cd5101a3f1c1e17bc74e7815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---

{% set validate_testcase = validate_testcase or '' %}
{% set testcase = testcase or '' %}
{% set deploy_scenario = deploy_scenario or 'unknown' %}
{% set dovetail_home = dovetail_home or '' %}

bottlenecks:
  image_name: opnfv/bottlenecks
  docker_tag: latest
  opts: '-id --privileged=true'
  envs: '-e DEPLOY_SCENARIO={{deploy_scenario}} -e Yardstick_TAG=stable -e OUTPUT_FILE={{testcase}}.out'
  volumes:
    - '-v /var/run/docker.sock:/var/run/docker.sock'
    - '-v {{dovetail_home}}/results/bottlenecks:/tmp'
  config:
    dir: '/home/opnfv/userconfig'
  pre_condition:
    - 'cp /home/opnfv/userconfig/images/ubuntu-16.04-server-cloudimg-amd64-disk1.img /tmp/yardstick.img'
  cmds:
    - 'python /home/opnfv/bottlenecks/testsuites/run_testsuite.py testcase {{validate_testcase}} False'
  post_condition:
    - 'mkdir -p /home/opnfv/bottlenecks/results'
    - 'cp /tmp/bottlenecks.log /home/opnfv/bottlenecks/results'
    - 'cp /tmp/bottlenecks.stress.ping.out /home/opnfv/bottlenecks/results'
    - 'rm /tmp/yardstick.img'
  result:
    dir: '/home/opnfv/bottlenecks/results'
  openrc: '/tmp/admin_rc.sh'
  extra_container:
    - 'Bottlenecks-Yardstick'
    - 'Bottlenecks-ELK'