Skip to content

Commit

Permalink
Fix for mount from multiple hosts (#690)
Browse files Browse the repository at this point in the history
* Invalid CPG fix

* Corrected error message

* Duplicate FPG handling regression

* Fixed issue in mount from multiple nodes
  • Loading branch information
imran-ansari authored and wdurairaj committed Jul 11, 2019
1 parent 64938ba commit fd35eb9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hpedockerplugin/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,13 @@ def mount_share(self, share_name, share, mount_id):
client_ips = share['clientIPs']
client_ips.append(my_ip)

# node_mnt_info not present
node_mnt_info = {
self._node_id: [mount_id]
}
share['path_info'] = node_mnt_info
if path_info:
path_info[self._node_id] = [mount_id]
else:
# node_mnt_info not present
share['path_info'] = {
self._node_id: [mount_id]
}

self._create_mount_dir(mount_dir)
LOG.info("Mounting share path %s to %s" % (share_path, mount_dir))
Expand Down

0 comments on commit fd35eb9

Please # to comment.