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 2021/04/30 14:52:27 UTC

[incubator-datalab] branch DATALAB-2091 updated (2c162b5 -> fa012c4)

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

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


    from 2c162b5  Merge branch 'DATALAB-2091' of https://github.com/apache/incubator-dlab into DATALAB-2091
     new 20fb1d0  [DATALAB-2091]: added handling of "/dev/sdc1 is apparently in use by the system; will not make a filesystem here!"
     new fa012c4  [DATALAB-2091]: removed warn True

The 2 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.


Summary of changes:
 .../src/general/lib/azure/actions_lib.py                      | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

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


[incubator-datalab] 02/02: [DATALAB-2091]: removed warn True

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

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

commit fa012c472a136d114fa9b09c4563b89163b33a2d
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Apr 30 17:48:20 2021 +0300

    [DATALAB-2091]: removed warn True
---
 infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 2 +-
 1 file changed, 1 insertion(+), 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 6103f80..df48b93 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1255,7 +1255,7 @@ def prepare_disk(os_user):
                     sys.exit(1)
                 else:
                     out = datalab.fab.conn.sudo('''bash -c 'echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/{} 2>&1' '''.format(
-                        disk_name), warn=True).stdout
+                        disk_name)).stdout
                     if 'Syncing disks' in out:
                         allow = True
                     elif 'The kernel still uses the old table.' in out:

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


[incubator-datalab] 01/02: [DATALAB-2091]: added handling of "/dev/sdc1 is apparently in use by the system; will not make a filesystem here!"

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

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

commit 20fb1d0a6562941c20b3752da41e21a6389b319d
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Apr 30 17:23:59 2021 +0300

    [DATALAB-2091]: added handling of "/dev/sdc1 is apparently in use by the system; will not make a filesystem here!"
---
 infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 9 ++++++++-
 1 file changed, 8 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 0143029..6103f80 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1266,7 +1266,14 @@ def prepare_disk(os_user):
                         counter += 1
                         time.sleep(5)
             datalab.fab.conn.sudo('umount -l /dev/{}1'.format(disk_name), warn=True)
-            datalab.fab.conn.sudo('mkfs.ext4 -F /dev/{}1'.format(disk_name))
+            try:
+                datalab.fab.conn.sudo('mkfs.ext4 -F /dev/{}1'.format(disk_name))
+            except:
+                out = datalab.fab.conn.sudo('mount -l | grep /dev/{}1'.format(disk_name)).stdout
+                if 'type ext4' in out:
+                    pass
+                else:
+                    sys.exit(1)
             datalab.fab.conn.sudo('mount /dev/{}1 /opt/'.format(disk_name))
             datalab.fab.conn.sudo(''' bash -c "echo '/dev/{}1 /opt/ ext4 errors=remount-ro 0 1' >> /etc/fstab" '''.format(
                 disk_name))

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