You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/02/19 08:24:51 UTC
[incubator-dlab] branch DLAB-1468 created (now 66121dd)
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a change to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.
at 66121dd DLAB-1468 Removed usage of conf_shared_image_enabled parameter from py scripts
This branch includes the following new commits:
new c365023 jupyterlab changes
new cf496df Merge branch 'DLAB-24' into develop
new 6b8fdec DLAB-24 fixed mistake
new 195c261 Merge branch 'develop' of https://github.com/apache/incubator-dlab into develop
new 6af8f81 Merge branch 'develop' of https://github.com/apache/incubator-dlab into develop
new 21fc597 Merge branch 'develop' of https://github.com/apache/incubator-dlab into develop
new 66121dd DLAB-1468 Removed usage of conf_shared_image_enabled parameter from py scripts
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 04/07: Merge branch 'develop' of
https://github.com/apache/incubator-dlab into develop
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 195c261df7f09b2f705d04c5f5997192f5e46734
Merge: 6b8fdec 134fe6e
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 17 10:13:41 2020 +0200
Merge branch 'develop' of https://github.com/apache/incubator-dlab into develop
.../src/general/conf/dlab.ini | 2 +-
.../scripts/aws/dataengine-service_configure.py | 2 +-
.../scripts/aws/dataengine-service_prepare.py | 6 +-
.../src/general/scripts/aws/ssn_configure.py | 4 +
.../src/general/scripts/azure/ssn_configure.py | 4 +
.../src/general/scripts/gcp/ssn_configure.py | 4 +
.../terraform/azure/endpoint/main/instance.tf | 70 ++++++++++++
.../main/s3.tf => azure/endpoint/main/main.tf} | 28 +++--
.../terraform/azure/endpoint/main/network.tf | 98 +++++++++++++++++
.../buckets.tf => azure/endpoint/main/outputs.tf} | 23 ++--
.../terraform/azure/endpoint/main/sg.tf | 72 ++++++++++++
.../s3.tf => azure/endpoint/main/variables.tf} | 51 +++++++--
.../terraform/bin/deploy/endpoint_fab.py | 121 ++++++++-------------
.../terraform/bin/deploy/provisioning.yml | 1 +
infrastructure-provisioning/terraform/bin/dlab.py | 74 ++++++++++++-
.../terraform/gcp/endpoint/main/variables.tf | 4 -
.../dlab/login/resources/css/login.css | 1 +
.../s3.tf => services/billing-azure/Dockerfile | 19 +---
.../billing/gcp/service/BillingServiceImpl.java | 2 +-
.../epam/dlab/billing/gcp/util/BillingUtils.java | 6 +-
.../epam/dlab/dto/azure/AzureCloudSettings.java | 16 +++
services/provisioning-service/provisioning.yml | 1 +
.../epam/dlab/backendapi/CloudConfiguration.java | 1 +
.../backendapi/core/commands/CommandBuilder.java | 11 +-
.../backendapi/core/commands/RunDockerCommand.java | 5 +
.../response/handlers/ComputationalConfigure.java | 42 ++++---
.../resources/GitExploratoryResource.java | 7 ++
.../dlab/backendapi/resources/ImageResource.java | 11 +-
.../dlab/backendapi/resources/LibraryResource.java | 11 +-
.../backendapi/resources/base/EdgeService.java | 8 ++
.../resources/base/ExploratoryService.java | 8 ++
.../resources/base/InfrastructureService.java | 43 ++++----
.../service/impl/CheckInactivityServiceImpl.java | 23 +++-
.../service/impl/ProjectServiceImpl.java | 13 ++-
.../service/impl/SparkClusterService.java | 27 ++++-
.../epam/dlab/backendapi/domain/EndpointDTO.java | 8 +-
.../backendapi/resources/EndpointResource.java | 3 +-
.../service/impl/EndpointServiceImpl.java | 1 +
.../services/applicationServiceFacade.service.ts | 7 ++
.../src/app/core/services/userResource.service.ts | 8 ++
.../webapp/src/app/core/util/sortUtils.ts | 5 +
.../reporting-grid/reporting-grid.component.html | 2 +-
.../reporting-grid/reporting-grid.component.scss | 4 +
.../create-environment.component.html | 3 +-
.../create-environment.component.ts | 19 +++-
.../app/resources/exploratory/notebook.model.ts} | 39 +++----
.../resources-grid/resources-grid.component.scss | 4 +
.../resources-grid/resources-grid.component.ts | 33 ++++--
.../resources/webapp/src/assets/styles/_theme.scss | 36 ++----
.../webapp/src/dictionary/azure.dictionary.ts | 2 +-
50 files changed, 742 insertions(+), 251 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 06/07: Merge branch 'develop' of
https://github.com/apache/incubator-dlab into develop
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 21fc5970e68fb7212bb916a4c97247762a3880a9
Merge: 6af8f81 4e2365a
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Feb 18 16:02:40 2020 +0200
Merge branch 'develop' of https://github.com/apache/incubator-dlab into develop
.../src/general/lib/os/debian/common_lib.py | 34 +++++++++++++---------
.../src/general/lib/os/redhat/common_lib.py | 34 +++++++++++++---------
2 files changed, 42 insertions(+), 26 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 02/07: Merge branch 'DLAB-24' into develop
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit cf496dfa93f59280fc659d0c5759748118c810fe
Merge: 0a6096e c365023
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Feb 14 15:07:36 2020 +0200
Merge branch 'DLAB-24' into develop
.../src/general/conf/dlab.ini | 2 +-
.../src/general/lib/gcp/actions_lib.py | 41 +++++++++-------
.../src/general/lib/gcp/meta_lib.py | 56 ++++++++++++++++++++-
.../general/scripts/gcp/common_create_instance.py | 3 +-
.../scripts/gcp/common_create_service_account.py | 10 ++--
.../general/scripts/gcp/common_prepare_notebook.py | 4 +-
.../scripts/gcp/dataengine-service_configure.py | 6 ++-
.../scripts/gcp/dataengine-service_prepare.py | 6 ++-
.../src/general/scripts/gcp/dataengine_prepare.py | 8 +--
.../src/general/scripts/gcp/edge_configure.py | 30 ++++++------
.../src/general/scripts/gcp/edge_terminate.py | 2 +-
.../src/general/scripts/gcp/project_prepare.py | 57 +++++++++++-----------
.../src/general/scripts/gcp/project_terminate.py | 10 ++--
.../src/general/scripts/gcp/ssn_configure.py | 22 ++++++---
.../src/general/scripts/gcp/ssn_prepare.py | 21 +++++---
.../scripts/gcp/ssn_terminate_gcp_resources.py | 2 +-
.../src/jupyterlab/Dockerfile_jupyterlab | 4 +-
infrastructure-provisioning/src/ssn/fabfile.py | 7 ++-
18 files changed, 187 insertions(+), 104 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 05/07: Merge branch 'develop' of
https://github.com/apache/incubator-dlab into develop
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 6af8f81ae4a4dfa1f9785ae363186ea17473aa36
Merge: 195c261 0a9f4f6
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Feb 18 13:21:48 2020 +0200
Merge branch 'develop' of https://github.com/apache/incubator-dlab into develop
.../src/general/lib/os/debian/common_lib.py | 34 +++++++++---
.../src/general/lib/os/debian/edge_lib.py | 7 ++-
.../src/general/lib/os/debian/notebook_lib.py | 64 +++++++++++-----------
.../src/general/lib/os/debian/ssn_lib.py | 19 ++++---
.../src/general/lib/os/fab.py | 5 +-
.../src/general/lib/os/redhat/common_lib.py | 36 +++++++++---
.../src/general/lib/os/redhat/edge_lib.py | 8 +--
.../src/general/lib/os/redhat/notebook_lib.py | 60 ++++++++++----------
.../src/general/lib/os/redhat/ssn_lib.py | 21 +++----
9 files changed, 148 insertions(+), 106 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 01/07: jupyterlab changes
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit c3650239cc36dceb7fe31ff221825dcfe5c3664d
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Feb 14 15:06:59 2020 +0200
jupyterlab changes
---
infrastructure-provisioning/src/general/conf/dlab.ini | 2 +-
infrastructure-provisioning/src/jupyterlab/Dockerfile_jupyterlab | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/infrastructure-provisioning/src/general/conf/dlab.ini b/infrastructure-provisioning/src/general/conf/dlab.ini
index e92081a..b639611 100644
--- a/infrastructure-provisioning/src/general/conf/dlab.ini
+++ b/infrastructure-provisioning/src/general/conf/dlab.ini
@@ -283,7 +283,7 @@ ivy_version = 2.4.0
### Matplotlib version
matplotlib_version = 2.0.2
### JupyterLab image
-jupyterlab_image = legionplatformtest\\/jupyterlab:1.0.0-rc21
+jupyterlab_image = odahu\\/base-notebook:1.1.0-rc7
### Superset version
superset_version = 0.35.1
diff --git a/infrastructure-provisioning/src/jupyterlab/Dockerfile_jupyterlab b/infrastructure-provisioning/src/jupyterlab/Dockerfile_jupyterlab
index 673ef8c..4262d74 100644
--- a/infrastructure-provisioning/src/jupyterlab/Dockerfile_jupyterlab
+++ b/infrastructure-provisioning/src/jupyterlab/Dockerfile_jupyterlab
@@ -30,9 +30,7 @@ COPY jupyter_notebook_config.py /etc/jupyter/jupyter_notebook_config.py
#Prepearing Start script
COPY jupyterlab_run.sh /jupyterlab_run.sh
RUN sed -i 's|CONF_PATH|/etc/jupyter/jupyter_notebook_config.py|' /jupyterlab_run.sh \
- && chmod +x /jupyterlab_run.sh \
- && chown -R 1001:1001 /etc/jupyter \
- && chown -R 1001:1001 /opt/odahu-flow
+ && chmod +x /jupyterlab_run.sh
RUN apt update && apt install -y vim netcat-openbsd
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 03/07: DLAB-24 fixed mistake
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 6b8fdecda0261434a410b845a1ea8e435ae251ee
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Feb 14 15:41:16 2020 +0200
DLAB-24 fixed mistake
---
infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py b/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
index feaef8d..099f7a6 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/project_prepare.py
@@ -69,7 +69,7 @@ if __name__ == "__main__":
project_conf['ps_service_account_name'] = '{}-{}-ps'.format(project_conf['service_base_name'],
project_conf['project_name'])
project_conf['ps_role_name'] = '{}-{}-{}-ps'.format(project_conf['service_base_name'],
- project_conf['project_name'], project_conf['edge_unique_index'])
+ project_conf['project_name'], project_conf['ps_unique_index'])
project_conf['ps_policy_path'] = '/root/files/ps_policy.json'
project_conf['ps_roles_path'] = '/root/files/ps_roles.json'
project_conf['instance_name'] = '{0}-{1}-{2}-edge'.format(project_conf['service_base_name'],
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org
[incubator-dlab] 07/07: DLAB-1468 Removed usage of
conf_shared_image_enabled parameter from py scripts
Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1468
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 66121dd9926c548bb5df4ee3d72ccc959834693a
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Feb 18 17:33:38 2020 +0200
DLAB-1468 Removed usage of conf_shared_image_enabled parameter from py scripts
---
.../general/scripts/aws/common_prepare_notebook.py | 8 +--
.../src/general/scripts/aws/dataengine_prepare.py | 8 +--
.../general/scripts/aws/deeplearning_configure.py | 25 +--------
.../src/general/scripts/aws/jupyter_configure.py | 22 +-------
.../general/scripts/aws/jupyterlab_configure.py | 41 ++++++--------
.../src/general/scripts/aws/rstudio_configure.py | 25 +--------
.../src/general/scripts/aws/ssn_configure.py | 4 --
.../scripts/aws/tensor-rstudio_configure.py | 25 +--------
.../src/general/scripts/aws/tensor_configure.py | 25 +--------
.../src/general/scripts/aws/zeppelin_configure.py | 25 +--------
.../scripts/azure/common_prepare_notebook.py | 10 +---
.../general/scripts/azure/dataengine_prepare.py | 8 +--
.../scripts/azure/deeplearning_configure.py | 19 +------
.../src/general/scripts/azure/jupyter_configure.py | 19 +------
.../src/general/scripts/azure/rstudio_configure.py | 19 +------
.../src/general/scripts/azure/ssn_configure.py | 4 --
.../src/general/scripts/azure/tensor_configure.py | 19 +------
.../general/scripts/azure/zeppelin_configure.py | 19 +------
.../general/scripts/gcp/common_prepare_notebook.py | 13 +----
.../src/general/scripts/gcp/dataengine_prepare.py | 13 +----
.../general/scripts/gcp/deeplearning_configure.py | 20 ++-----
.../src/general/scripts/gcp/jupyter_configure.py | 17 ++----
.../general/scripts/gcp/jupyterlab_configure.py | 62 +++++++++-------------
.../src/general/scripts/gcp/rstudio_configure.py | 19 ++-----
.../src/general/scripts/gcp/ssn_configure.py | 4 --
.../src/general/scripts/gcp/superset_configure.py | 20 ++-----
.../scripts/gcp/tensor-rstudio_configure.py | 19 ++-----
.../src/general/scripts/gcp/tensor_configure.py | 20 ++-----
.../src/general/scripts/gcp/zeppelin_configure.py | 19 ++-----
.../terraform/bin/deploy/endpoint_fab.py | 4 --
30 files changed, 91 insertions(+), 464 deletions(-)
diff --git a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
index 7e5e0ef..39026f4 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
@@ -76,13 +76,7 @@ if __name__ == "__main__":
os.environ['project_name'], os.environ['endpoint_name'])
notebook_config['tag_name'] = '{}-Tag'.format(notebook_config['service_base_name'])
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(notebook_config['service_base_name'],
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
notebook_config['notebook_image_name'] = (lambda x: '{0}-{1}-{2}-{3}'.format(notebook_config['service_base_name'],
diff --git a/infrastructure-provisioning/src/general/scripts/aws/dataengine_prepare.py b/infrastructure-provisioning/src/general/scripts/aws/dataengine_prepare.py
index 62b6a95..cc7ca8f 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/dataengine_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/dataengine_prepare.py
@@ -102,13 +102,7 @@ if __name__ == "__main__":
data_engine['primary_disk_size'] = '30'
data_engine['instance_class'] = 'dataengine'
- if os.environ['conf_shared_image_enabled'] == 'false':
- data_engine['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(data_engine['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- data_engine['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(data_engine['service_base_name'],
+ data_engine['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(data_engine['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
data_engine['notebook_image_name'] = (
diff --git a/infrastructure-provisioning/src/general/scripts/aws/deeplearning_configure.py b/infrastructure-provisioning/src/general/scripts/aws/deeplearning_configure.py
index 7d504d8..5030425 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/deeplearning_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/deeplearning_configure.py
@@ -58,15 +58,7 @@ if __name__ == "__main__":
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
@@ -263,23 +255,10 @@ if __name__ == "__main__":
try:
print('[CREATING AMI]')
ami_id = get_ami_id_by_name(notebook_config['expected_image_name'])
- if ami_id == '' and notebook_config['shared_image_enabled'] == 'false':
+ if ami_id == '':
print("Looks like it's first time we configure notebook server. Creating image.")
try:
os.environ['conf_additional_tags'] = os.environ[
- 'conf_additional_tags'] + ';project_tag:{0};endpoint_tag:{1};'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- except KeyError:
- os.environ['conf_additional_tags'] = 'project_tag:{0};endpoint_tag:{1}'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- else:
- try:
- os.environ['conf_additional_tags'] = os.environ[
'conf_additional_tags'] + ';ami:shared;endpoint_tag:{};'.format(
os.environ['endpoint_name'])
except KeyError:
diff --git a/infrastructure-provisioning/src/general/scripts/aws/jupyter_configure.py b/infrastructure-provisioning/src/general/scripts/aws/jupyter_configure.py
index 3ff45c8..4e88e94 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/jupyter_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/jupyter_configure.py
@@ -57,15 +57,8 @@ if __name__ == "__main__":
notebook_config['instance_name'] = '{}-{}-{}-nb-{}-{}'.format(notebook_config['service_base_name'],
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(notebook_config['service_base_name'],
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
notebook_config['notebook_image_name'] = str(os.environ.get('notebook_image_name'))
@@ -276,18 +269,7 @@ if __name__ == "__main__":
try:
print('[CREATING AMI]')
ami_id = get_ami_id_by_name(notebook_config['expected_image_name'])
- if ami_id == '' and notebook_config['shared_image_enabled'] == 'false':
- print("Looks like it's first time we configure notebook server. Creating image.")
- try:
- os.environ['conf_additional_tags'] = os.environ['conf_additional_tags'] + ';project_tag:{0};endpoint_tag:{1};'.format(os.environ['project_name'], os.environ['endpoint_name'])
- except KeyError:
- os.environ['conf_additional_tags'] = 'project_tag:{0};endpoint_tag:{1}'.format(os.environ['project_name'], os.environ['endpoint_name'])
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- else:
+ if ami_id == '':
print("Looks like it's first time we configure notebook server. Creating image.")
try:
os.environ['conf_additional_tags'] = os.environ['conf_additional_tags'] + ';ami:shared;endpoint_tag:{};'.format(os.environ['endpoint_name'])
diff --git a/infrastructure-provisioning/src/general/scripts/aws/jupyterlab_configure.py b/infrastructure-provisioning/src/general/scripts/aws/jupyterlab_configure.py
index b864fd4..ce5c9f9 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/jupyterlab_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/jupyterlab_configure.py
@@ -56,16 +56,8 @@ if __name__ == "__main__":
notebook_config['instance_name'] = '{}-{}-{}-nb-{}-{}'.format(notebook_config['service_base_name'],
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
@@ -272,22 +264,21 @@ if __name__ == "__main__":
remove_ec2(notebook_config['tag_name'], notebook_config['instance_name'])
sys.exit(1)
- if notebook_config['shared_image_enabled'] == 'true':
- try:
- print('[CREATING AMI]')
- ami_id = get_ami_id_by_name(notebook_config['expected_image_name'])
- if ami_id == '':
- print("Looks like it's first time we configure notebook server. Creating image.")
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- except Exception as err:
- print('Error: {0}'.format(err))
- append_result("Failed creating image.", str(err))
- remove_ec2(notebook_config['tag_name'], notebook_config['instance_name'])
- sys.exit(1)
+ try:
+ print('[CREATING AMI]')
+ ami_id = get_ami_id_by_name(notebook_config['expected_image_name'])
+ if ami_id == '':
+ print("Looks like it's first time we configure notebook server. Creating image.")
+ image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
+ instance_name=notebook_config['instance_name'],
+ image_name=notebook_config['expected_image_name'])
+ if image_id != '':
+ print("Image was successfully created. It's ID is {}".format(image_id))
+ except Exception as err:
+ print('Error: {0}'.format(err))
+ append_result("Failed creating image.", str(err))
+ remove_ec2(notebook_config['tag_name'], notebook_config['instance_name'])
+ sys.exit(1)
try:
print('[CONFIGURING PROXY FOR DOCKER]')
diff --git a/infrastructure-provisioning/src/general/scripts/aws/rstudio_configure.py b/infrastructure-provisioning/src/general/scripts/aws/rstudio_configure.py
index 574ad47..7fd732d 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/rstudio_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/rstudio_configure.py
@@ -59,15 +59,7 @@ if __name__ == "__main__":
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
@@ -256,23 +248,10 @@ if __name__ == "__main__":
try:
print('[CREATING AMI]')
ami_id = get_ami_id_by_name(`notebook_config['expected_image_name']`)
- if ami_id == '' and notebook_config['shared_image_enabled'] == 'false':
+ if ami_id == '':
print("Looks like it's first time we configure notebook server. Creating image.")
try:
os.environ['conf_additional_tags'] = os.environ[
- 'conf_additional_tags'] + ';project_tag:{0};endpoint_tag:{1};'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- except KeyError:
- os.environ['conf_additional_tags'] = 'project_tag:{0};endpoint_tag:{1}'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- else:
- try:
- os.environ['conf_additional_tags'] = os.environ[
'conf_additional_tags'] + ';ami:shared;endpoint_tag:{};'.format(
os.environ['endpoint_name'])
except KeyError:
diff --git a/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py b/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py
index a4d6dbc..9259032 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py
@@ -466,10 +466,6 @@ if __name__ == "__main__":
'value': ''
},
{
- 'key': 'SHARED_IMAGE_ENABLED',
- 'value': os.environ['conf_shared_image_enabled']
- },
- {
'key': 'CONF_IMAGE_ENABLED',
'value': os.environ['conf_image_enabled']
},
diff --git a/infrastructure-provisioning/src/general/scripts/aws/tensor-rstudio_configure.py b/infrastructure-provisioning/src/general/scripts/aws/tensor-rstudio_configure.py
index a10ccae..80ba2a0 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/tensor-rstudio_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/tensor-rstudio_configure.py
@@ -60,15 +60,7 @@ if __name__ == "__main__":
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
@@ -261,23 +253,10 @@ if __name__ == "__main__":
try:
print('[CREATING AMI]')
ami_id = get_ami_id_by_name(notebook_config['expected_image_name'])
- if ami_id == '' and notebook_config['shared_image_enabled'] == 'false':
+ if ami_id == '':
print("Looks like it's first time we configure notebook server. Creating image.")
try:
os.environ['conf_additional_tags'] = os.environ[
- 'conf_additional_tags'] + ';project_tag:{0};endpoint_tag:{1};'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- except KeyError:
- os.environ['conf_additional_tags'] = 'project_tag:{0};endpoint_tag:{1}'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- else:
- try:
- os.environ['conf_additional_tags'] = os.environ[
'conf_additional_tags'] + ';ami:shared;endpoint_tag:{};'.format(
os.environ['endpoint_name'])
except KeyError:
diff --git a/infrastructure-provisioning/src/general/scripts/aws/tensor_configure.py b/infrastructure-provisioning/src/general/scripts/aws/tensor_configure.py
index ebcb814..4766291 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/tensor_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/tensor_configure.py
@@ -60,15 +60,7 @@ if __name__ == "__main__":
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
@@ -256,23 +248,10 @@ if __name__ == "__main__":
try:
print('[CREATING AMI]')
ami_id = get_ami_id_by_name(notebook_config['expected_image_name'])
- if ami_id == '' and notebook_config['shared_image_enabled'] == 'false':
+ if ami_id == '':
print("Looks like it's first time we configure notebook server. Creating image.")
try:
os.environ['conf_additional_tags'] = os.environ[
- 'conf_additional_tags'] + ';project_tag:{0};endpoint_tag:{1};'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- except KeyError:
- os.environ['conf_additional_tags'] = 'project_tag:{0};endpoint_tag:{1}'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- else:
- try:
- os.environ['conf_additional_tags'] = os.environ[
'conf_additional_tags'] + ';ami:shared;endpoint_tag:{};'.format(
os.environ['endpoint_name'])
except KeyError:
diff --git a/infrastructure-provisioning/src/general/scripts/aws/zeppelin_configure.py b/infrastructure-provisioning/src/general/scripts/aws/zeppelin_configure.py
index 8e8e94b..c5f2510 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/zeppelin_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/zeppelin_configure.py
@@ -60,15 +60,7 @@ if __name__ == "__main__":
os.environ['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'], args.uuid)
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if os.environ['conf_shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
@@ -275,23 +267,10 @@ if __name__ == "__main__":
try:
print('[CREATING AMI]')
ami_id = get_ami_id_by_name(`notebook_config['expected_image_name']`)
- if ami_id == '' and notebook_config['shared_image_enabled'] == 'false':
+ if ami_id == '':
print("Looks like it's first time we configure notebook server. Creating image.")
try:
os.environ['conf_additional_tags'] = os.environ[
- 'conf_additional_tags'] + ';project_tag:{0};endpoint_tag:{1};'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- except KeyError:
- os.environ['conf_additional_tags'] = 'project_tag:{0};endpoint_tag:{1}'.format(
- os.environ['project_name'], os.environ['endpoint_name'])
- image_id = create_image_from_instance(tag_name=notebook_config['tag_name'],
- instance_name=notebook_config['instance_name'],
- image_name=notebook_config['expected_image_name'])
- if image_id != '':
- print("Image was successfully created. It's ID is {}".format(image_id))
- else:
- try:
- os.environ['conf_additional_tags'] = os.environ[
'conf_additional_tags'] + ';ami:shared;endpoint_tag:{};'.format(
os.environ['endpoint_name'])
except KeyError:
diff --git a/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
index d5be204..9b07ebd 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/common_prepare_notebook.py
@@ -90,15 +90,7 @@ if __name__ == "__main__":
sudo_group = 'wheel'
notebook_config['image_type'] = 'default'
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- notebook_config['endpoint_name'],
- notebook_config['project_name'],
- notebook_config['application'])
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
notebook_config['endpoint_name'],
notebook_config['application'])
diff --git a/infrastructure-provisioning/src/general/scripts/azure/dataengine_prepare.py b/infrastructure-provisioning/src/general/scripts/azure/dataengine_prepare.py
index 24855fa..6279555 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/dataengine_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/dataengine_prepare.py
@@ -105,13 +105,7 @@ if __name__ == "__main__":
data_engine['primary_disk_size'] = '32'
data_engine['image_type'] = 'default'
- if os.environ['conf_shared_image_enabled'] == 'false':
- data_engine['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(data_engine['service_base_name'],
- os.environ['endpoint_name'],
- os.environ['project_name'],
- os.environ['application'])
- else:
- data_engine['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(data_engine['service_base_name'],
+ data_engine['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(data_engine['service_base_name'],
os.environ['endpoint_name'],
os.environ['application'])
diff --git a/infrastructure-provisioning/src/general/scripts/azure/deeplearning_configure.py b/infrastructure-provisioning/src/general/scripts/azure/deeplearning_configure.py
index 3a64bf6..b35e71b 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/deeplearning_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/deeplearning_configure.py
@@ -58,26 +58,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
notebook_config['endpoint_name'],
- notebook_config['project_name'],
os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
- "SBN": notebook_config['service_base_name'],
- "User": notebook_config['user_name'],
- "project_tag": notebook_config['project_tag'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "Exploratory": notebook_config['exploratory_name'],
- os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value']}
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
- notebook_config['service_base_name'],
- notebook_config['endpoint_name'],
- os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
+ notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
"SBN": notebook_config['service_base_name'],
"User": notebook_config['user_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
diff --git a/infrastructure-provisioning/src/general/scripts/azure/jupyter_configure.py b/infrastructure-provisioning/src/general/scripts/azure/jupyter_configure.py
index 8d9ac96..23583ad 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/jupyter_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/jupyter_configure.py
@@ -57,26 +57,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
- notebook_config['service_base_name'],
- notebook_config['endpoint_name'],
- notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
- "SBN": notebook_config['service_base_name'],
- "User": notebook_config['user_name'],
- "project_tag": notebook_config['project_tag'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "Exploratory": notebook_config['exploratory_name'],
- os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value']}
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
notebook_config['endpoint_name'],
os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
+ notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
"SBN": notebook_config['service_base_name'],
"User": notebook_config['user_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
diff --git a/infrastructure-provisioning/src/general/scripts/azure/rstudio_configure.py b/infrastructure-provisioning/src/general/scripts/azure/rstudio_configure.py
index a9d2e50..58d7707 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/rstudio_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/rstudio_configure.py
@@ -58,26 +58,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
notebook_config['endpoint_name'],
- notebook_config['project_name'],
os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
- "SBN": notebook_config['service_base_name'],
- "User": notebook_config['user_name'],
- "project_tag": notebook_config['project_tag'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "Exploratory": notebook_config['exploratory_name'],
- os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value']}
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
- notebook_config['service_base_name'],
- notebook_config['endpoint_name'],
- os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
+ notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
"SBN": notebook_config['service_base_name'],
"User": notebook_config['user_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
diff --git a/infrastructure-provisioning/src/general/scripts/azure/ssn_configure.py b/infrastructure-provisioning/src/general/scripts/azure/ssn_configure.py
index 02c4eaa..addf3cf 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/ssn_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/ssn_configure.py
@@ -312,10 +312,6 @@ if __name__ == "__main__":
'value': ''
},
{
- 'key': 'SHARED_IMAGE_ENABLED',
- 'value': os.environ['conf_shared_image_enabled']
- },
- {
'key': 'CONF_IMAGE_ENABLED',
'value': os.environ['conf_image_enabled']
},
diff --git a/infrastructure-provisioning/src/general/scripts/azure/tensor_configure.py b/infrastructure-provisioning/src/general/scripts/azure/tensor_configure.py
index 107f52d..d4040d2 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/tensor_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/tensor_configure.py
@@ -60,26 +60,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
notebook_config['endpoint_name'],
- notebook_config['project_name'],
os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
- "SBN": notebook_config['service_base_name'],
- "User": notebook_config['user_name'],
- "project_tag": notebook_config['project_tag'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "Exploratory": notebook_config['exploratory_name'],
- os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value']}
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
- notebook_config['service_base_name'],
- notebook_config['endpoint_name'],
- os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
+ notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
"SBN": notebook_config['service_base_name'],
"User": notebook_config['user_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
diff --git a/infrastructure-provisioning/src/general/scripts/azure/zeppelin_configure.py b/infrastructure-provisioning/src/general/scripts/azure/zeppelin_configure.py
index e73c023..61632ba 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/zeppelin_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/zeppelin_configure.py
@@ -59,26 +59,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-{3}-notebook-image'.format(
+ notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
notebook_config['service_base_name'],
notebook_config['endpoint_name'],
- notebook_config['project_name'],
os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
- "SBN": notebook_config['service_base_name'],
- "User": notebook_config['user_name'],
- "project_tag": notebook_config['project_tag'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "Exploratory": notebook_config['exploratory_name'],
- os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value']}
- else:
- notebook_config['expected_image_name'] = '{0}-{1}-{2}-notebook-image'.format(
- notebook_config['service_base_name'],
- notebook_config['endpoint_name'],
- os.environ['application'])
- notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
+ notebook_config['image_tags'] = {"Name": notebook_config['instance_name'],
"SBN": notebook_config['service_base_name'],
"User": notebook_config['user_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
index 7f14dab..d097c6e 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/common_prepare_notebook.py
@@ -90,18 +90,9 @@ if __name__ == "__main__":
notebook_config['primary_disk_size'] = (lambda x: '30' if x == 'deeplearning' else '12')(os.environ['application'])
notebook_config['secondary_disk_size'] = os.environ['notebook_disk_size']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
notebook_config['notebook_primary_image_name'] = (lambda x: os.environ['notebook_primary_image_name'] if x != 'None'
else notebook_config['expected_primary_image_name'])(str(os.environ.get('notebook_primary_image_name')))
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/dataengine_prepare.py b/infrastructure-provisioning/src/general/scripts/gcp/dataengine_prepare.py
index 2776834..4758a7c 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/dataengine_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/dataengine_prepare.py
@@ -103,18 +103,9 @@ if __name__ == "__main__":
data_engine['primary_disk_size'] = '30'
data_engine['secondary_disk_size'] = os.environ['notebook_disk_size']
- data_engine['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if data_engine['shared_image_enabled'] == 'false':
- data_engine['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- data_engine['service_base_name'], data_engine['endpoint_tag'], data_engine['project_name'],
- os.environ['application'])
- data_engine['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- data_engine['service_base_name'], data_engine['endpoint_tag'], data_engine['project_name'],
- os.environ['application'])
- else:
- data_engine['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ data_engine['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
data_engine['service_base_name'], data_engine['endpoint_tag'], os.environ['application'])
- data_engine['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ data_engine['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
data_engine['service_base_name'], data_engine['endpoint_tag'], os.environ['application'])
data_engine['notebook_primary_image_name'] = (lambda x: os.environ['notebook_primary_image_name'] if x != 'None'
else data_engine['expected_primary_image_name'])(str(os.environ.get('notebook_primary_image_name')))
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/deeplearning_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/deeplearning_configure.py
index 4f18e12..0ddbe08 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/deeplearning_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/deeplearning_configure.py
@@ -54,24 +54,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
# generating variables regarding EDGE proxy on Notebook instance
@@ -83,7 +70,6 @@ if __name__ == "__main__":
notebook_config['ssh_key_path'] = '{0}{1}.pem'.format(os.environ['conf_key_dir'], os.environ['conf_key_name'])
notebook_config['dlab_ssh_user'] = os.environ['conf_os_user']
notebook_config['zone'] = os.environ['gcp_zone']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
try:
if os.environ['conf_os_family'] == 'debian':
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/jupyter_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/jupyter_configure.py
index 79794b7..a5efe88 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/jupyter_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/jupyter_configure.py
@@ -54,22 +54,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
instance_hostname = GCPMeta().get_private_ip_address(notebook_config['instance_name'])
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/jupyterlab_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/jupyterlab_configure.py
index b41b024..b043cbd 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/jupyterlab_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/jupyterlab_configure.py
@@ -75,24 +75,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
instance_hostname = GCPMeta().get_private_ip_address(notebook_config['instance_name'])
@@ -226,28 +213,27 @@ if __name__ == "__main__":
GCPActions().remove_instance(notebook_config['instance_name'], notebook_config['zone'])
sys.exit(1)
- if notebook_config['shared_image_enabled'] == 'true':
- try:
- print('[CREATING IMAGE]')
- primary_image_id = GCPMeta().get_image_by_name(notebook_config['expected_primary_image_name'])
- if primary_image_id == '':
- print("Looks like it's first time we configure notebook server. Creating images.")
- image_id_list = GCPActions().create_image_from_instance_disks(
- notebook_config['expected_primary_image_name'], notebook_config['expected_secondary_image_name'],
- notebook_config['instance_name'], notebook_config['zone'], notebook_config['image_labels'])
- if image_id_list and image_id_list[0] != '':
- print("Image of primary disk was successfully created. It's ID is {}".format(image_id_list[0]))
- else:
- print("Looks like another image creating operation for your template have been started a moment ago.")
- if image_id_list and image_id_list[1] != '':
- print("Image of secondary disk was successfully created. It's ID is {}".format(image_id_list[1]))
- except Exception as err:
- print('Error: {0}'.format(err))
- append_result("Failed creating image.", str(err))
- GCPActions().remove_instance(notebook_config['instance_name'], notebook_config['zone'])
- GCPActions().remove_image(notebook_config['expected_primary_image_name'])
- GCPActions().remove_image(notebook_config['expected_secondary_image_name'])
- sys.exit(1)
+ try:
+ print('[CREATING IMAGE]')
+ primary_image_id = GCPMeta().get_image_by_name(notebook_config['expected_primary_image_name'])
+ if primary_image_id == '':
+ print("Looks like it's first time we configure notebook server. Creating images.")
+ image_id_list = GCPActions().create_image_from_instance_disks(
+ notebook_config['expected_primary_image_name'], notebook_config['expected_secondary_image_name'],
+ notebook_config['instance_name'], notebook_config['zone'], notebook_config['image_labels'])
+ if image_id_list and image_id_list[0] != '':
+ print("Image of primary disk was successfully created. It's ID is {}".format(image_id_list[0]))
+ else:
+ print("Looks like another image creating operation for your template have been started a moment ago.")
+ if image_id_list and image_id_list[1] != '':
+ print("Image of secondary disk was successfully created. It's ID is {}".format(image_id_list[1]))
+ except Exception as err:
+ print('Error: {0}'.format(err))
+ append_result("Failed creating image.", str(err))
+ GCPActions().remove_instance(notebook_config['instance_name'], notebook_config['zone'])
+ GCPActions().remove_image(notebook_config['expected_primary_image_name'])
+ GCPActions().remove_image(notebook_config['expected_secondary_image_name'])
+ sys.exit(1)
try:
print('[SETUP EDGE REVERSE PROXY TEMPLATE]')
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/rstudio_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/rstudio_configure.py
index d5e5b08..5ff97f8 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/rstudio_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/rstudio_configure.py
@@ -55,24 +55,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
# generating variables regarding EDGE proxy on Notebook instance
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
index 87cd29a..cbc1673 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_configure.py
@@ -407,10 +407,6 @@ if __name__ == "__main__":
'value': ''
},
{
- 'key': 'SHARED_IMAGE_ENABLED',
- 'value': os.environ['conf_shared_image_enabled']
- },
- {
'key': 'CONF_IMAGE_ENABLED',
'value': os.environ['conf_image_enabled']
},
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py
index 6cfd891..e1afac9 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py
@@ -55,24 +55,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
instance_hostname = GCPMeta().get_private_ip_address(notebook_config['instance_name'])
@@ -83,7 +70,6 @@ if __name__ == "__main__":
notebook_config['ssh_key_path'] = '{0}{1}.pem'.format(os.environ['conf_key_dir'], os.environ['conf_key_name'])
notebook_config['dlab_ssh_user'] = os.environ['conf_os_user']
notebook_config['zone'] = os.environ['gcp_zone']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"project_tag": notebook_config['project_tag'],
"endpoint_tag": notebook_config['endpoint_tag'],
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/tensor-rstudio_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/tensor-rstudio_configure.py
index f791e74..b6e4423 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/tensor-rstudio_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/tensor-rstudio_configure.py
@@ -60,24 +60,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/tensor_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/tensor_configure.py
index 950a1c0..b925888 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/tensor_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/tensor_configure.py
@@ -56,24 +56,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
# generating variables regarding EDGE proxy on Notebook instance
@@ -85,7 +72,6 @@ if __name__ == "__main__":
notebook_config['ssh_key_path'] = '{0}{1}.pem'.format(os.environ['conf_key_dir'], os.environ['conf_key_name'])
notebook_config['dlab_ssh_user'] = os.environ['conf_os_user']
notebook_config['zone'] = os.environ['gcp_zone']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
try:
if os.environ['conf_os_family'] == 'debian':
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/zeppelin_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/zeppelin_configure.py
index 7981005..aee7792 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/zeppelin_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/zeppelin_configure.py
@@ -56,24 +56,11 @@ if __name__ == "__main__":
notebook_config['project_name'], os.environ['endpoint_name'],
notebook_config['exploratory_name'])
notebook_config['image_enabled'] = os.environ['conf_image_enabled']
- notebook_config['shared_image_enabled'] = os.environ['conf_shared_image_enabled']
- if notebook_config['shared_image_enabled'] == 'false':
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-{}-primary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-{}-secondary-image'.format(
- notebook_config['service_base_name'], notebook_config['endpoint_tag'], notebook_config['project_name'],
- os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
- "endpoint_tag": notebook_config['endpoint_tag'],
- "project_tag": notebook_config['project_tag'],
- "product": "dlab"}
- else:
- notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
+ notebook_config['expected_primary_image_name'] = '{}-{}-{}-primary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
+ notebook_config['expected_secondary_image_name'] = '{}-{}-{}-secondary-image'.format(
notebook_config['service_base_name'], notebook_config['endpoint_tag'], os.environ['application'])
- notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
+ notebook_config['image_labels'] = {"sbn": notebook_config['service_base_name'],
"endpoint_tag": notebook_config['endpoint_tag'],
"product": "dlab"}
# generating variables regarding EDGE proxy on Notebook instance
diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 00111db..842ade8 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -485,10 +485,6 @@ def configure_supervisor_endpoint(endpoint_keystore_password):
'value': args.step_ca_url
},
{
- 'key': "SHARED_IMAGE_ENABLED",
- 'value': args.shared_image_enabled
- },
- {
'key': "CONF_IMAGE_ENABLED",
'value': args.image_enabled
},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org