This patch fixes an issue while performing share network update.
Manila was allowing the user to update a share network even if it
did not contain a default subnet. Now, we throw an error if there
is no default subnet to be updated. Also, adds an extra validation.
Now, Manila do not allow the default share network subnet update if
it is going to have only `neutron_net_id` or `neutron_subnet_id`
after the update.
Reviewed: https:/ /review. opendev. org/687959 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=de2d94172be bc8d8771e2e6786 0d94559a86cece
Committed: https:/
Submitter: Zuul
Branch: master
commit de2d94172bebc8d 8771e2e67860d94 559a86cece
Author: silvacarloss <email address hidden>
Date: Wed Oct 9 14:25:57 2019 +0000
Fix share network update erroneously returns success
This patch fixes an issue while performing share network update.
Manila was allowing the user to update a share network even if it
did not contain a default subnet. Now, we throw an error if there
is no default subnet to be updated. Also, adds an extra validation.
Now, Manila do not allow the default share network subnet update if
it is going to have only `neutron_net_id` or `neutron_subnet_id`
after the update.
Change-Id: Iba2761db53da68 a1c497e2e5dd370 c36a22ebbed
Closes-Bug: #1846836