Fix permission error if Barbican is enabled for Swift

The config files need to be relabled too avoid permission errors, otherwise
the Barbican key ID is not set and Swift fails to start.

Closes-Bug: 1858845
Change-Id: Idb94fee8aee1de3b1c7338108ccd8b45b6f169bf
This commit is contained in:
Christian Schwede 2020-01-08 20:32:29 +01:00
parent d9c591c3ab
commit 77b48f3988
2 changed files with 6 additions and 1 deletions

View File

@ -381,7 +381,7 @@ outputs:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
-
- /var/lib/config-data/puppet-generated/swift/etc/swift:/etc/swift:rw
- /var/lib/config-data/puppet-generated/swift/etc/swift:/etc/swift:rw,z
- /var/lib/container-config-scripts/set_swift_keymaster_key_id.sh:/set_swift_keymaster_key_id.sh:ro
user: root
command: "/set_swift_keymaster_key_id.sh"

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue where TripleO fails to set the Barbican key ID for Swift
with a permission error if the config files are not relabeled.