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/08/10 15:03:09 UTC

[incubator-dlab] branch DLAB-1983 created (now 5dc7903)

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

lfrolov pushed a change to branch DLAB-1983
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git.


      at 5dc7903  [DLAB-1983]: added 'invalid_name' status for yum

This branch includes the following new commits:

     new e69dafb  [DLAB-1983]: added 'invalid_name' status for apt
     new 3ffe642  [DLAB-1983]: added 'invalid_name' status for pip
     new 719de4f  [DLAB-1983]: added 'invalid_name' status for R
     new 5dc7903  [DLAB-1983]: added 'invalid_name' status for yum

The 4 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] 02/04: [DLAB-1983]: added 'invalid_name' status for pip

Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3ffe642d12694a3e0a95dfb241afd173457a2cdd
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Aug 10 17:35:05 2020 +0300

    [DLAB-1983]: added 'invalid_name' status for pip
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 795e546..fbabb89 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -86,6 +86,8 @@ def install_pip_pkg(requisites, pip_version, lib_group):
                 res = sudo('cat /tmp/{0}install_{1}.list'.format(pip_version, changed_pip_pkg))
             if err and name not in installed_out:
                 status_msg = 'installation_error'
+                if 'ERROR: No matching distribution found for {}'.format(name) in err:
+                    status_msg = 'invalid_name'
             elif res:
                 res = res.lower()
                 ansi_escape = re.compile(r'\x1b[^m]*m')


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


[incubator-dlab] 04/04: [DLAB-1983]: added 'invalid_name' status for yum

Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5dc7903459a7f479bac1eb5f33ec54209a45e673
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Aug 10 18:02:13 2020 +0300

    [DLAB-1983]: added 'invalid_name' status for yum
---
 infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
index 6fbb306..f80da1f 100644
--- a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
@@ -395,6 +395,8 @@ def install_os_pkg(requisites):
                             versions[n] = i.split(':')[1].split('-')[0]
                         else:
                             versions[n] = i.split('-')[0]
+                else:
+                    status_msg = 'invalid_name'
             status.append({"group": "os_pkg", "name": name, "version": version, "status": status_msg,
                            "error_message": err, "add_pkgs": dep, "available_versions": versions})
         return status


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


[incubator-dlab] 01/04: [DLAB-1983]: added 'invalid_name' status for apt

Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e69dafb265ff34b3cc9e3f1f7de40507cefa132c
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Aug 10 17:33:29 2020 +0300

    [DLAB-1983]: added 'invalid_name' status for apt
---
 infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 86d6269..b479e30 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -433,6 +433,8 @@ def install_os_pkg(requisites):
             res = sudo('cat /tmp/os_install_{}.list'.format(name))
             if err:
                 status_msg = 'installation_error'
+                if 'E: Unable to locate package {}'.format(name) in err:
+                    status_msg = 'invalid_name'
             elif res:
                 ansi_escape = re.compile(r'\x1b[^m]*m')
                 ver = ansi_escape.sub('', res).split("\r\n")


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


[incubator-dlab] 03/04: [DLAB-1983]: added 'invalid_name' status for R

Posted by lf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 719de4f4b5c7f1e7dfa80f15fece5d991a61bbe1
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Aug 10 17:39:11 2020 +0300

    [DLAB-1983]: added 'invalid_name' status for R
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index fbabb89..6555f4b 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -435,7 +435,7 @@ def ensure_ciphers():
 
 def install_r_pkg(requisites):
     status = list()
-    error_parser = "ERROR:|error:|Cannot|failed|Please run|requires|Error|Skipping"
+    error_parser = "ERROR:|error:|Cannot|failed|Please run|requires|Error|Skipping|couldn't find"
     try:
         for r_pkg in requisites:
             name, vers = r_pkg
@@ -467,6 +467,8 @@ def install_r_pkg(requisites):
             res = sudo('cat /tmp/install_{0}.list'.format(name))
             if err:
                 status_msg = 'installation_error'
+                if 'couldn\'t find package \'{}\''.format(name) in err:
+                    status_msg = 'invalid_name'
             elif res:
                 ansi_escape = re.compile(r'\x1b[^m]*m')
                 version = ansi_escape.sub('', res).split("\r\n")[0].split('"')[1]


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