
This change duplicates the ideas started in with the placement-perfload job and builds on it to create a set of nested trees that can be exercised. In placement-perfload, placeload is used to create the providers. This proves to be cumbersome for nested topologies so this change starts a new model: Using parallel [1] plus instrumented gabbi to create nested topologies in a declarative fashion. gate/perfload-server.sh sets up placement db and starts a uwsgi server. gate/perfload-nested-loader.sh is called in the playbook to cause gabbi to create the nested topology described in gate/gabbits/nested-perfload.yaml. That topology is intentionally very naive right now but should be made more realisitc as we continue to develop nested features. There's some duplication between perfload.yaml and nested-perfload.yaml that will be cleared up in a followup. [1] https://www.gnu.org/software/parallel/ (although the version on ubuntu is a non-GPL clone) Story: 2005443 Task: 30487 Change-Id: I617161fde5b844d7f52dc766f85c1b9f1b139e4a
84 lines
2.4 KiB
YAML
84 lines
2.4 KiB
YAML
# This is a single compute with two numa nodes, to show some nested.
|
|
#
|
|
# This should be updated to represent something closer to a real
|
|
# and expected nested topology. If changes are made here that impact
|
|
# the number of total resource providers, then $COUNT in
|
|
# playbooks/nested-perfload.yaml should be updated.
|
|
|
|
defaults:
|
|
request_headers:
|
|
accept: application/json
|
|
content-type: application/json
|
|
openstack-api-version: placement latest
|
|
x-auth-token: $ENVIRON['TOKEN']
|
|
|
|
tests:
|
|
- name: create one compute node
|
|
POST: /resource_providers
|
|
data:
|
|
uuid: $ENVIRON['CN_UUID']
|
|
name: $ENVIRON['CN_UUID']
|
|
|
|
- name: set compute node inventory
|
|
PUT: /resource_providers/$ENVIRON['CN_UUID']/inventories
|
|
data:
|
|
resource_provider_generation: 0
|
|
inventories:
|
|
DISK_GB:
|
|
total: 20480
|
|
|
|
- name: set compute node traits
|
|
PUT: /resource_providers/$ENVIRON['CN_UUID']/traits
|
|
data:
|
|
resource_provider_generation: 1
|
|
traits:
|
|
- COMPUTE_VOLUME_MULTI_ATTACH
|
|
|
|
- name: create numa 1
|
|
POST: /resource_providers
|
|
data:
|
|
uuid: $ENVIRON['N1_UUID']
|
|
name: numa 1-$ENVIRON['N1_UUID']
|
|
parent_provider_uuid: $ENVIRON['CN_UUID']
|
|
|
|
- name: set numa 1 inventory
|
|
PUT: /resource_providers/$ENVIRON['N1_UUID']/inventories
|
|
data:
|
|
resource_provider_generation: 0
|
|
inventories:
|
|
VCPU:
|
|
total: 16
|
|
MEMORY_MB:
|
|
total: 16777216
|
|
|
|
- name: set numa 1 traits
|
|
PUT: /resource_providers/$ENVIRON['N1_UUID']/traits
|
|
data:
|
|
resource_provider_generation: 1
|
|
traits:
|
|
- HW_CPU_X86_AVX2
|
|
|
|
- name: create numa 2
|
|
POST: /resource_providers
|
|
data:
|
|
uuid: $ENVIRON['N2_UUID']
|
|
name: numa 2-$ENVIRON['N2_UUID']
|
|
parent_provider_uuid: $ENVIRON['CN_UUID']
|
|
|
|
- name: set numa 2 inventory
|
|
PUT: /resource_providers/$ENVIRON['N2_UUID']/inventories
|
|
data:
|
|
resource_provider_generation: 0
|
|
inventories:
|
|
VCPU:
|
|
total: 16
|
|
MEMORY_MB:
|
|
total: 16777216
|
|
|
|
- name: set numa 2 traits
|
|
PUT: /resource_providers/$ENVIRON['N2_UUID']/traits
|
|
data:
|
|
resource_provider_generation: 1
|
|
traits:
|
|
- HW_CPU_X86_SSE
|