Commit Graph

4 Commits

Author SHA1 Message Date
ghanshyam 627ff16e9d Merge server create schema for legacy BDM extension
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
2018-06-21 13:07:40 +00:00
Ken'ichi Ohmichi a65551ecd0 Fix BDM JSON-Schema validation
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
2016-12-21 23:54:06 -08:00
Takashi NATSUME 9ad3dad0c6 Add validations for volume_size and destination_type
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
2016-04-20 11:32:05 +00:00
He Jie Xu 3e032fd45b Remove 'v3' directory for v2.1 json-schemas
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
2015-08-13 09:58:48 +08:00