You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by my...@apache.org on 2020/05/21 08:06:58 UTC
[incubator-dlab] branch DLAB-515 updated: [DLAB-515]: EDGE as NAT
configuration fixed
This is an automated email from the ASF dual-hosted git repository.
mykolabodnar pushed a commit to branch DLAB-515
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-515 by this push:
new d53b2a9 [DLAB-515]: EDGE as NAT configuration fixed
new 5849b09 Merge remote-tracking branch 'origin/DLAB-515' into DLAB-515
d53b2a9 is described below
commit d53b2a9791c91c4e6522376b508a1391939c7dce
Author: bodnarmykola <bo...@gmail.com>
AuthorDate: Thu May 21 11:02:43 2020 +0300
[DLAB-515]: EDGE as NAT configuration fixed
---
.../general/scripts/aws/dataengine-service_jars_parser.py | 2 +-
.../src/general/scripts/aws/edge_configure.py | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_jars_parser.py b/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_jars_parser.py
index 0626285..699f07c 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_jars_parser.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/dataengine-service_jars_parser.py
@@ -63,7 +63,7 @@ if __name__ == "__main__":
with open('/tmp/r_version', 'w') as outfile:
outfile.write(r_ver)
os.system('touch /tmp/python_version')
- for v in range(4, 7):
+ for v in range(4, 8):
python_ver_checker = "python3.{} -V 2>/dev/null".format(v) + " | awk '{print $2}'"
python_ver = subprocess.check_output(python_ver_checker, shell=True)
if python_ver != '':
diff --git a/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py b/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py
index 5239386..2a809f6 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/edge_configure.py
@@ -161,6 +161,21 @@ if __name__ == "__main__":
except:
traceback.print_exc()
raise Exception
+ print('RESTARTING EDGE NODE')
+ try:
+ print('Stoping EDGE node')
+ dlab.actions_lib.stop_ec2(edge_conf['tag_name'], edge_conf['instance_name'])
+ except Exception as err:
+ print('Error: {0}'.format(err))
+ dlab.fab.append_result("Failed to stop edge.", str(err))
+ sys.exit(1)
+ try:
+ print('Starting EDGE node')
+ dlab.actions_lib.start_ec2(edge_conf['tag_name'], edge_conf['instance_name'])
+ except Exception as err:
+ print('Error: {0}'.format(err))
+ dlab.fab.append_result("Failed to start edge.", str(err))
+ sys.exit(1)
except Exception as err:
dlab.fab.append_result("Failed installing apps: apt & pip.", str(err))
clear_resources()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org