OpenStack resource provider inventory allocation service
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nested-perfload.yaml 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. # This is a nested topology to exercise a large section of the nested provider
  2. # related code in placement. The structure here is based on some of the
  3. # structures in the NUMANetworkFixture in
  4. # placement.tests.functional.fixtures.gabbits. This version initially leaves
  5. # out many of the resource providers created there, with the intent that we can
  6. # add more as the need presents itself.
  7. #
  8. # For the time being only one compute node is created, with two numa nodes,
  9. # each with two devices attached, either two FPGA or an FPGA and PGPU.
  10. #
  11. # Here's a graphical representation of what is created. Please keep this up to
  12. # date as changes are made:
  13. #
  14. # +-----------------------------+
  15. # | compute node (cn1) |
  16. # | COMPUTE_VOLUME_MULTI_ATTACH |
  17. # | DISK_GB: 20480 |
  18. # +---------------+-------------+
  19. # |
  20. # +--------------------+
  21. # | |
  22. # +---------+--------+ +---------+--------+
  23. # | numa0 | | numa1 |
  24. # | HW_NUMA_ROOT | | HW_NUMA_ROOT |
  25. # | | | CUSTOM_FOO |
  26. # | VCPU: 4 (2 res.) | | VCPU: 4 |
  27. # | MEMORY_MB: 2048 | | MEMORY_MB: 2048 |
  28. # | min_unit: 512 | | min_unit: 256 |
  29. # | step_size: 256 | | max_unit: 1024 |
  30. # +---+----------+---+ +---+----------+---+
  31. # | | | |
  32. # +---+---+ +---+---+ +---+---+ +---+---+
  33. # |fpga0 | |pgpu0 | |fpga1_0| |fpga1_1|
  34. # |FPGA:1 | |VGPU:8 | |FPGA:1 | |FPGA:1 |
  35. # +-------+ +-------+ +-------+ +-------+
  36. defaults:
  37. request_headers:
  38. accept: application/json
  39. content-type: application/json
  40. openstack-api-version: placement latest
  41. x-auth-token: $ENVIRON['TOKEN']
  42. tests:
  43. - name: create FOO trait
  44. PUT: /traits/CUSTOM_FOO
  45. status: 201 || 204
  46. - name: create cn1
  47. POST: /resource_providers
  48. data:
  49. uuid: $ENVIRON['CN1_UUID']
  50. name: $ENVIRON['CN1_UUID']
  51. status: 200
  52. - name: set cn1 inventory
  53. PUT: /resource_providers/$ENVIRON['CN1_UUID']/inventories
  54. data:
  55. resource_provider_generation: 0
  56. inventories:
  57. DISK_GB:
  58. total: 20480
  59. - name: set compute node traits
  60. PUT: /resource_providers/$ENVIRON['CN1_UUID']/traits
  61. data:
  62. resource_provider_generation: 1
  63. traits:
  64. - COMPUTE_VOLUME_MULTI_ATTACH
  65. - name: create numa 0
  66. POST: /resource_providers
  67. data:
  68. uuid: $ENVIRON['N0_UUID']
  69. name: numa 0-$ENVIRON['N0_UUID']
  70. parent_provider_uuid: $ENVIRON['CN1_UUID']
  71. - name: set numa 0 inventory
  72. PUT: /resource_providers/$ENVIRON['N0_UUID']/inventories
  73. data:
  74. resource_provider_generation: 0
  75. inventories:
  76. VCPU:
  77. total: 4
  78. reserved: 2
  79. MEMORY_MB:
  80. total: 2048
  81. min_unit: 512
  82. step_size: 256
  83. - name: set numa 0 traits
  84. PUT: /resource_providers/$ENVIRON['N0_UUID']/traits
  85. data:
  86. resource_provider_generation: 1
  87. traits:
  88. - HW_NUMA_ROOT
  89. - name: create fpga0_0
  90. POST: /resource_providers
  91. data:
  92. uuid: $ENVIRON['FPGA0_0_UUID']
  93. name: fpga0-0-$ENVIRON['FPGA0_0_UUID']
  94. parent_provider_uuid: $ENVIRON['N0_UUID']
  95. - name: set fpga0_0 inventory
  96. PUT: /resource_providers/$ENVIRON['FPGA0_0_UUID']/inventories
  97. data:
  98. resource_provider_generation: 0
  99. inventories:
  100. FPGA:
  101. total: 1
  102. - name: create pgpu0_0
  103. POST: /resource_providers
  104. data:
  105. uuid: $ENVIRON['PGPU0_0_UUID']
  106. name: pgpu0-0-$ENVIRON['PGPU0_0_UUID']
  107. parent_provider_uuid: $ENVIRON['N0_UUID']
  108. - name: set pgpu0_0 inventory
  109. PUT: /resource_providers/$ENVIRON['PGPU0_0_UUID']/inventories
  110. data:
  111. resource_provider_generation: 0
  112. inventories:
  113. VGPU:
  114. total: 8
  115. - name: create numa 1
  116. POST: /resource_providers
  117. data:
  118. uuid: $ENVIRON['N1_UUID']
  119. name: numa 1-$ENVIRON['N1_UUID']
  120. parent_provider_uuid: $ENVIRON['CN1_UUID']
  121. - name: set numa 1 inventory
  122. PUT: /resource_providers/$ENVIRON['N1_UUID']/inventories
  123. data:
  124. resource_provider_generation: 0
  125. inventories:
  126. VCPU:
  127. total: 4
  128. MEMORY_MB:
  129. total: 2048
  130. min_unit: 256
  131. max_unit: 1024
  132. - name: set numa 1 traits
  133. PUT: /resource_providers/$ENVIRON['N1_UUID']/traits
  134. data:
  135. resource_provider_generation: 1
  136. traits:
  137. - HW_NUMA_ROOT
  138. - CUSTOM_FOO
  139. - name: create fpga1_0
  140. POST: /resource_providers
  141. data:
  142. uuid: $ENVIRON['FPGA1_0_UUID']
  143. name: fpga1-0-$ENVIRON['FPGA1_0_UUID']
  144. parent_provider_uuid: $ENVIRON['N1_UUID']
  145. - name: set fpga1_0 inventory
  146. PUT: /resource_providers/$ENVIRON['FPGA1_0_UUID']/inventories
  147. data:
  148. resource_provider_generation: 0
  149. inventories:
  150. FPGA:
  151. total: 1
  152. - name: create fpga1_1
  153. POST: /resource_providers
  154. data:
  155. uuid: $ENVIRON['FPGA1_1_UUID']
  156. name: fpga1-1-$ENVIRON['FPGA1_1_UUID']
  157. parent_provider_uuid: $ENVIRON['N1_UUID']
  158. - name: set fpga1_1 inventory
  159. PUT: /resource_providers/$ENVIRON['FPGA1_1_UUID']/inventories
  160. data:
  161. resource_provider_generation: 0
  162. inventories:
  163. FPGA:
  164. total: 1