Browse Source

Deprecate glance::api::show_multiple_locations

... because the corresponding parameter in glance,
api/show_multiple_locations was deperecated since Newton release.[1]

[1] dbfc121072

Change-Id: Ia4a88b5f1b64436ea5937551b8fc99644c051e5c
tags/16.1.0
Takashi Kajinami 1 week ago
parent
commit
c97e42f67d
3 changed files with 18 additions and 8 deletions
  1. +13
    -7
      manifests/api.pp
  2. +5
    -0
      releasenotes/notes/deprecate_api_show_multiple_locations-376b35e39779cf79.yaml
  3. +0
    -1
      spec/classes/glance_api_spec.rb

+ 13
- 7
manifests/api.pp View File

@@ -108,11 +108,6 @@
# (optional) Expose image location to trusted clients.
# Defaults to $::os_service_default.
#
# [*show_multiple_locations*]
# (optional) Whether to include the backend image locations in image
# properties.
# Defaults to $::os_service_default.
#
# [*filesystem_store_metadata_file*]
# (optional) The path to a file which contains the metadata to be returned
# with any location associated with the filesystem store
@@ -316,6 +311,11 @@
# (optional) The protocol of the Glance registry service.
# Default: undef
#
# [*show_multiple_locations*]
# (optional) Whether to include the backend image locations in image
# properties.
# Defaults to undef
#
class glance::api(
$package_ensure = 'present',
$bind_host = $::os_service_default,
@@ -329,7 +329,6 @@ class glance::api(
$manage_service = true,
$enabled = true,
$show_image_direct_url = $::os_service_default,
$show_multiple_locations = $::os_service_default,
$filesystem_store_metadata_file = $::os_service_default,
$filesystem_store_file_perm = $::os_service_default,
$location_strategy = $::os_service_default,
@@ -385,6 +384,7 @@ class glance::api(
$registry_host = undef,
$registry_port = undef,
$registry_client_protocol = undef,
$show_multiple_locations = undef,
) inherits glance {

include glance::deps
@@ -419,7 +419,6 @@ class glance::api(
'DEFAULT/backlog': value => $backlog;
'DEFAULT/workers': value => $workers;
'DEFAULT/show_image_direct_url': value => $show_image_direct_url;
'DEFAULT/show_multiple_locations': value => $show_multiple_locations;
'DEFAULT/location_strategy': value => $location_strategy;
'DEFAULT/scrub_time': value => $scrub_time;
'DEFAULT/delayed_delete': value => $delayed_delete;
@@ -436,6 +435,13 @@ class glance::api(
'glance_store/os_region_name': value => $os_region_name;
}

if $show_multiple_locations {
warning('The show_multiple_locations parameter is deprecated, and will be removed in a future release')
glance_api_config {
'DEFAULT/show_multiple_locations': value => $show_multiple_locations;
}
}

# task/taskflow_executor config.
glance_api_config {
'task/task_time_to_live': value => $task_time_to_live;

+ 5
- 0
releasenotes/notes/deprecate_api_show_multiple_locations-376b35e39779cf79.yaml View File

@@ -0,0 +1,5 @@
---
deprecations:
- |
glance::api::show_multiple_locations was deprecated because the
corresponging parameter ins glance was deprecated.

+ 0
- 1
spec/classes/glance_api_spec.rb View File

@@ -17,7 +17,6 @@ describe 'glance::api' do
:backlog => '<SERVICE DEFAULT>',
:workers => '7',
:show_image_direct_url => '<SERVICE DEFAULT>',
:show_multiple_locations => '<SERVICE DEFAULT>',
:filesystem_store_metadata_file => '<SERVICE DEFAULT>',
:filesystem_store_file_perm => '<SERVICE DEFAULT>',
:location_strategy => '<SERVICE DEFAULT>',

Loading…
Cancel
Save