Skip to content

directory "_chaosfs__zookeeper__" not removed after iochaos experiment is finished and deleted #3217

Open
chaos-mesh/toda
#35
@alelerac

Description

@alelerac

Bug Report

What version of Kubernetes are you using?

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-18T12:09:25Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"ec2760d6d916781de466541a6babb4309766c995", GitTreeState:"clean", BuildDate:"2021-02-27T17:18:03Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}

What version of Chaos Mesh are you using?

Controller manager Version: version.Info{GitVersion:"v2.1.5", GitCommit:"42e2aaa590b4e738e069766aef062f6468ff81d4", BuildDate:"2022-04-18T09:44:56Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}

What did you do?

Run below experiment.

apiVersion: chaos-mesh.org/v1alpha1
kind: IOChaos
metadata:
name: io-delay-zk
namespace: zk
spec:
action: latency
mode: one
selector:
labelSelectors:
"app": zk
"statefulset.kubernetes.io/pod-name": zk-0
volumePath: /var/lib/zookeeper/
delay: "100ms"
percent: 100
duration: "50s"

Then delete experiment with kubectl delete iochaos io-delay-zk -n zk

What did you expect to see?

Cleanup after experiment.
The created directory "chaosfs__zookeeper_" is removed

What did you see instead?

Directory "chaosfs__zookeeper" is not removed

ls -l /var/lib/
total 4
drwxr-xr-x 2 root root 6 May 3 14:49 chaosfs__zookeeper
drwxr-xr-x 1 root root 42 Jun 13 2017 apt

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions