From d1b2092c8fdb062c8b551fe46047b920ea878adb Mon Sep 17 00:00:00 2001 From: Eyal Date: Wed, 8 Jan 2020 16:25:16 +0200 Subject: [PATCH] Add logging and use smallest image to create a vm Change-Id: I4a950e3192e855d08ec5f42b90288405bf526c84 --- vitrage_tempest_plugin/tests/common/glance_utils.py | 2 +- vitrage_tempest_plugin/tests/common/nova_utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vitrage_tempest_plugin/tests/common/glance_utils.py b/vitrage_tempest_plugin/tests/common/glance_utils.py index d4b92a2..6a15dbf 100644 --- a/vitrage_tempest_plugin/tests/common/glance_utils.py +++ b/vitrage_tempest_plugin/tests/common/glance_utils.py @@ -15,4 +15,4 @@ from vitrage_tempest_plugin.tests.common.tempest_clients import TempestClients def get_first_image(): - return TempestClients.glance().images.list().next() + return next(TempestClients.glance().images.list(sort='size:asc')) diff --git a/vitrage_tempest_plugin/tests/common/nova_utils.py b/vitrage_tempest_plugin/tests/common/nova_utils.py index f8e8058..1ec80ce 100644 --- a/vitrage_tempest_plugin/tests/common/nova_utils.py +++ b/vitrage_tempest_plugin/tests/common/nova_utils.py @@ -48,6 +48,7 @@ def create_instances(num_instances=1, set_public_network=True, name='vm'): def _create_instances(flavor, image, name, nics, num_instances): + LOG.info("create instance with flavor=%s image=%s" % (flavor, image)) resources = [TempestClients.nova().servers.create( name='%s-%s' % (name, index), flavor=flavor,