summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorChris Friesen <chris.friesen@windriver.com>2019-03-04 11:49:18 -0600
committerChris Friesen <chris.friesen@windriver.com>2019-03-05 12:05:06 -0600
commit5e7b840e48eb480ba1955e6ba52fbcaf9884c3fa (patch)
treef7cc4395bd1447a348ca888302ed92dd9468f425 /releasenotes
parentcb5ad6d3c14caccfc2b222dc5d2f1f6c5e05da9c (diff)
downloadnova-5e7b840e48eb480ba1955e6ba52fbcaf9884c3fa.tar.gz
Flavor extra spec and image properties validation from API
Validate the combination of the flavor extra-specs and image properties as early as possible once they're both known (since you can specify mutually-incompatible changes in the two places). If validation failed then synchronously return error to user. We need to do this anywhere the flavor or image changes, so basically instance creation, rebuild, and resize. - Rename _check_requested_image() to _validate_flavor_image() and add a call from the resize code path. (It's already called for create and rebuild.) - In _validate_flavor_image() add new checks to validate numa related options from flavor and image including CPU policy, CPU thread policy, CPU topology, memory topology, hugepages, CPU pinning, serial ports, realtime mask, etc. - Added new 400 exceptions in Server API correspondent to added validations. blueprint: flavor-extra-spec-image-property-validation Change-Id: I06fad233006c7bab14749a51ffa226c3801f951b Signed-off-by: Jack Ding <jack.ding@windriver.com> Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/flavor-extra-spec-image-property-validation-7310954ba3822477.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/releasenotes/notes/flavor-extra-spec-image-property-validation-7310954ba3822477.yaml b/releasenotes/notes/flavor-extra-spec-image-property-validation-7310954ba3822477.yaml
new file mode 100644
index 0000000000..7e3532beec
--- /dev/null
+++ b/releasenotes/notes/flavor-extra-spec-image-property-validation-7310954ba3822477.yaml
@@ -0,0 +1,17 @@
+---
+upgrade:
+ - |
+ With added validations for flavor extra-specs and image properties, the
+ APIs for server create, resize and rebuild will now return 400 exceptions
+ where they did not before due to the extra-specs or properties not being
+ properly formatted or being mutually incompatible.
+
+ For all three actions we will now check both the flavor and image to
+ validate the CPU policy, CPU thread policy, CPU topology, memory topology,
+ hugepages, serial ports, realtime CPU mask, NUMA topology details, CPU
+ pinning, and a few other things.
+
+ The main advantage to this is to catch invalid configurations as early
+ as possible so that we can return a useful error to the user rather than
+ fail later on much further down the stack where the operator would have
+ to get involved.