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

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

commit fb2e83b76ce62cc46ed5a0dab028ce965cdd614d
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Sep 8 11:32:43 2020 +0300

    [DLAB-1864]: added reboot in disk preparation
---
 infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 4 +++-
 1 file changed, 3 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 d3891db..2d23e50 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1238,7 +1238,9 @@ def prepare_disk(os_user):
                     if 'Syncing disks' in out:
                         allow = True
                     elif 'The kernel still uses the old table.' in out:
-                        sudo('partprobe')
+                        #sudo('partprobe')
+                        with settings(warn_only=True):
+                            reboot(wait=180)
                         allow = True
                     else:
                         counter += 1


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

Reply via email to