1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 schema: "yardstick:task:0.1"
13 {% set file = file or "etc/yardstick/nodes/compass_sclab_virtual/pod.yaml" %}
14 {% set cpu_set = cpu_set or "0,1,2,3" %}
15 {% set memory_load = memory_load or 0 %}
17 {% set flavor = flavor or "yardstick-migrate-flavor" %}
18 {% set ram = ram or "2048" %}
19 {% set vcpus = vcpus or "2" %}
20 {% set disk = disk or "3" %}
22 {% set provider = provider or none %}
23 {% set physical_network = physical_network or 'physnet1' %}
24 {% set segmentation_id = segmentation_id or none %}
44 output: origin_numa_info
52 type: GetMigrateTargetHost
76 memory_load: {{ memory_load }}
91 output: status migrate_time1 downtime1
110 output: status server
124 output: new_numa_info
135 info1: $origin_numa_info
136 info2: $new_numa_info
137 cpu_set: {{ cpu_set }}
165 setup: migrate_pinning_setup.yaml -e "flavor={{ flavor }} ram={{ ram }} vcpus={{ vcpus }} disk={{ disk }} cpu_set={{ cpu_set }}"
166 teardown: migrate_pinning_teardown.yaml -e "flavor={{ flavor }}"
170 image: yardstick-image
181 {% if provider == "vlan" %}
182 provider: {{provider}}
183 physical_network: {{physical_network}}
184 {% if segmentation_id %}
185 segmentation_id: {{segmentation_id}}