diff --git a/doc/source/configuration/tables/manila-share.inc b/doc/source/configuration/tables/manila-share.inc index 5463e138cc..6f6a0a7780 100644 --- a/doc/source/configuration/tables/manila-share.inc +++ b/doc/source/configuration/tables/manila-share.inc @@ -64,8 +64,6 @@ - (String) Template string to be used to generate share snapshot names. * - ``share_topic`` = ``manila-share`` - (String) The topic share nodes listen on. - * - ``share_usage_audit_period`` = ``month`` - - (String) Time period to generate share usages for. Time period must be hour, day, month or year. * - ``suppress_post_hooks_errors`` = ``False`` - (Boolean) Whether to suppress post hook errors (allow driver's results to pass through) or not. * - ``suppress_pre_hooks_errors`` = ``False`` diff --git a/manila/common/config.py b/manila/common/config.py index 5928946e51..7c3bf64a5a 100644 --- a/manila/common/config.py +++ b/manila/common/config.py @@ -104,8 +104,10 @@ global_opts = [ help='Memcached servers or None for in process cache.'), cfg.StrOpt('share_usage_audit_period', default='month', + deprecated_for_removal=True, help='Time period to generate share usages for. ' - 'Time period must be hour, day, month or year.'), + 'Time period must be hour, day, month or year.', + deprecated_reason="The config option is not used."), cfg.StrOpt('rootwrap_config', help='Path to the rootwrap configuration file to use for ' 'running commands as root.'), diff --git a/releasenotes/notes/bug-1813054-remove-share-usage-size-audit-period-conf-opt-7331013d1cdb7b43.yaml b/releasenotes/notes/bug-1813054-remove-share-usage-size-audit-period-conf-opt-7331013d1cdb7b43.yaml new file mode 100644 index 0000000000..2e7780e7d9 --- /dev/null +++ b/releasenotes/notes/bug-1813054-remove-share-usage-size-audit-period-conf-opt-7331013d1cdb7b43.yaml @@ -0,0 +1,12 @@ +--- +deprecations: + - | + The configuration option ``share_usage_audit_period`` from the + [DEFAULT] section has been deprecated. Specifying this option + never had any effect on manila and so it will be removed in an + upcoming release. This option should not be confused + with ``share_usage_size_update_interval`` from the back end + section, which can be used to gather usage size for some back ends + that support that feature. + +