From fd35eb99a1711c2e73bc7a7be41a461927ef848d Mon Sep 17 00:00:00 2001 From: imran-ansari <31840833+imran-ansari@users.noreply.github.com> Date: Thu, 11 Jul 2019 20:51:37 +0530 Subject: [PATCH] Fix for mount from multiple hosts (#690) * Invalid CPG fix * Corrected error message * Duplicate FPG handling regression * Fixed issue in mount from multiple nodes --- hpedockerplugin/file_manager.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hpedockerplugin/file_manager.py b/hpedockerplugin/file_manager.py index 5a86401f..bd6899ad 100644 --- a/hpedockerplugin/file_manager.py +++ b/hpedockerplugin/file_manager.py @@ -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))