aboutsummaryrefslogtreecommitdiffstats
path: root/build/templates/RedHat_kilo.tmpl
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-04-25 15:11:01 +0800
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-04-25 15:11:01 +0800
commitaa16cb5bd58d314e05594ea591f236653455996b (patch)
treea0fd42e8ef7bbefb0f4eeefd3e7902c64d804386 /build/templates/RedHat_kilo.tmpl
parent80fbe88bf40d0bc18f0d68376893be49fa523932 (diff)
bugfix: tacker endpoint typo
JIRA: COMPASS-375 Change-Id: I3cec5830c64076a95e6966149e930078dc7902da Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'build/templates/RedHat_kilo.tmpl')
0 files changed, 0 insertions, 0 deletions
ref='#n144'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
##############################################################################
# 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: >
    Yardstick TC023 config file;
    Measure VM availability during VM live migration.

{% set file = file or "etc/yardstick/nodes/compass_sclab_virtual/pod.yaml" %}
{% set cpu_set = cpu_set or "0,1,2,3" %}
{% set memory_load = memory_load or 0 %}

{% set flavor = flavor or "yardstick-migrate-flavor" %}
{% set ram = ram or "2048" %}
{% set vcpus = vcpus or "2" %}
{% set disk = disk or "3" %}

{% set provider = provider or none %}
{% set physical_network = physical_network or 'physnet1' %}
{% set segmentation_id = segmentation_id or none %}

scenarios:
-
  type: GetServer

  output: status server

  host: server.migrate

  runner:
    type: Iteration
    iteration: 1
-
  type: GetNumaInfo

  options:
    server: $server
    file: {{ file }}

  output: origin_numa_info

  host: server.migrate

  runner:
    type: Iteration
    iteration: 1
-
  type: GetMigrateTargetHost

  options:
    server: $server
  output: target_host

  runner:
    type: Iteration
    iteration: 1
-
  type: GetServerIp

  options:
    server: $server

  output: server_ip

  runner:
    type: Iteration
    iteration: 1
-
  type: AddMemoryLoad

  options:
    memory_load: {{ memory_load }}

  host: server.migrate

  runner:
    type: Iteration
    iteration: 1
-
  type: Migrate

  options:
    server: $server
    host: $target_host
    server_ip: $server_ip

  output: status migrate_time1 downtime1

  runner:
    type: Iteration
    iteration: 1
-
  type: CheckValue

  options:
    value1: $status
    value2: 0
    operator: eq

  runner:
    type: Iteration
    iteration: 1
-
  type: GetServer

  output: status server

  host: server.migrate

  runner:
    type: Iteration
    iteration: 1
-
  type: GetNumaInfo

  options:
    server: $server
    file: {{ file }}

  output: new_numa_info

  host: server.migrate

  runner:
    type: Iteration
    iteration: 1
-
  type: CheckNumaInfo

  options:
    info1: $origin_numa_info
    info2: $new_numa_info
    cpu_set: {{ cpu_set }}

  output: status

  runner:
    type: Iteration
    iteration: 1
-
  type: CheckValue

  options:
    value1: $status
    value2: true
    operator: eq

  runner:
    type: Iteration
    iteration: 1


contexts:
-
  type: Node
  name: env-prepare
  file: {{ file }}

  env:
    type: ansible
    setup: migrate_pinning_setup.yaml -e "flavor={{ flavor }} ram={{ ram }} vcpus={{ vcpus }} disk={{ disk }} cpu_set={{ cpu_set }}"
    teardown: migrate_pinning_teardown.yaml -e "flavor={{ flavor }}"

-
  name: migrate
  image: yardstick-image
  flavor: {{ flavor }}
  user: ubuntu

  servers:
    server:
      floating_ip: true

  networks:
    test:
      cidr: '10.0.1.0/24'
      {% if provider == "vlan" %}
      provider: {{provider}}
      physical_network: {{physical_network}}
        {% if segmentation_id %}
      segmentation_id: {{segmentation_id}}
        {% endif %}
      {% endif %}