diff --git a/etc/glance-api.conf b/etc/glance-api.conf index fa2b19596a..1b450eb86a 100644 --- a/etc/glance-api.conf +++ b/etc/glance-api.conf @@ -4,7 +4,7 @@ # From glance.api # -# +# DEPRECATED: # Set the image owner to tenant or the authenticated user. # # Assign a boolean value to determine the owner of an image. When set to @@ -22,6 +22,15 @@ # * None # # (boolean value) +# This option is deprecated for removal since Rocky. +# Its value may be silently ignored in the future. +# Reason: +# The non-default setting for this option misaligns Glance with other +# OpenStack services with respect to resource ownership. Further, surveys +# indicate that this option is not used by operators. The option will be +# removed early in the 'S' development cycle following the standard OpenStack +# deprecation policy. As the option is not in wide use, no migration path is +# proposed. #owner_is_tenant = true # @@ -795,7 +804,10 @@ # # Provide a non-negative integer value to set the number of child # process workers to service requests. By default, the number of CPUs -# available is set as the value for ``workers``. +# available is set as the value for ``workers`` limited to 8. For +# example if the processor count is 6, 6 workers will be used, if the +# processor count is 24 only 8 workers will be used. The limit will only +# apply to the default value, if 24 workers is configured, 24 is used. # # Each worker process is made to listen on the port set in the # configuration file and contains a greenthread pool of size 1000. diff --git a/glance/api/middleware/context.py b/glance/api/middleware/context.py index ef60da6269..9ed4fe644b 100644 --- a/glance/api/middleware/context.py +++ b/glance/api/middleware/context.py @@ -25,7 +25,18 @@ from glance.i18n import _, _LW context_opts = [ - cfg.BoolOpt('owner_is_tenant', default=True, + cfg.BoolOpt('owner_is_tenant', + default=True, + deprecated_for_removal=True, + deprecated_since="Rocky", + deprecated_reason=_(""" +The non-default setting for this option misaligns Glance with other +OpenStack services with respect to resource ownership. Further, surveys +indicate that this option is not used by operators. The option will be +removed early in the 'S' development cycle following the standard OpenStack +deprecation policy. As the option is not in wide use, no migration path is +proposed. +"""), help=_(""" Set the image owner to tenant or the authenticated user. diff --git a/releasenotes/notes/deprecate-owner_is_tenant-ec8ea36a3f7e9268.yaml b/releasenotes/notes/deprecate-owner_is_tenant-ec8ea36a3f7e9268.yaml new file mode 100644 index 0000000000..8d12deec4a --- /dev/null +++ b/releasenotes/notes/deprecate-owner_is_tenant-ec8ea36a3f7e9268.yaml @@ -0,0 +1,7 @@ +--- +deprecations: + - | + The Glance API configuration option ``owner_is_tenant`` is deprecated + in this release and is subject to removal at the beginning of the 'S' + development cycle, following the `OpenStack standard deprecation policy + `_.