summaryrefslogtreecommitdiff
path: root/tempest/scenario
diff options
context:
space:
mode:
authorMartin Kopec <mkopec@redhat.com>2020-09-29 08:12:39 +0000
committerMartin Kopec <mkopec@redhat.com>2021-01-25 10:00:02 +0000
commit008950efa480a421ed583e57213b1487037c64a1 (patch)
tree1e888886187c04ef44b07eadf9527b61d252906d /tempest/scenario
parenta66fecdcce1978c759cd07cb3dacfd5a24b37a99 (diff)
downloadtempest-008950efa480a421ed583e57213b1487037c64a1.tar.gz
Remove deprecated scenario img_dir option
It's time to remove deprecated CONF.scenario.img_dir which got deprecated in the 25.0.0 tag. Change-Id: I86ad219265a67a1c016e8efe04677993a0437ede Closes-Bug: #1393881
Diffstat (limited to 'tempest/scenario')
-rw-r--r--tempest/scenario/manager.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index acc563acb..60f8dfc35 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -610,18 +610,13 @@ class ScenarioTest(tempest.test.BaseTestCase):
def image_create(self, name='scenario-img', **kwargs):
img_path = CONF.scenario.img_file
if not os.path.exists(img_path):
- # TODO(kopecmartin): replace LOG.warning for rasing
- # InvalidConfiguration exception after tempest 25.0.0 is
- # released - there will be one release which accepts both
- # behaviors in order to avoid many failures across CIs and etc.
- LOG.warning(
+ lib_exc.InvalidConfiguration(
'Starting Tempest 25.0.0 release, CONF.scenario.img_file need '
'a full path for the image. CONF.scenario.img_dir was '
'deprecated and will be removed in the next release. Till '
- 'Tempest 25.0.0, old behavior is maintained and keep working '
+ 'Tempest 25.0.0, old behavior was maintained and kept working '
'but starting Tempest 26.0.0, you need to specify the full '
'path in CONF.scenario.img_file config option.')
- img_path = os.path.join(CONF.scenario.img_dir, img_path)
img_container_format = CONF.scenario.img_container_format
img_disk_format = CONF.scenario.img_disk_format
img_properties = CONF.scenario.img_properties