This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2054
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit c574fce9da1a840be190cf9cf1b0b97e0e32d1d7
Author: leonidfrolov <[email protected]>
AuthorDate: Wed Nov 17 17:45:45 2021 +0200

    [DATALAB-2054]: added right mount path insurance for azure spark
---
 .../src/general/scripts/azure/dataengine_configure.py                 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/infrastructure-provisioning/src/general/scripts/azure/dataengine_configure.py 
b/infrastructure-provisioning/src/general/scripts/azure/dataengine_configure.py
index 3d25aea..d63f393 100644
--- 
a/infrastructure-provisioning/src/general/scripts/azure/dataengine_configure.py
+++ 
b/infrastructure-provisioning/src/general/scripts/azure/dataengine_configure.py
@@ -77,6 +77,8 @@ def configure_slave(slave_number, data_engine):
             .format(slave_hostname, keyfile_name, 
data_engine['datalab_ssh_user'], os.environ['application'])
         try:
             subprocess.run("~/scripts/{}.py 
{}".format('common_clean_instance', params), shell=True, check=True)
+            datalab.actions_lib.ensure_right_mount_paths(True, 
data_engine['datalab_ssh_user'], slave_hostname,
+                                                         keyfile_name)
         except:
             traceback.print_exc()
             raise Exception
@@ -255,6 +257,8 @@ if __name__ == "__main__":
         params = '--hostname {} --keyfile {} --os_user {} --application {}' \
             .format(master_node_hostname, keyfile_name, 
data_engine['datalab_ssh_user'], os.environ['application'])
         try:
+            datalab.actions_lib.ensure_right_mount_paths(True, 
data_engine['datalab_ssh_user'], master_node_hostname,
+                                                         keyfile_name)
             subprocess.run("~/scripts/{}.py 
{}".format('common_clean_instance', params), shell=True, check=True)
         except:
             traceback.print_exc()

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to