]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/console: allow deferring login after reset 1296/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 1 Jul 2019 18:45:27 +0000 (11:45 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 1 Jul 2019 18:45:55 +0000 (11:45 -0700)
Fixes: http://tracker.ceph.com/issues/37681
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/orchestra/console.py

index 5a36dc654dc1ce72e309b8ee366918866f9e3387..16a27a9df10149e9bc4d4703a025485bc659ad29 100644 (file)
@@ -199,7 +199,7 @@ class PhysicalConsole():
         self._wait_for_login(timeout=timeout)
         log.info('Power cycle for {s} completed'.format(s=self.shortname))
 
-    def hard_reset(self):
+    def hard_reset(self, wait_for_login=True):
         """
         Perform physical hard reset.  Retry if EOF returned from read
         and wait for login when complete.
@@ -212,7 +212,8 @@ class PhysicalConsole():
                              timeout=self.timeout)
             if r == 0:
                 break
-        self._wait_for_login()
+        if wait_for_login:
+            self._wait_for_login()
         log.info('Hard reset for {s} completed'.format(s=self.shortname))
 
     def power_on(self):