Browse Source

Update new-flavor specs

This adds resource_aggregates field to associate resources group
information with the flavor.

Change-Id: I2e9ebbd967c86e419e4513a4cb4ebd585bdc8a5e
Zhenguo Niu 1 year ago
parent
commit
5fed727f7c
1 changed files with 16 additions and 2 deletions
  1. 16
    2
      specs/pike/approved/new-flavor.rst

+ 16
- 2
specs/pike/approved/new-flavor.rst View File

@@ -54,6 +54,8 @@ The operator might define the flavors as such::
54 54
         CUSTOM_BAREMETAL_GOLD: 1
55 55
       resource_traits:
56 56
         CUSTOM_BAREMETAL_GOLD: FPGA
57
+      resource_aggregates:
58
+        high_mem: true
57 59
       description:
58 60
         Intel(R) Xeon(R) E5620 2.40GHz 16 cores, 8GB RAM
59 61
 
@@ -87,6 +89,8 @@ with their data type and default value for migrations.
87 89
 +-----------------------+--------------+-----------------+
88 90
 | resource_traits       | DictOfString | None            |
89 91
 +-----------------------+--------------+-----------------+
92
+| resource_aggregates   | DictOfString | None            |
93
++-----------------------+--------------+-----------------+
90 94
 | description           | String       | None            |
91 95
 +-----------------------+--------------+-----------------+
92 96
 | is_public             | Bool         | True            |
@@ -94,8 +98,9 @@ with their data type and default value for migrations.
94 98
 | disabled              | Bool         | False           |
95 99
 +-----------------------+--------------+-----------------+
96 100
 
97
-The `resources` field indicates the resource quantities and the
98
-`resource_traits` field reference to the resource qualities.
101
+The `resources` field indicates the resource quantities, the `resource_traits`
102
+field reference to the resource qualities, and the `resource_aggregates` field
103
+includes the group information.
99 104
 
100 105
 The `disabled` field is intended to be used when phasing out flavors. In this
101 106
 case, a delete wouldn't work because the flavor needs to still be available
@@ -138,6 +143,15 @@ REST API will be changed as part of this change.
138 143
                 },
139 144
                 'additionalProperties': False
140 145
             },
146
+            'resource_aggregates': {
147
+                'type': 'object',
148
+                'patternProperties': {
149
+                    '^[a-zA-Z0-9-_:. ]{1,255}$': {
150
+                        'type': 'string', 'maxLength': 255
151
+                    }
152
+                },
153
+                'additionalProperties': False
154
+            },
141 155
             'description': {'type': 'string', 'minLength': 1},
142 156
             'disabled': {'type': 'boolean'},
143 157
             'is_public': {'type': 'boolean'},

Loading…
Cancel
Save