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: I6e7d4c1b40304be39f84a23c00433f47a295d02c
Closes-Bug: #1452747
(cherry picked from commit c7f57b0d7bf2c45d30f8494a5fb4b6d42ec38583)
Reviewed: https:/ /review. openstack. org/183446 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=77c3553f60a 949610fc377112e 0f562c1c5cdffd
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 77c3553f60a9496 10fc377112e0f56 2c1c5cdffd
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 d30f8494a5fb4b6 d42ec38583)
Closes-Bug: #1452747
(cherry picked from commit c7f57b0d7bf2c45