Browse Source

Do not relabel Swift files on every container start

Without this patch, files in /srv/node are relabeled on every start of
the account_auditor and/or account_reaper containers. If there are many
files (eg. when using Gnocchi) this will take a long time, sometimes
dozens of minutes per container start, and might result in breaking
upgrades/updates.

Relabeling already happens in step 3, this should be sufficient and
prevent additional delays when (re-) starting containers.

Closes-Bug: 1907070
Change-Id: I172ae8f35df34887aaf61b3e03d5aaab1d462a60
changes/78/765778/3
Christian Schwede 10 months ago
parent
commit
191d160903
  1. 4
      deployment/swift/swift-storage-container-puppet.yaml
  2. 5
      releasenotes/notes/swift-prevent-relabeling-b9721aa5a1abda6e.yaml

4
deployment/swift/swift-storage-container-puppet.yaml

@ -340,7 +340,7 @@ outputs:
-
- /var/lib/kolla/config_files/swift_account_auditor.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
- /srv/node:/srv/node:z
- /srv/node:/srv/node
- /dev:/dev
- /var/cache/swift:/var/cache/swift:z
- /var/log/containers/swift:/var/log/swift:z
@ -445,7 +445,7 @@ outputs:
-
- /var/lib/kolla/config_files/swift_account_reaper.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
- /srv/node:/srv/node:z
- /srv/node:/srv/node
- /dev:/dev
- /var/cache/swift:/var/cache/swift:z
- /var/log/containers/swift:/var/log/swift:z

5
releasenotes/notes/swift-prevent-relabeling-b9721aa5a1abda6e.yaml

@ -0,0 +1,5 @@
---
fixes:
- |
Do not relabel Swift files on every container (re-)start. These will be
relabeled already in step 3 preventing additional delays.
Loading…
Cancel
Save