diff options
Diffstat (limited to 'yardstick/benchmark/scenarios/lib/migrate.py')
-rw-r--r-- | yardstick/benchmark/scenarios/lib/migrate.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/lib/migrate.py b/yardstick/benchmark/scenarios/lib/migrate.py index 116bae69e..dd244c7ce 100644 --- a/yardstick/benchmark/scenarios/lib/migrate.py +++ b/yardstick/benchmark/scenarios/lib/migrate.py @@ -16,7 +16,7 @@ import threading import time from datetime import datetime -import ping + from yardstick.common import openstack_utils from yardstick.common.utils import change_obj_to_dict @@ -28,6 +28,15 @@ TIMEOUT = 0.05 PACKAGE_SIZE = 64 +try: + import ping +except ImportError: + # temp fix for ping module import error on Python3 + # we need to replace the ping module anyway + import mock + ping = mock.MagicMock() + + class Migrate(base.Scenario): # pragma: no cover """ Execute a live migration for two hosts |