Ensure root_gb always in patch params to avoid ValidationError
Accoring [1], the root_gb is required when validating the
node properties. While, in latest mogan codes [2], root_gb
is optional. Then, the ValidationError would occured when
creating baremetal server with mogan.
To fix this problem, ensure root_gb always in patch params.
Reviewed: https:/ /review. openstack. org/517235 /git.openstack. org/cgit/ openstack/ mogan/commit/ ?id=c8f6ca2c8a8 ebe930026be6665 1b66aa7c908ac3
Committed: https:/
Submitter: Zuul
Branch: master
commit c8f6ca2c8a8ebe9 30026be66651b66 aa7c908ac3
Author: zhangjl <email address hidden>
Date: Thu Nov 2 17:35:17 2017 +0800
Ensure root_gb always in patch params to avoid ValidationError
Accoring [1], the root_gb is required when validating the
node properties. While, in latest mogan codes [2], root_gb
is optional. Then, the ValidationError would occured when
creating baremetal server with mogan.
To fix this problem, ensure root_gb always in patch params.
[1]: https:/ /github. com/openstack/ nova/blob/ master/ nova/virt/ ironic/ patcher. py#L61 /github. com/openstack/ mogan/blob/ master/ mogan/baremetal /ironic/ driver. py#L159- L161
[2]: https:/
Change-Id: I99f7a0408c2346 49fc81482f82018 c74781f7a26
Closes-Bug: #1729533