summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMridula Joshi <mrjoshi@redhat.com>2022-05-10 09:47:35 +0000
committerMridula Joshi <mrjoshi@redhat.com>2022-05-11 05:56:13 +0000
commite943645fb4e67384c17bbaf9330453624abaa1d3 (patch)
tree12a12227c435be8644c182fd84527af5da151156
parent1beee78e096ddba4729be10af6ac4ddec8e79da0 (diff)
downloadglance-e943645fb4e67384c17bbaf9330453624abaa1d3.tar.gz
Added cli_opts and cache_opts
It is observed that 'cli_opts' and 'cache_opts' from glance/common/wsgi.py are not picked up by the configgen nor listed through the functions in glance/opts.py. This patch adds these options to support configgen to pick all groups from wsgi.py. Closes-Bug: #1972666 Change-Id: I81156e32517b03577c09d489b6eb5d19769600a3 (cherry picked from commit c9d7ecdb7701f85787d9de61dad37eadb6d2bc8f)
-rw-r--r--glance/opts.py2
-rw-r--r--releasenotes/notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml5
2 files changed, 7 insertions, 0 deletions
diff --git a/glance/opts.py b/glance/opts.py
index fdd7e3ce3..b2b4a986b 100644
--- a/glance/opts.py
+++ b/glance/opts.py
@@ -55,6 +55,8 @@ _api_opts = [
glance.common.wsgi.socket_opts,
glance.common.wsgi.wsgi_opts,
glance.common.wsgi.store_opts,
+ glance.common.wsgi.cache_opts,
+ glance.common.wsgi.cli_opts,
glance.image_cache.drivers.sqlite.sqlite_opts,
glance.image_cache.image_cache_opts,
glance.notifier.notifier_opts,
diff --git a/releasenotes/notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml b/releasenotes/notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml
new file mode 100644
index 000000000..6a3ad15b2
--- /dev/null
+++ b/releasenotes/notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml
@@ -0,0 +1,5 @@
+fixes:
+ - |
+ `Bug #1972666 <https://bugs.launchpad.net/glance/+bug/1972666>`_:
+ Added cli_opts and cache_opts to support configgen to pick all
+ groups from wsgi.py \ No newline at end of file