You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/06/02 06:33:29 UTC

[incubator-datalab] branch DATALAB-2814 updated: [DATALAB-2814]: changed logging level, added vars prints

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

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


The following commit(s) were added to refs/heads/DATALAB-2814 by this push:
     new 83ec27f6a [DATALAB-2814]: changed logging level, added vars prints
83ec27f6a is described below

commit 83ec27f6a7b42bd67ba6eced9db5eea5f9d77e6d
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Jun 2 09:33:20 2022 +0300

    [DATALAB-2814]: changed logging level, added vars prints
---
 .../src/general/lib/azure/actions_lib.py               | 18 ++++++++++++++++++
 .../src/general/lib/azure/meta_lib.py                  |  2 +-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
index bf2e0aef1..ce7775580 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -446,6 +446,17 @@ class AzureActions:
 
     def create_storage_account(self, resource_group_name, account_name, region, tags):
         try:
+            print('======1')
+            print(resource_group_name)
+            print(account_name)
+            print(region)
+            print(tags)
+            print(os.environ['azure_vpc_name'])
+            print(os.environ['azure_subnet_name'])
+            print(os.environ['conf_service_base_name'])
+            print(os.environ['project_name'])
+            print(os.environ['endpoint_name'])
+            print('======1')
             ssn_network_id = datalab.meta_lib.AzureMeta().get_subnet(resource_group_name,
                                                                      vpc_name=os.environ['azure_vpc_name'],
                                                                      subnet_name=os.environ['azure_subnet_name']
@@ -457,6 +468,13 @@ class AzureActions:
                                                                          (os.environ['project_name']),
                                                                          (os.environ['endpoint_name']))
                                                                        ).id
+
+            print('======1')
+            print(ssn_network_id)
+            print(edge_network_id)
+            print('======1')
+
+
             result = self.storage_client.storage_accounts.begin_create(
                 resource_group_name,
                 account_name,
diff --git a/infrastructure-provisioning/src/general/lib/azure/meta_lib.py b/infrastructure-provisioning/src/general/lib/azure/meta_lib.py
index e795c7789..ef0efaca1 100644
--- a/infrastructure-provisioning/src/general/lib/azure/meta_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/meta_lib.py
@@ -84,7 +84,7 @@ class AzureMeta:
                                             client_id=json.dumps(self.sp_creds['clientId']).replace('"', ''),
                                             resource='https://datalake.azure.net/')
         logger = logging.getLogger('azure')
-        logger.setLevel(logging.ERROR)
+        logger.setLevel(logging.INFO)
 
     def get_resource_group(self, resource_group_name):
         try:


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