Use container_file_t for Cinder*NfsMountOptions by default

This is so that share content is usable by cinder-volume and other
containers mounting the same share.

Closes-Bug: 1890291
Change-Id: Iacf7c9c368b26106e9921b35996c134aacb9acd7
This commit is contained in:
Giulio Fidente 2020-07-03 12:59:45 +02:00
parent b9722e1ac4
commit c7ec726276
8 changed files with 8 additions and 7 deletions

View File

@ -83,7 +83,7 @@ parameters:
default: '/etc/cinder/shares.conf'
CinderNetappNfsMountOptions:
type: string
default: ''
default: 'context=system_u:object_r:container_file_t:s0'
CinderNetappCopyOffloadToolPath:
type: string
default: ''

View File

@ -79,7 +79,7 @@ parameters:
description: NFS share to be mounted
type: string
CinderBackupNfsMountOptions:
default: ''
default: 'context=system_u:object_r:container_file_t:s0'
description: Mount options passed to the NFS client. See NFS man
page for details.
type: string

View File

@ -99,7 +99,7 @@ parameters:
When set, it overrides the default CinderStorageAvailabilityZone.
type: string
CinderNfsMountOptions:
default: ''
default: 'context=system_u:object_r:container_file_t:s0'
description: >
Mount options for NFS mounts used by Cinder NFS backend. Effective
when CinderEnableNfsBackend is true.

View File

@ -20,7 +20,7 @@ parameter_defaults:
CinderNetappPartnerBackendName: ''
CinderNetappNfsShares: ''
CinderNetappNfsSharesConfig: '/etc/cinder/shares.conf'
CinderNetappNfsMountOptions: ''
CinderNetappNfsMountOptions: 'context=system_u:object_r:container_file_t:s0'
CinderNetappCopyOffloadToolPath: ''
CinderNetappControllerIps: ''
CinderNetappSaPassword: ''

View File

@ -34,7 +34,7 @@ parameter_defaults:
#### CINDER NFS SETTINGS ####
## NFS mount options
# CinderNfsMountOptions: ''
# CinderNfsMountOptions: 'context=system_u:object_r:container_file_t:s0'
## NFS mount point, e.g. '192.168.122.1:/export/cinder'
# CinderNfsServers: ''

View File

@ -44,7 +44,7 @@ parameter_defaults:
#
# Type: string
CinderNetappNfsMountOptions: ''
CinderNetappNfsMountOptions: context=system_u:object_r:container_file_t:s0
#
# Type: string

View File

@ -19,7 +19,7 @@ parameter_defaults:
# Mount options for NFS mounts used by Cinder NFS backend. Effective when CinderEnableNfsBackend is true.
# Type: string
CinderNfsMountOptions: ''
CinderNfsMountOptions: context=system_u:object_r:container_file_t:s0
# NFS servers used by Cinder NFS backend. Effective when CinderEnableNfsBackend is true.
# Type: comma_delimited_list

View File

@ -12,6 +12,7 @@ environments:
sample_values:
CinderEnableNfsBackend: True
CinderEnableIscsiBackend: False
CinderNfsMountOption: 'context=system_u:object_r:container_file_t:s0'
CinderNfsServers: '192.168.122.1:/export/cinder'
description: |
Configure and include this environment to enable the use of an NFS