From cc97993db3eec2f0afbf47d055970b000ec30cb3 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 14 Aug 2025 23:05:25 +0900 Subject: [PATCH] Remove unused [state] options This has been unused since it was replaced by DBStateManager[1][2][3]. [1] https://review.opendev.org/c/openstack/cloudkitty/+/112846 [2] https://review.opendev.org/c/openstack/cloudkitty/+/120472 [3] https://review.opendev.org/c/openstack/cloudkitty/+/140114 Change-Id: Id062249e5d503de7c2b4990b2988e66caf6d6319 Signed-off-by: Takashi Kajinami --- cloudkitty/common/config.py | 2 -- cloudkitty/config.py | 9 --------- .../notes/remove-state-opts-a013e25c744d7494.yaml | 5 +++++ 3 files changed, 5 insertions(+), 11 deletions(-) create mode 100644 releasenotes/notes/remove-state-opts-a013e25c744d7494.yaml diff --git a/cloudkitty/common/config.py b/cloudkitty/common/config.py index cbd37e14..9052d5b2 100644 --- a/cloudkitty/common/config.py +++ b/cloudkitty/common/config.py @@ -60,8 +60,6 @@ _opts = [ cloudkitty.orchestrator.orchestrator_opts))), ('output', list(itertools.chain( cloudkitty.config.output_opts))), - ('state', list(itertools.chain( - cloudkitty.config.state_opts))), ('storage', list(itertools.chain( cloudkitty.storage.storage_opts))), ('storage_influxdb', list(itertools.chain( diff --git a/cloudkitty/config.py b/cloudkitty/config.py index 2c730423..87d2c224 100644 --- a/cloudkitty/config.py +++ b/cloudkitty/config.py @@ -18,14 +18,6 @@ from oslo_db import options as db_options # noqa from oslo_messaging import opts # noqa -state_opts = [ - cfg.StrOpt('backend', - default='cloudkitty.backend.file.FileBackend', - help='Backend for the state manager.'), - cfg.StrOpt('basepath', - default='/var/lib/cloudkitty/states/', - help='Storage directory for the file state backend.'), ] - output_opts = [ cfg.StrOpt('backend', default='cloudkitty.backend.file.FileBackend', @@ -38,7 +30,6 @@ output_opts = [ help='Output pipeline'), ] -cfg.CONF.register_opts(state_opts, 'state') cfg.CONF.register_opts(output_opts, 'output') # oslo.db defaults diff --git a/releasenotes/notes/remove-state-opts-a013e25c744d7494.yaml b/releasenotes/notes/remove-state-opts-a013e25c744d7494.yaml new file mode 100644 index 00000000..1ffa14f2 --- /dev/null +++ b/releasenotes/notes/remove-state-opts-a013e25c744d7494.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + The ``[state]`` configuration group has been removed, because all options + in this group have been unused.