Merge "Enable Cinder as a backend for Glance"

This commit is contained in:
Zuul 2017-10-29 12:28:44 +00:00 committed by Gerrit Code Review
commit 8254d0b396
5 changed files with 20 additions and 6 deletions

View File

@ -39,6 +39,13 @@ parameters:
EnableInternalTLS: EnableInternalTLS:
type: boolean type: boolean
default: false default: false
GlanceBackend:
default: swift
description: The short name of the Glance backend to use. Should be one
of swift, rbd, cinder, or file
type: string
constraints:
- allowed_values: ['swift', 'file', 'rbd', 'cinder']
GlanceNfsEnabled: GlanceNfsEnabled:
default: false default: false
description: > description: >
@ -63,6 +70,7 @@ conditions:
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
nfs_backend_enabled: {equals: [{get_param: GlanceNfsEnabled}, true]} nfs_backend_enabled: {equals: [{get_param: GlanceNfsEnabled}, true]}
cinder_backend_enabled: {equals: [{get_param: GlanceBackend}, cinder]}
resources: resources:
@ -156,6 +164,12 @@ outputs:
- nfs_backend_enabled - nfs_backend_enabled
- /var/lib/glance:/var/lib/glance - /var/lib/glance:/var/lib/glance
- '' - ''
-
if:
- cinder_backend_enabled
- - /dev:/dev
- /etc/iscsi:/etc/iscsi
- []
environment: environment:
- KOLLA_BOOTSTRAP=True - KOLLA_BOOTSTRAP=True
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
@ -166,7 +180,7 @@ outputs:
start_order: 2 start_order: 2
image: *glance_api_image image: *glance_api_image
net: host net: host
privileged: false privileged: {if: [cinder_backend_enabled, true, false]}
restart: always restart: always
volumes: *glance_volumes volumes: *glance_volumes
environment: environment:

View File

@ -21,7 +21,7 @@ parameter_defaults:
# Type: boolean # Type: boolean
CinderEnableRbdBackend: True CinderEnableRbdBackend: True
# The short name of the Glance backend to use. Should be one of swift, rbd, or file # The short name of the Glance backend to use. Should be one of swift, rbd, cinder, or file
# Type: string # Type: string
GlanceBackend: rbd GlanceBackend: rbd

View File

@ -43,7 +43,7 @@ parameter_defaults:
# Type: string # Type: string
CinderRbdPoolName: volumes CinderRbdPoolName: volumes
# The short name of the Glance backend to use. Should be one of swift, rbd, or file # The short name of the Glance backend to use. Should be one of swift, rbd, cinder, or file
# Type: string # Type: string
GlanceBackend: rbd GlanceBackend: rbd

View File

@ -21,7 +21,7 @@ parameter_defaults:
# Static parameters - these are values that must be # Static parameters - these are values that must be
# included in the environment but should not be changed. # included in the environment but should not be changed.
# ****************************************************** # ******************************************************
# The short name of the Glance backend to use. Should be one of swift, rbd, or file # The short name of the Glance backend to use. Should be one of swift, rbd, cinder, or file
# Type: string # Type: string
GlanceBackend: file GlanceBackend: file

View File

@ -78,10 +78,10 @@ parameters:
GlanceBackend: GlanceBackend:
default: swift default: swift
description: The short name of the Glance backend to use. Should be one description: The short name of the Glance backend to use. Should be one
of swift, rbd, or file of swift, rbd, cinder, or file
type: string type: string
constraints: constraints:
- allowed_values: ['swift', 'file', 'rbd'] - allowed_values: ['swift', 'file', 'rbd', 'cinder']
GlanceNfsEnabled: GlanceNfsEnabled:
default: false default: false
description: > description: >