commit c89d627e44d29ab64be7b092d9c3ed5b043d79aa
Author: Alyson Rosa <email address hidden>
Date: Tue Aug 16 09:19:42 2016 -0300
Fix Manila HNAS driver managing a share twice
Manila HNAS driver splits the path to manage a share by ':', so when
passing a path with two colons the last part is ignored, it causes the
possibility to manage a share twice. For example:
Reviewed: https:/ /review. openstack. org/368007 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=c89d627e44d 29ab64be7b092d9 c3ed5b043d79aa
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit c89d627e44d29ab 64be7b092d9c3ed 5b043d79aa
Author: Alyson Rosa <email address hidden>
Date: Tue Aug 16 09:19:42 2016 -0300
Fix Manila HNAS driver managing a share twice
Manila HNAS driver splits the path to manage a share by ':', so when
passing a path with two colons the last part is ignored, it causes the
possibility to manage a share twice. For example:
manila manage --name test1 --share-type hds ubuntu@hnas#Hitachi nfs 24.49.26: /shares/ f5b21612- 9841-42c8- bec4-ca32ba70a9 ae
172.
and
manila manage --name test2 --share-type hds ubuntu@hnas#Hitachi nfs 24.49.26: /shares/ f5b21612- 9841-42c8- bec4-ca32ba70a9 ae:1
172.
Changing the split to search for ':/shares/' prevents a share to be
managed twice.
Conflicts:
manila/ share/drivers/ hitachi/ hds_hnas. py
manila/ tests/share/ drivers/ hitachi/ hnas/test_ driver. py
Change-Id: Ie97f749d7093db 69a757db7c04041 f6f649c7ce9 1a9201fb0090930 51fa2f8755)
Closes-Bug: #1613683
(cherry picked from commit 12f95b1373dad7b