For the moment it is possible to schedule share creation with DHSS=true
share type but without share network. But it makes no sense, and
expected to fail. So, perform check on API level.
APIImpact
When create share with share type(DHSS=true) and not input share
network, API will return HTTPBadRequest and message:
"Share network must be set when the driver_handles_share_servers
is true."
Reviewed: https:/ /review. openstack. org/256353 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=3ef988eddef f6fc05313915d3e f17196e67db023
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ef988eddeff6fc 05313915d3ef171 96e67db023
Author: zhongjun <email address hidden>
Date: Fri Dec 11 19:08:03 2015 +0800
Check share-network in 'share create' API
For the moment it is possible to schedule share creation with DHSS=true
share type but without share network. But it makes no sense, and
expected to fail. So, perform check on API level.
APIImpact handles_ share_servers
When create share with share type(DHSS=true) and not input share
network, API will return HTTPBadRequest and message:
"Share network must be set when the driver_
is true."
Closes-Bug: #1525125 e95dd1dd58a0155 de637056657
Change-Id: Icdfabff7b1d3b6