summaryrefslogtreecommitdiffstats
path: root/etc/conf/bottlenecks_config.yml
blob: 76a57c30b62dc77fa9d0a9a6bcb4bca9a7290aa4 (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
33
34
35
36
37
38
39
40
41
42
43
44
---

{% set validate_testcase = validate_testcase or '' %}
{% set testcase = testcase or '' %}
{% set os_insecure = os_insecure or 'False' %}
{% set os_cacert = '' %}
{% if os_insecure == 'True' %}
    {% set os_cacert = ' -e OS_CACERT=False ' %}
{% endif %}

bottlenecks:
  image_name: opnfv/bottlenecks
  docker_tag: stable
  opts: '-id --privileged=true'
  envs: '{{os_cacert}} -e Yardstick_TAG=stable -e OUTPUT_FILE={{testcase}}.out'
  volumes:
    - '-v /var/run/docker.sock:/var/run/docker.sock'
  config:
    dir: '/home/opnfv/userconfig'
  pre_condition:
    - 'source /tmp/admin_rc.sh &&
       (openstack --insecure image list | grep cirros-0.3.5 ||
       openstack --insecure image create cirros-0.3.5
       --disk-format qcow2 --container-format bare
       --file /home/opnfv/userconfig/images/cirros-0.3.5-x86_64-disk.img)'
    - 'source /tmp/admin_rc.sh &&
       (openstack --insecure flavor list | grep yardstick-flavor ||
       openstack --insecure flavor create --id 100
       --ram 1024 --disk 3 --vcpus 1 yardstick-flavor)'
  cmds:
    - 'python /home/opnfv/bottlenecks/testsuites/run_testsuite.py testcase {{validate_testcase}} True'
  post_condition:
    - 'source /tmp/admin_rc.sh &&
       (! openstack --insecure image list | grep cirros-0.3.5 ||
       openstack --insecure image delete cirros-0.3.5)'
    - 'source /tmp/admin_rc.sh &&
       (! openstack --insecure flavor list | grep yardstick-flavor ||
       openstack --insecure flavor delete yardstick-flavor)'
  result:
    dir: '/tmp'
  openrc: '/tmp/admin_rc.sh'
  extra_container:
    - 'Bottlenecks-Yardstick'
    - 'Bottlenecks-ELK'