Fix share-server resources cleanup in generic driver
Generic driver using Neutron creates and attaches service subnets to router.
When we have more than one share server using same service subnet and delete
one of them, then Manila removes service subnet from router.
It is improper behaviour, because other, not deleted, share servers lose
connection in that case. So, add port validation to get to know for sure,
whether service subnet is used or not.
Reviewed: https:/ /review. openstack. org/181380 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=c7f57b0d7bf 2c45d30f8494a5f b4b6d42ec38583
Committed: https:/
Submitter: Jenkins
Branch: master
commit c7f57b0d7bf2c45 d30f8494a5fb4b6 d42ec38583
Author: Valeriy Ponomaryov <email address hidden>
Date: Fri May 8 16:04:41 2015 +0300
Fix share-server resources cleanup in generic driver
Generic driver using Neutron creates and attaches service subnets to router.
When we have more than one share server using same service subnet and delete
one of them, then Manila removes service subnet from router.
It is improper behaviour, because other, not deleted, share servers lose
connection in that case. So, add port validation to get to know for sure,
whether service subnet is used or not.
Change-Id: I6e7d4c1b40304b e39f84a23c00433 f47a295d02c
Closes-Bug: #1452747