tripleo-heat-templates/environments/storage/glance-nfs.yaml
Pranali Deore a089310bf3 Add support of shared staging location for glance-direct
In the case of an HA setup (ie with 3 controller nodes) if image
import method is 'glance-direct', it would require a shared
consistent staging location on the controller nodes otherwise it
might happen that the image is uploaded to one node and triggering
the import is executed on a different node - where the image does not
exist.

Hence when import method 'glance-direct' is needed, operators need to
enable it explicitly with enabling NFS across the controller nodes
to share the staging.

Change-Id: I9a5bff5e5d0c3e109b73d691cc9088904a0401ac
Closes-Bug: #1765439
2018-05-22 21:40:13 +05:30

59 lines
2.2 KiB
YAML

# *******************************************************************
# This file was created automatically by the sample environment
# generator. Developers should use `tox -e genconfig` to update it.
# Users are recommended to make changes to a copy of the file instead
# of the original, if any customizations are needed.
# *******************************************************************
# title: Enable Glance NFS Backend
# description: |
# Configure and include this environment to enable the use of an NFS
# share as the backend for Glance.
parameter_defaults:
# List of enabled Image Import Methods. Valid values in the list are 'glance-direct' and 'web-download'
# Type: comma_delimited_list
GlanceEnabledImportMethods: web-download
# When using GlanceBackend 'file', Netapp mount NFS share for image storage.
# Type: boolean
GlanceNetappNfsEnabled: False
# NFS mount options for image storage (when GlanceNfsEnabled is true)
# Type: string
GlanceNfsOptions: _netdev,bg,intr,context=system_u:object_r:glance_var_lib_t:s0
# NFS share to mount for image storage (when GlanceNfsEnabled is true)
# Type: string
GlanceNfsShare: ''
# URI that specifies the staging location to use when importing images
# Type: string
GlanceNodeStagingUri: file:///var/lib/glance/staging
# NFS mount options for NFS image import staging
# Type: string
GlanceStagingNfsOptions: _netdev,bg,intr,context=system_u:object_r:glance_var_lib_t:s0
# NFS share to mount for image import staging
# Type: string
GlanceStagingNfsShare: ''
# Netapp share to mount for image storage (when GlanceNetappNfsEnabled is true)
# Type: string
NetappShareLocation: ''
# ******************************************************
# Static parameters - these are values that must be
# included in the environment but should not be changed.
# ******************************************************
# The short name of the Glance backend to use. Should be one of swift, rbd, cinder, or file
# Type: string
GlanceBackend: file
# When using GlanceBackend 'file', mount NFS share for image storage.
# Type: boolean
GlanceNfsEnabled: True
# *********************
# End static parameters
# *********************