From 71e3c036d794c9aa27e44c5a7d80fc49f8449a7e Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Tue, 23 Jan 2024 17:55:12 +0100 Subject: [PATCH] Deprecate the "glance-cache-manage" command Change-Id: I5fe40f1ebd6acd25d4ed2e05d20a409511be08af --- glance/cmd/cache_manage.py | 3 +++ .../deprecate-glance-cache-manage-c88f07d33fcc7ca5.yaml | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/deprecate-glance-cache-manage-c88f07d33fcc7ca5.yaml diff --git a/glance/cmd/cache_manage.py b/glance/cmd/cache_manage.py index 781f017c29..f5e4ac29c7 100644 --- a/glance/cmd/cache_manage.py +++ b/glance/cmd/cache_manage.py @@ -499,6 +499,9 @@ def user_confirm(prompt, default=False): def main(): + print('In the Caracal development cycle, the glance-cache-manage command ' + 'has been deprecated in favor of the new Cache API. It is scheduled ' + 'to be removed in the Dalmatian development cycle.', file=sys.stderr) parser = argparse.ArgumentParser( description=_format_command_help(), formatter_class=argparse.RawDescriptionHelpFormatter) diff --git a/releasenotes/notes/deprecate-glance-cache-manage-c88f07d33fcc7ca5.yaml b/releasenotes/notes/deprecate-glance-cache-manage-c88f07d33fcc7ca5.yaml new file mode 100644 index 0000000000..a961c95996 --- /dev/null +++ b/releasenotes/notes/deprecate-glance-cache-manage-c88f07d33fcc7ca5.yaml @@ -0,0 +1,7 @@ +deprecations: + - | + The ``glance-cache-manage`` command is deprecated in this release in favor + of the new Cache API. It is subject to removal at the beginning of the + Dalmatian development cycle, following the `OpenStack standard deprecation + policy + `_.