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

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

commit 95ae403523b4399991768d27f5d24e95587e4333
Author: Oleksandr Polishchuk <[email protected]>
AuthorDate: Tue Sep 27 20:56:41 2022 +0300

    added status to hdinsight scheduler and fixed some mistakes
---
 README.md                                                     | 6 +++---
 infrastructure-provisioning/src/general/lib/azure/meta_lib.py | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index d81ffbd3a..1453dae08 100644
--- a/README.md
+++ b/README.md
@@ -830,7 +830,7 @@ in which case endpoint is already provided locally.
 
 ```
 source /venv/bin/activate
-/venv/bin/python3 infrastructure-provisioning/terraform/bin/datalab.py create 
aws endpoint \
+/venv/bin/python3 infrastructure-provisioning/terraform/bin/datalab.py deploy 
aws endpoint \
 --access_key_id access_key \
 --secret_access_key secret_access_key \
 --key_name datalab-key \
@@ -888,7 +888,7 @@ List of parameters for Endpoint deployment:
 
 ```
 source /venv/bin/activate
-/venv/bin/python3 infrastructure-provisioning/terraform/bin/datalab.py create 
azure endpoint \
+/venv/bin/python3 infrastructure-provisioning/terraform/bin/datalab.py deploy 
azure endpoint \
 --auth_file_path /path/to/auth.json
 --key_name datalab-key \
 --pkey /path/to/private/key.pem \
@@ -951,7 +951,7 @@ List of parameters for Endpoint deployment:
 
 ```
 source /venv/bin/activate
-/venv/bin/python3 datalab.py create gcp endpoint \
+/venv/bin/python3 infrastructure-provisioning/terraform/bin/datalab.py deploy 
gcp endpoint \
 --gcp_project_id xxx-xxxx-xxxxxx \
 --creds_file /path/to/auth.json \
 --key_name datalab-key \
diff --git a/infrastructure-provisioning/src/general/lib/azure/meta_lib.py 
b/infrastructure-provisioning/src/general/lib/azure/meta_lib.py
index 8a98b53fe..dd595e530 100644
--- a/infrastructure-provisioning/src/general/lib/azure/meta_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/meta_lib.py
@@ -710,6 +710,8 @@ class AzureMeta:
                 host['id'] = cluster_name
                 if request.properties.cluster_state == 'Accepted' or 
request.properties.cluster_state == 'HdInsightConfiguration' or 
request.properties.cluster_state == 'ClusterStorageProvisioned' or 
request.properties.cluster_state == 'ReadyForDeployment':
                     host['status'] = 'creating'
+                elif request.properties.cluster_state == 
'AzureVMConfiguration' or request.properties.cluster_state == 'Operational' or 
request.properties.cluster_state == 'ClusterCustomization':
+                    host['status'] = 'creating'
                 elif request.properties.cluster_state == 'DeletePending' or 
request.properties.cluster_state == 'Deleting':
                     host['status'] = 'terminating'
                 elif request.properties.cluster_state == 'Error' or 
request.properties.cluster_state == 'TimedOut' or 
request.properties.cluster_state == 'Unknown':


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

Reply via email to