1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
//! Placement `ResourceProviderAggregate` command with subcommands
use ;
use AsyncOpenStack;
use crate::;
/// Resource provider aggregates
///
/// Each resource provider can be associated with one or more other resource providers in groups
/// called aggregates. API calls in this section are used to list and update the aggregates that
/// are associated with one resource provider.
///
/// Provider aggregates are used for modeling relationships among providers. Examples may include:
///
/// - A shared storage pool providing DISK_GB resources to compute node providers that provide
/// VCPU and MEMORY_MB resources.
///
/// - Affinity/anti-affinity relationships such as physical location, power failure domains, or
/// other reliability/availability constructs.
///
/// - Groupings of compute host providers corresponding to Nova host aggregates or availability
/// zones.
///
/// Note: Placement aggregates are not the same as Nova host aggregates and should not be
/// considered equivalent.
///
/// The primary differences between Nova’s host aggregates and placement aggregates are the
/// following:
///
/// - In Nova, a host aggregate associates a nova-compute service with other nova-compute
/// services. Placement aggregates are not specific to a nova-compute service and are, in fact,
/// not compute-specific at all. A resource provider in the Placement API is generic, and
/// placement aggregates are simply groups of generic resource providers. This is an important
/// difference especially for Ironic, which when used with Nova, has many Ironic baremetal nodes
/// attached to a single nova-compute service. In the Placement API, each Ironic baremetal node
/// is its own resource provider and can therefore be associated to other Ironic baremetal nodes
/// via a placement aggregate association.
///
/// - In Nova, a host aggregate may have metadata key/value pairs attached to it. All
/// nova-compute services associated with a Nova host aggregate share the same metadata.
/// Placement aggregates have no such metadata because placement aggregates only represent the
/// grouping of resource providers. In the Placement API, resource providers are individually
/// decorated with traits that provide qualitative information about the resource provider.
///
/// - In Nova, a host aggregate dictates the availability zone within which one or more
/// nova-compute services reside. While placement aggregates may be used to model availability
/// zones, they have no inherent concept thereof.
/// Supported subcommands