test_minimum_basic_scenario fails with Tempest 27.0.0 due to removed img_dir option

Bug #1928807 reported by Pierre Riteau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Undecided
Unassigned

Bug Description

After setting up a new verifier which pulled tempest 27.0.0, test_minimum_basic_scenario fails because it relies on the img_dir option which was removed from tempest.

tempest.scenario.test_minimum_basic.TestMinimumBasicScenario.test_minimum_basic_scenario

Traceback (most recent call last):
  File "/home/ubuntu/.rally/verification/verifier-434bee71-a8c0-480d-a511-11a2bc1bda97/repo/tempest/common/utils/__init__.py", line 70, in wrapper
    return f(*func_args, **func_kwargs)
  File "/home/ubuntu/.rally/verification/verifier-434bee71-a8c0-480d-a511-11a2bc1bda97/repo/tempest/scenario/test_minimum_basic.py", line 109, in test_minimum_basic_scenario
    image = self.image_create()
  File "/home/ubuntu/.rally/verification/verifier-434bee71-a8c0-480d-a511-11a2bc1bda97/repo/tempest/scenario/manager.py", line 769, in image_create
    with open(img_path, 'rb') as image_file:
FileNotFoundError: [Errno 2] No such file or directory: 'tempest-image'

rally-openstack needs to be updated to use img_file only.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally-openstack (master)
Changed in rally:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally-openstack (master)

Reviewed: https://review.opendev.org/c/openstack/rally-openstack/+/791998
Committed: https://opendev.org/openstack/rally-openstack/commit/eba9341bf980992f1659fe1aa89063cf604c3470
Submitter: "Zuul (22348)"
Branch: master

commit eba9341bf980992f1659fe1aa89063cf604c3470
Author: Pierre Riteau <email address hidden>
Date: Wed May 19 12:50:55 2021 +0200

    Stop using removed option [scenario]/img_dir

    The [scenario]/img_dir configuration option was removed from tempest in
    version 27.0.0. This makes test_minimum_basic_scenario fail with:

    Traceback (most recent call last):
      File "/home/ubuntu/.rally/verification/verifier-434bee71-a8c0-480d-a511-11a2bc1bda97/repo/tempest/common/utils/__init__.py", line 70, in wrapper
        return f(*func_args, **func_kwargs)
      File "/home/ubuntu/.rally/verification/verifier-434bee71-a8c0-480d-a511-11a2bc1bda97/repo/tempest/scenario/test_minimum_basic.py", line 109, in test_minimum_basic_scenario
        image = self.image_create()
      File "/home/ubuntu/.rally/verification/verifier-434bee71-a8c0-480d-a511-11a2bc1bda97/repo/tempest/scenario/manager.py", line 769, in image_create
        with open(img_path, 'rb') as image_file:
    FileNotFoundError: [Errno 2] No such file or directory: 'tempest-image'

    Use [scenario]/img_file with a full path to the image instead.

    + skip several tests at CI

    Co-Authored-By: Andrey Kurilin <email address hidden>

    Change-Id: I9b9f339e758547e059080b247c8bd8bcf1b749ee
    Closes-Bug: #1928807

Changed in rally:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/rally-openstack 2.2.0

This issue was fixed in the openstack/rally-openstack 2.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.