As nova extensions has been deprecated already and goal is to
merge all scattered code into main controller side.
Currently schema and request/response extended code are there
among all extensions.
This commit merge the schema part of create server for legacy BDM extensions.
Partially implements: blueprint api-extensions-merge-rocky
Change-Id: I396809b66dd6a9bc704b24072a6325b90244dad7
Current BDM JSON-Schema validation doesn't work for invalid device
parameter in 2nd dict, because JSON-Schema definition is wrong.
This patch fixes it.
Co-Authored-By: Zhenyu Zheng <zhengzhenyu@huawei.com>
Change-Id: I56348dc2b7abd9526dfbf21305755505765811c5
Closes-Bug: #1651064
Add validations for volume_size and destination_type of
block device mapping when creating an instance
in order to avoid HTTP 500 errors.
Validations has been added in V2.1 API only.
Validations that has been added are as follows:
* volume_size: an empty string
* volume_size: zero
* volume_size: greater than DB column's limit
* destination_type: an empty string
* destination_type: invalid value
Change-Id: I2d3084cccd15f409616031f106c611ff07ac4abf
Closes-Bug: #1525806
This is step 4 of the remove v3 process. It moves the v2.1
json-schemas out of v3 directory, and also corrects all the
references.
Change-Id: Ibf88c38df951ed755b7431846cca7496f861c1dd
Partial-Bug: #1462901