Merge "Enable image copy for multiple RBD Glance stores"

This commit is contained in:
Zuul 2021-07-15 10:47:27 +00:00 committed by Gerrit Code Review
commit f17505bbdf
2 changed files with 40 additions and 0 deletions

View File

@ -722,6 +722,28 @@ parameters:
default: ''
tags:
- role_specific
GlanceBackendID:
type: string
default: 'default_backend'
description: The default backend's identifier.
constraints:
- allowed_pattern: "[a-zA-Z0-9_-]+"
NovaGlanceRbdCopyPollInterval:
type: number
description: >
The interval in seconds with which to poll Glance after asking for it
to copy an image to the local rbd store.
default: 15
tags:
- role_specific
NovaGlanceRbdCopyTimeout:
type: number
description: >
The overall maximum time we will wait for Glance to complete an image
copy to our local rbd store.
default: 600
tags:
- role_specific
CustomProviderInventories:
description: |
Array of hashes describing the custom providers for the compute role.
@ -947,6 +969,8 @@ resources:
nova::compute::image_cache::remove_unused_resized_minimum_age_seconds: NovaComputeImageCacheRemoveUnusedResizedMinimumAge
nova::compute::image_cache::precache_concurrency: NovaComputeImageCachePrecacheConcurrency
nova::compute::provider::custom_inventories: CustomProviderInventories
nova::compute::rbd::libvirt_images_rbd_glance_copy_poll_interval: NovaGlanceRbdCopyPollInterval
nova::compute::rbd::libvirt_images_rbd_glance_copy_timeout: NovaGlanceRbdCopyTimeout
- values: {get_param: [RoleParameters]}
- values:
NovaVcpuPinSet: {get_param: NovaVcpuPinSet}
@ -1045,6 +1069,8 @@ resources:
NovaComputeImageCacheRemoveUnusedResizedMinimumAge: {get_param: NovaComputeImageCacheRemoveUnusedResizedMinimumAge}
NovaComputeImageCachePrecacheConcurrency: {get_param: NovaComputeImageCachePrecacheConcurrency}
CustomProviderInventories: {get_param: CustomProviderInventories}
NovaGlanceRbdCopyPollInterval: {get_param: NovaGlanceRbdCopyPollInterval}
NovaGlanceRbdCopyTimeout: {get_param: NovaGlanceRbdCopyTimeout}
outputs:
role_data:
@ -1073,6 +1099,7 @@ outputs:
tripleo::profile::base::nova::migration::client::nova_compute_enabled: true
tripleo::profile::base::nova::migration::client::ssh_private_key: {get_param: [ MigrationSshKey, private_key ]}
tripleo::profile::base::nova::migration::client::ssh_port: {get_param: MigrationSshPort}
nova::compute::rbd::libvirt_images_rbd_glance_store_name: {get_param: GlanceBackendID}
nova::compute::rbd::libvirt_images_rbd_ceph_conf:
list_join:
- ''

View File

@ -0,0 +1,13 @@
---
features:
- |
Enable image copy for multiple RBD Glance stores
Previously when using multiple RBD glance stores the operator was responsible for copying the image to all stores.
Nova-compute now has the ability to automatically copy an image to the local glance store when required.
This change enables the feature and adds the following role specific
parameters to control the behaviour.
- ``NovaGlanceRbdCopyPollInterval``
- ``NovaGlanceRbdCopyTimeout``