Merge "image_file parameter not supported anymore"

This commit is contained in:
Zuul 2025-01-08 15:24:47 +00:00 committed by Gerrit Code Review
commit a30232c68d
4 changed files with 18 additions and 10 deletions

View File

@ -26,9 +26,6 @@
# Default cirros image URL (string value)
#image_url = <None>
# Default cirros image filename (string value)
#image_file = <None>
# Default cirros container format (string value)
#container_format = <None>
@ -528,9 +525,6 @@
# Default ubuntu image URL (string value)
#image_url = <None>
# Default ubuntu image filename (string value)
#image_file = <None>
# Default ubuntu container format (string value)
#container_format = <None>

View File

@ -0,0 +1,15 @@
---
deprecations:
- |
The config parameter `image_file` is not available anymore.
With this parameter, it was possible to configure the local path to the
images that could be used to create either Cirros or Ubuntu VM instances.
It is still possible to do this, using the existing parameter `image_url`:
.. code-block:: text
[cirros]
image_url=file:///tmp/cirros.img
Internally, the `image_file` attribute is still part of the `UrlGlanceImageFixture` class
and it indicates where the image file is saved locally.

View File

@ -47,9 +47,9 @@ def get_images_options():
[cfg.StrOpt('image_name',
help="Default " + name + " image name"),
cfg.StrOpt('image_url',
help="Default " + name + " image URL"),
cfg.StrOpt('image_file',
help="Default " + name + " image filename"),
help="Default " + name + " image URL. A local path "
"could be defined. Example: "
"file:///tmp/cirros.img"),
cfg.StrOpt('container_format',
help="Default " + name + " container format"),
cfg.StrOpt('disk_format',

View File

@ -59,7 +59,6 @@ class UbuntuImageFixture(glance.CustomizedGlanceImageFixture):
- iperf3 server listening on TCP port 5201
"""
image_url = CONF.tobiko.ubuntu.image_url
image_file = CONF.tobiko.ubuntu.image_file
image_name = CONF.tobiko.ubuntu.image_name
disk_format = CONF.tobiko.ubuntu.disk_format or "qcow2"
container_format = CONF.tobiko.ubuntu.container_format or "bare"