Example #1
0
 def test_live_migration_abort_still_working(self):
     # Elapsed time is less than completion timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Example #2
0
 def test_live_migration_abort_too_long(self):
     # Elapsed time is over completion timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            4500, 2000,
                                            4500, 2000,
                                            "running"))
Example #3
0
 def test_live_migration_abort_no_comp_timeout(self):
     # Completion timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 0,
                                             "running"))
Example #4
0
 def test_live_migration_abort_no_prog_timeout(self):
     # Progress timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             1000, 0,
                                             4500, 9000,
                                             "running"))
Example #5
0
 def test_live_migration_abort_not_stuck(self):
     # Progress time is less than progress timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Example #6
0
 def test_live_migration_abort_still_working(self):
     # Elapsed time is less than completion timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Example #7
0
 def test_live_migration_abort_stuck(self):
     # Progress time exceeds progress timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            1000, 2000,
                                            4500, 9000,
                                            "running"))
Example #8
0
 def test_live_migration_abort_no_comp_timeout(self):
     # Completion timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 0,
                                             "running"))
Example #9
0
 def test_live_migration_abort_too_long(self):
     # Elapsed time is over completion timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            4500, 2000,
                                            4500, 2000,
                                            "running"))
Example #10
0
 def test_live_migration_abort_not_stuck(self):
     # Progress time is less than progress timeout
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             4500, 2000,
                                             4500, 9000,
                                             "running"))
Example #11
0
 def test_live_migration_abort_no_prog_timeout(self):
     # Progress timeout is disabled
     self.assertFalse(migration.should_abort(self.instance,
                                             5000,
                                             1000, 0,
                                             4500, 9000,
                                             "running"))
Example #12
0
 def test_live_migration_abort_stuck(self):
     # Progress time exceeds progress timeout
     self.assertTrue(migration.should_abort(self.instance,
                                            5000,
                                            1000, 2000,
                                            4500, 9000,
                                            "running"))