summaryrefslogtreecommitdiffstats
path: root/samples/ping_bottlenecks.yaml
blob: e6fef4259f2ead5e2110d575ecce065a540f65aa (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
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others..
#
# 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
##############################################################################

---

schema: "yardstick:task:0.1"
description: >
    bottlenecks stress test config file;
    measure VMs latency using ping;
run_in_parallel: true
{% set stack_num = stack_num or 1 %}

scenarios:
{% for num in range(stack_num) %}
-
  type: Ping
  options:
    packetsize: 100
  host: demo1.demo{{num}}
  target: demo2.demo{{num}}
  runner:
    type: Duration
    duration: 60
    interval: 1
{% endfor %}

contexts:
{% for num in range(stack_num) %}
-
  name: demo{{num}}
  image: yardstick-image
  flavor: yardstick-flavor
  user: ubuntu

  placement_groups:
    pgrp1:
      policy: "availability"

  servers:
    demo1:
      floating_ip: true
      placement: "pgrp1"
    demo2:
      placement: "pgrp1"

  networks:
    test:
      cidr: '10.0.1.0/24'
{% endfor %}
an> ng-show="displayEnvName!=null"> <div style="display:inline">Choose Environment : {{displayEnvName}}</div> <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="addEnvToTask()">confirm</button> </div> <hr /> <div dir-paginate="env in environmentList | orderBy:'-id' | itemsPerPage: 10 "> <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}"> <div> {{env.name}}</div> <!--<button class="btn btn-default btn-sm" ng-click="gotoDetail('false',env.uuid)">detail</button>--> <span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="constructTestSuit(env.uuid,env.name)" ng-show="selectEnv==env.uuid"></span> <span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="constructTestSuit(env.uuid,env.name)" ng-show="selectEnv!=env.uuid"></span> </div> <!--<hr style="margin-top:5px;margin-bottom:5px;" />--> </div> <center> <dir-pagination-controls></dir-pagination-controls> </center> </div> <div data-title="Content" bs-pane> <div style="display:flex;flex-direction:row"> <div style="margin-top:20px;">Source of Content</div> <select ng-model="selectType" ng-change="triggerContent(selectType)" data-ng-options="blisterPackTemplate as blisterPackTemplate.name for blisterPackTemplate in blisterPackTemplates"> <option value="">Choose...</option> </select> </div> <div style="margin-top:10px" ng-show="selectCase!=null"> <div style="display:inline">Choose Source: {{selectCase}}</div> <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="confirmAddCaseOrSuite(contentInfo)">Confirm</button> <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="getTestDeatil()">Edit</button> </div> <hr/> <div ng-show="displayTable==true"> <div ng-show="testcaselist.testcases.length!=0 && selectType.name=='Test Case'"> <div dir-paginate="test in testcaselist.testcases | itemsPerPage: 10" pagination-id="testcase"> <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}"> <div> {{test.Name}}</div> <div style="font-size:10px;">{{test.Description}}</div> <span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="constructTestCase(test.Name)" ng-show="selectCase==test.Name"></span> <span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="constructTestCase(test.Name)" ng-show="selectCase!=test.Name"></span> </div> <!--<hr style="margin-top:5px;margin-bottom:5px;" />--> </div> <center> <dir-pagination-controls pagination-id="testcase"></dir-pagination-controls> </center> </div> <div ng-show="testsuitlist.length!=0 && selectType.name=='Test Suite'"> <div dir-paginate="suite in testsuitlist | itemsPerPage: 10" pagination-id="testsuite"> <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}"> <div> {{suite}}</div> <span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="constructTestCase(suite)" ng-show="selectCase==suite"></span> <span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="constructTestCase(suite)" ng-show="selectCase!=suite"></span> </div> <!--<hr style="margin-top:5px;margin-bottom:5px;" />--> </div> <center> <dir-pagination-controls pagination-id="testsuite"></dir-pagination-controls> </center> </div> </div> <div ng-show="displayTable==false" style="display:flex;flex-direction:row;justify-content:space-between;margin-top:10px;"> <textarea class="col-md-8" ng-model="contentInfo" style="margin-top:5px;" spellcheck="false"></textarea> <div class="col-md-4" style="border:1px solid #e8e8e8;margin-top:5px;margin-left:10px;padding-top:30px;"> <h4>Optional Paramters:</h4> <form class="form-horizontal col-md-offset-2" style="margin-top:20px"> <div ng-repeat="(name, value) in optionalParams" class="form-group"> <label for="param{{$index}}" class="col-md-5" style="font-weight:normal;">{{ name }}:</label> <div class="col-md-5"> <input type="text" ng-model="value.value" class="form-control" id="param{{$index}}"> </div> </div> </form> </div> </div> </div> </div> <div style="text-align:center;margin-top:20px;"> <button class="btn btn-default" ng-click="closeThisDialog()" ng-disabled="newUUID===null || ifHasEnv!=true || (ifHasCase!=true && ifHasSuite!=true)">Close</button> <button class="btn btn-default" ng-disabled="newUUID===null || ifHasEnv!=true || (ifHasCase!=true && ifHasSuite!=true)" ng-click="runAtask(newUUID)">Run</button> </div> <style> input { border-radius: 10px; border: 1px solid #eeeeee; width: 100%; } .deepColor { background-color: #f9f9f9; } select { height: 30px; border-radius: 5px; border: 1px solid #e8e8e8; width: 135px; margin-top: 20px; margin-left: 20px; } textarea { width: 100%; height: 400px; border-radius: 5px; border: 1px solid #e8e8e8; } .deepColor { background-color: #f9f9f9; } </style>