Reviewed: https://review.openstack.org/378753 Committed: https://git.openstack.org/cgit/openstack/os-win/commit/?id=33e9af9377a06fa35f48bd9012f32faf9b97763d Submitter: Jenkins Branch: stable/mitaka
commit 33e9af9377a06fa35f48bd9012f32faf9b97763d Author: Lucian Petrut <email address hidden> Date: Tue Jun 7 19:06:11 2016 +0300
Add method for checking whether a share is local
Mounting loopback highly available shares is not supported.
The Hyper-V Nova driver needs a way to check whether a share is local and use the local path in that case.
This change adds a method that attempts to resolve the share server address and compare the IPs with the local IPs.
In case of a share exposed by a Scale-Out server, we'll use the Distributed Node Name of the share, which points to all the nodes of the cluster.
ddt is added as a requirement.
Change-Id: I04ac0b514ccac9c910728da205f0f0f11b43509a Partial-Bug: #1580122 (cherry picked from commit 111db692aee566ba63041f993d6e16237ed9abde)
Reviewed: https:/ /review. openstack. org/378753 /git.openstack. org/cgit/ openstack/ os-win/ commit/ ?id=33e9af9377a 06fa35f48bd9012 f32faf9b97763d
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 33e9af9377a06fa 35f48bd9012f32f af9b97763d
Author: Lucian Petrut <email address hidden>
Date: Tue Jun 7 19:06:11 2016 +0300
Add method for checking whether a share is local
Mounting loopback highly available shares is not supported.
The Hyper-V Nova driver needs a way to check whether a share is
local and use the local path in that case.
This change adds a method that attempts to resolve the share server
address and compare the IPs with the local IPs.
In case of a share exposed by a Scale-Out server, we'll use the
Distributed Node Name of the share, which points to all the nodes
of the cluster.
ddt is added as a requirement.
Change-Id: I04ac0b514ccac9 c910728da205f0f 0f11b43509a a63041f993d6e16 237ed9abde)
Partial-Bug: #1580122
(cherry picked from commit 111db692aee566b