Merge "Fix missing Swift d1 directory"
This commit is contained in:
commit
77b19ed2e8
@ -49,6 +49,10 @@ parameters:
|
|||||||
default: {}
|
default: {}
|
||||||
description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
|
description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
|
||||||
type: json
|
type: json
|
||||||
|
SwiftUseLocalDir:
|
||||||
|
default: true
|
||||||
|
description: 'Use a local directory for Swift storage services when building rings'
|
||||||
|
type: boolean
|
||||||
UpgradeRemoveUnusedPackages:
|
UpgradeRemoveUnusedPackages:
|
||||||
default: false
|
default: false
|
||||||
description: Remove package if the service is being disabled during upgrade
|
description: Remove package if the service is being disabled during upgrade
|
||||||
@ -435,6 +439,14 @@ outputs:
|
|||||||
- /srv/node
|
- /srv/node
|
||||||
- /var/log/swift
|
- /var/log/swift
|
||||||
- /var/log/containers
|
- /var/log/containers
|
||||||
|
- name: Set swift_use_local_disks fact
|
||||||
|
set_fact:
|
||||||
|
swift_use_local_disks: {get_param: SwiftUseLocalDir}
|
||||||
|
- name: Create Swift d1 directory if needed
|
||||||
|
file:
|
||||||
|
path: "/srv/node/d1"
|
||||||
|
state: directory
|
||||||
|
when: swift_use_local_disks
|
||||||
- name: Create swift logging symlink
|
- name: Create swift logging symlink
|
||||||
file:
|
file:
|
||||||
src: /var/log/swift
|
src: /var/log/swift
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
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 on a
|
||||||
|
containerized environment.
|
Loading…
Reference in New Issue
Block a user