summaryrefslogtreecommitdiffstats
path: root/etc/conf/bottlenecks_config.yml
blob: 13b7fd88b41fdd9192cd6400e36fbec74bbcce14 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
##############################################################################
# Copyright (c) 2019 opnfv.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

---

{% set validate_testcase = validate_testcase or '' %}
{% set testcase = testcase or '' %}
{% set deploy_scenario = deploy_scenario or 'unknown' %}
{% set dovetail_home = dovetail_home or '' %}
{% set debug = debug or 'false' %}
{% set build_tag = build_tag or '' %}
{% set cacert_volume = '' %}
{% if cacert %}
    {% set cacert_volume = cacert + ':' + cacert %}
{% endif %}
{% set openrc_file = '/tmp/admin_rc.sh' %}
{% set result_dir = '/home/opnfv/bottlenecks/results' %}
{% set images_dir = '/home/opnfv/images' %}
{% set config_dir = '/home/opnfv/userconfig' %}
{% set image_file = '/tmp/yardstick.img' %}

bottlenecks:
  image_name: opnfv/bottlenecks
  docker_tag: latest
  opts:
    detach: true
    stdin_open: true
    privileged: true
  shell: '/bin/bash'
  envs:
    - 'DEPLOY_SCENARIO={{deploy_scenario}}'
    - 'Yardstick_TAG=stable'
    - 'OUTPUT_FILE={{testcase}}.out'
    - 'CI_DEBUG={{debug}}'
    - 'BUILD_TAG={{build_tag}}-{{testcase}}'
  volumes:
    - '/var/run/docker.sock:/var/run/docker.sock'
    - '{{dovetail_home}}/results/bottlenecks:/tmp'
    - '{{dovetail_home}}/pre_config/env_config.sh:{{openrc_file}}'
    - {{cacert_volume}}
    - '{{dovetail_home}}/images:{{images_dir}}'
    - '{{dovetail_home}}/results:{{result_dir}}'
  pre_condition:
    - 'cp {{images_dir}}/ubuntu-16.04-server-cloudimg-amd64-disk1.img {{image_file}}'
  cmds:
    - 'python3 /home/opnfv/bottlenecks/testsuites/run_testsuite.py testcase {{validate_testcase}} False'
  post_condition:
    - 'mkdir -p {{result_dir}}'
    - 'cp /tmp/bottlenecks.log {{result_dir}}'
    - 'cp /tmp/bottlenecks.stress.ping.out {{result_dir}}'
    - 'rm {{image_file}}'
  openrc: {{openrc_file}}
  extra_container:
    - 'Bottlenecks-Yardstick'
    - 'Bottlenecks-ELK'