[DMaaP MR] Remove "lost+found" in kafka PVC 64/101164/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 5 Feb 2020 10:56:41 +0000 (11:56 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 5 Feb 2020 12:13:59 +0000 (13:13 +0100)
When using a storage class, kafka data is set on top of a partition and
then 'lost+found' ext4 folder, which is automatically created, is seen
as a topic but with bad naming.

So we remove this folder in the init script.

Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I397e3d1f29fce9f6c77423ffa4375daffbd2a256

kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml

index 30e4c77..aa97e32 100644 (file)
@@ -75,6 +75,7 @@ spec:
         - -exec
         - |
           chown -R 1000:1000 /opt/kafka/data;
+          rm -rf '/opt/kafka/data/lost+found';
           cp /opt/kafka/tmpconfig/server.properties /opt/kafka/config/;
           chown 1000:1000 /opt/kafka/config/server.properties;
           cd /opt/kafka/config;