Skip to content

Commit bea1b97

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[placement] api-ref: add description for 1.29"
2 parents 9d54673 + d34de0f commit bea1b97

File tree

3 files changed

+126
-6
lines changed

3 files changed

+126
-6
lines changed

placement-api-ref/source/allocation_candidates.inc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,24 @@ Response (microversions 1.12 - )
4444
.. rest_parameters:: parameters.yaml
4545

4646
- allocation_requests: allocation_requests
47-
- provider_summaries: provider_summaries
47+
- provider_summaries: provider_summaries_1_12
4848
- allocations: allocations_by_resource_provider
4949
- resources: resources
5050
- capacity: capacity
5151
- used: used
5252
- traits: traits_1_17
53+
- parent_provider_uuid: resource_provider_parent_provider_uuid_response_1_29
54+
- root_provider_uuid: resource_provider_root_provider_uuid_1_29
5355

54-
Response Example (microversions 1.17 - )
56+
Response Example (microversions 1.29 - )
5557
----------------------------------------
5658

59+
.. literalinclude:: ./samples/allocation_candidates/get-allocation_candidates-1.29.json
60+
:language: javascript
61+
62+
Response Example (microversions 1.17 - 1.28)
63+
--------------------------------------------
64+
5765
.. literalinclude:: ./samples/allocation_candidates/get-allocation_candidates-1.17.json
5866
:language: javascript
5967

placement-api-ref/source/parameters.yaml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,20 @@ provider_summaries:
363363
in: body
364364
required: true
365365
description: >
366-
A dictionary keyed by resource provider UUID,
367-
of dictionaries of inventory/capacity information. The list of traits
368-
the resource provider has associated with it is included in version `1.17`
369-
and above.
366+
A dictionary keyed by resource provider UUID included in the
367+
``allocation_requests``, of dictionaries of inventory/capacity information.
368+
provider_summaries_1_12:
369+
type: object
370+
in: body
371+
required: true
372+
description: >
373+
A dictionary keyed by resource provider UUID included in the
374+
``allocation_requests``, of dictionaries of inventory/capacity information.
375+
The list of traits the resource provider has associated with it is included
376+
in version 1.17 and above.
377+
Starting from microversion 1.29, the provider summaries include
378+
all resource providers in the same resource provider tree that has one
379+
or more resource providers included in the ``allocation_requests``.
370380
reserved: &reserved
371381
type: integer
372382
in: body
@@ -474,6 +484,20 @@ resource_provider_parent_provider_uuid_response_1_14:
474484
description: >
475485
The UUID of the immediate parent of the resource provider.
476486
min_version: 1.14
487+
resource_provider_parent_provider_uuid_response_1_29:
488+
type: string
489+
in: body
490+
required: true
491+
description: >
492+
The UUID of the immediate parent of the resource provider.
493+
min_version: 1.29
494+
resource_provider_root_provider_uuid_1_29:
495+
type: string
496+
in: body
497+
required: true
498+
description: >
499+
UUID of the top-most provider in this provider tree.
500+
min_version: 1.29
477501
resource_provider_root_provider_uuid_no_min: &resource_provider_root_provider_uuid_no_min
478502
type: string
479503
in: body
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"allocation_requests": [
3+
{
4+
"allocations": {
5+
"a99bad54-a275-4c4f-a8a3-ac00d57e5c64": {
6+
"resources": {
7+
"DISK_GB": 100
8+
}
9+
},
10+
"35791f28-fb45-4717-9ea9-435b3ef7c3b3": {
11+
"resources": {
12+
"VCPU": 1,
13+
"MEMORY_MB": 1024
14+
}
15+
}
16+
}
17+
},
18+
{
19+
"allocations": {
20+
"a99bad54-a275-4c4f-a8a3-ac00d57e5c64": {
21+
"resources": {
22+
"DISK_GB": 100
23+
}
24+
},
25+
"915ef8ed-9b91-4e38-8802-2e4224ad54cd": {
26+
"resources": {
27+
"VCPU": 1,
28+
"MEMORY_MB": 1024
29+
}
30+
}
31+
}
32+
}
33+
],
34+
"provider_summaries": {
35+
"a99bad54-a275-4c4f-a8a3-ac00d57e5c64": {
36+
"resources": {
37+
"DISK_GB": {
38+
"used": 0,
39+
"capacity": 1900
40+
}
41+
},
42+
"traits": ["MISC_SHARES_VIA_AGGREGATE"],
43+
"parent_provider_uuid": null,
44+
"root_provider_uuid": "a99bad54-a275-4c4f-a8a3-ac00d57e5c64"
45+
},
46+
"35791f28-fb45-4717-9ea9-435b3ef7c3b3": {
47+
"resources": {
48+
"VCPU": {
49+
"used": 0,
50+
"capacity": 384
51+
},
52+
"MEMORY_MB": {
53+
"used": 0,
54+
"capacity": 196608
55+
}
56+
},
57+
"traits": ["HW_CPU_X86_SSE2", "HW_CPU_X86_AVX2"],
58+
"parent_provider_uuid": null,
59+
"root_provider_uuid": "35791f28-fb45-4717-9ea9-435b3ef7c3b3"
60+
},
61+
"915ef8ed-9b91-4e38-8802-2e4224ad54cd": {
62+
"resources": {
63+
"VCPU": {
64+
"used": 0,
65+
"capacity": 384
66+
},
67+
"MEMORY_MB": {
68+
"used": 0,
69+
"capacity": 196608
70+
}
71+
},
72+
"traits": ["HW_NIC_SRIOV"],
73+
"parent_provider_uuid": null,
74+
"root_provider_uuid": "915ef8ed-9b91-4e38-8802-2e4224ad54cd"
75+
},
76+
"f5120cad-67d9-4f20-9210-3092a79a28cf": {
77+
"resources": {
78+
"SRIOV_NET_VF": {
79+
"used": 0,
80+
"capacity": 8
81+
}
82+
},
83+
"traits": [],
84+
"parent_provider_uuid": "915ef8ed-9b91-4e38-8802-2e4224ad54cd",
85+
"root_provider_uuid": "915ef8ed-9b91-4e38-8802-2e4224ad54cd"
86+
}
87+
}
88+
}

0 commit comments

Comments
 (0)