You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by ad...@apache.org on 2019/09/02 14:42:08 UTC

[incubator-dlab] 01/01: [DLAB-1071] Spark cluster fails if project name contains uppercase. Removed tensor-rstudio_description.json for gcp.

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

adamsd pushed a commit to branch DLAB-1071
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 9c147adce0b6b020dda7f8360eeb034f2a507ab5
Author: AdamsDisturber <ad...@gmail.com>
AuthorDate: Mon Sep 2 17:41:34 2019 +0300

    [DLAB-1071] Spark cluster fails if project name contains uppercase.
    Removed tensor-rstudio_description.json for gcp.
---
 .../files/gcp/tensor-rstudio_description.json        | 20 --------------------
 .../gcp/common_notebook_configure_dataengine.py      |  4 ++--
 2 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/infrastructure-provisioning/src/general/files/gcp/tensor-rstudio_description.json b/infrastructure-provisioning/src/general/files/gcp/tensor-rstudio_description.json
deleted file mode 100644
index 8afc865..0000000
--- a/infrastructure-provisioning/src/general/files/gcp/tensor-rstudio_description.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-  "exploratory_environment_shapes" :
-  {
-    "GPU optimized": [
-      {"Size": "S", "Description": "n1-standard-2", "Type": "n1-standard-2","Ram": "7.50 GB","Cpu": "2"},
-      {"Size": "M", "Description": "n1-highcpu-8", "Type": "n1-highcpu-8","Ram": "7.20 GB","Cpu": "8"},
-      {"Size": "L", "Description": "n1-highmem-32", "Type": "n1-highmem-32","Ram": "208 GB","Cpu": "32"}
-    ]
-  },
-  "exploratory_environment_versions" :
-  [
-    {
-      "template_name": "RStudio with TensorFlow 1.8.0",
-      "description": "Base image with TensorFlow and RStudio node creation routines",
-      "environment_type": "exploratory",
-      "version": "tensorflow_gpu-1.8.0",
-      "vendor": "GCP"
-    }
-  ]
-}
\ No newline at end of file
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/common_notebook_configure_dataengine.py b/infrastructure-provisioning/src/general/scripts/gcp/common_notebook_configure_dataengine.py
index d726dca..adf1f0b 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/common_notebook_configure_dataengine.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/common_notebook_configure_dataengine.py
@@ -54,8 +54,8 @@ if __name__ == "__main__":
         notebook_config['service_base_name'] = os.environ['conf_service_base_name']
         notebook_config['region'] = os.environ['gcp_region']
         notebook_config['zone'] = os.environ['gcp_zone']
-        notebook_config['user_name'] = os.environ['edge_user_name'].replace('_', '-')
-        notebook_config['project_name'] = os.environ['project_name'].replace('_', '-')
+        notebook_config['user_name'] = os.environ['edge_user_name'].lower().replace('_', '-')
+        notebook_config['project_name'] = os.environ['project_name'].lower().replace('_', '-')
         notebook_config['cluster_name'] = notebook_config['service_base_name'] + '-' + notebook_config['project_name'] + \
                                           '-de-' + notebook_config['exploratory_name'] + '-' + \
                                           notebook_config['computational_name']


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org