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

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


The following commit(s) were added to refs/heads/DLAB-1467 by this push:
     new 43582b5  [DLAB-1467]: debug
43582b5 is described below

commit 43582b5297b4bcf1caaab2c640527251c4b378f5
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Fri Feb 7 12:42:06 2020 +0200

    [DLAB-1467]: debug
---
 .../src/general/lib/os/debian/common_lib.py                    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py 
b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
index 916c48c..c06012b 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -45,17 +45,25 @@ def ensure_pkg(user, requisites='linux-headers-generic 
python-pip python-dev '
                         print("Updating repositories "
                                 "and installing requested tools: 
{}".format(requisites))
                         print("Attempt number " + str(count) + " to install 
requested tools. Max 60 tries.")
+                        print("-----Starting-----")
+                        print("Check --->>> {}".format(str(check)))
                         sudo('apt-get update')
                         sudo('apt-get -y install ' + requisites)
                         sudo('unattended-upgrades -v')
                         sudo('export LC_ALL=C')
                         sudo('touch 
/home/{}/.ensure_dir/pkg_upgraded'.format(user))
                         sudo('systemctl enable haveged')
+                        print("-----After enabling------")
                         sudo('systemctl start haveged')
+                        print("-----after start-------")
                         if os.environ['conf_cloud_provider'] == 'aws':
                             sudo('apt-get -y install --install-recommends 
linux-aws-hwe')
                         check = True
-                    except:
+                        print("-----Finishing-----")
+                        print("Check --->>> {}".format(str(check)))
+                    except Exception as err:
+                        print("------Error-------")
+                        print(str(err))
                         count += 1
                         time.sleep(50)
     except:


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

Reply via email to