From c9d7ecdb7701f85787d9de61dad37eadb6d2bc8f Mon Sep 17 00:00:00 2001 From: Mridula Joshi Date: Tue, 10 May 2022 09:47:35 +0000 Subject: [PATCH] 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 --- glance/opts.py | 2 ++ .../notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml diff --git a/glance/opts.py b/glance/opts.py index fdd7e3ce3a..b2b4a986ba 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 0000000000..6a3ad15b2e --- /dev/null +++ b/releasenotes/notes/add-cli-and-cache-opts-902f28d65c8fb827.yaml @@ -0,0 +1,5 @@ +fixes: + - | + `Bug #1972666 `_: + Added cli_opts and cache_opts to support configgen to pick all + groups from wsgi.py \ No newline at end of file