Reviewed: https://review.openstack.org/415346 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d726e0d7008354dcc054b5d8b95b6071c83f8da2 Submitter: Jenkins Branch: stable/mitaka
commit d726e0d7008354dcc054b5d8b95b6071c83f8da2 Author: Ken'ichi Ohmichi <email address hidden> Date: Tue Dec 20 23:20:43 2016 -0800
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 <email address hidden>
Conflicts: nova/api/openstack/compute/schemas/block_device_mapping.py nova/tests/unit/api/openstack/compute/test_block_device_mapping.py
NOTE(mriedem): The conflicts were due to some additional validation and tests added for BDMs v2.1 in Newton which are not in Mitaka.
Change-Id: I56348dc2b7abd9526dfbf21305755505765811c5 Closes-Bug: #1651064 (cherry picked from commit a65551ecd09b3116a13d9b6cc833be0c05b716da) (cherry picked from commit c00d433d2951386648260f005c5cb0ffd159dca4)
Reviewed: https:/ /review. openstack. org/415346 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d726e0d7008 354dcc054b5d8b9 5b6071c83f8da2
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit d726e0d7008354d cc054b5d8b95b60 71c83f8da2
Author: Ken'ichi Ohmichi <email address hidden>
Date: Tue Dec 20 23:20:43 2016 -0800
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 <email address hidden>
Conflicts:
nova/ api/openstack/ compute/ schemas/ block_device_ mapping. py
nova/ tests/unit/ api/openstack/ compute/ test_block_ device_ mapping. py
NOTE(mriedem): The conflicts were due to some additional validation and
tests added for BDMs v2.1 in Newton which are not in Mitaka.
Change-Id: I56348dc2b7abd9 526dfbf21305755 505765811c5 6a13d9b6cc833be 0c05b716da) 648260f005c5cb0 ffd159dca4)
Closes-Bug: #1651064
(cherry picked from commit a65551ecd09b311
(cherry picked from commit c00d433d2951386