Merge "Create Swift directory d1 if required"

This commit is contained in:
Zuul 2018-01-12 15:46:47 +00:00 committed by Gerrit Code Review
commit 15b279f4ce
2 changed files with 11 additions and 0 deletions

View File

@ -57,6 +57,10 @@ parameters:
default: auto
description: Number of workers for Swift account service.
type: string
SwiftUseLocalDir:
default: true
description: 'Use a local directory for Swift storage services when building rings'
type: boolean
# DEPRECATED options for compatibility with overcloud.yaml
# This should be removed and manipulation of the ControllerServices list
@ -105,6 +109,7 @@ outputs:
- get_attr: [SwiftBase, role_data, config_settings]
- swift::storage::all::mount_check: {if: [swift_mount_check, true, false]}
tripleo::profile::base::swift::storage::enable_swift_storage: {get_param: ControllerEnableSwiftStorage}
tripleo::profile::base::swift::storage::use_local_dir: {get_param: SwiftUseLocalDir}
tripleo.swift_storage.firewall_rules:
'123 swift storage':
dport:

View File

@ -0,0 +1,6 @@
---
fixes:
Swift added a requirement to ensure that storage directories exist before
using them. However, when local directories are used in Tripleo (storing
data in /srv/node/d1), these are missing by default and thus Swift won't
store any data. This fix creates this directory if needed.