Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOChaos can not delete or pause. #2689

Closed
penghuazhou opened this issue Dec 22, 2021 · 0 comments
Closed

IOChaos can not delete or pause. #2689

penghuazhou opened this issue Dec 22, 2021 · 0 comments

Comments

@penghuazhou
Copy link

penghuazhou commented Dec 22, 2021

Bug Report

What version of Kubernetes are you using?
1.20.4-aliyun.1

What version of Chaos Mesh are you using?
Controller manager Version: version.Info{GitVersion:"v2.1.1", GitCommit:"4ebd7a21520305bd0cf38e228f84ebc639aab994", BuildDate:"2021-12-10T10:27:29Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}

What did you do?
kind: IOChaos
apiVersion: chaos-mesh.org/v1alpha1
metadata:
namespace: default
name: io-mistake-example
annotations:
experiment.chaos-mesh.org/pause: 'true'
kubectl.kubernetes.io/last-applied-configuration: >
{"apiVersion":"chaos-mesh.org/v1alpha1","kind":"IOChaos","metadata":{"annotations":{},"name":"io-mistake-example","namespace":"default"},"spec":{"action":"mistake","duration":"400s","methods":["READ","WRITE"],"mistake":{"filling":"zero","maxLength":10,"maxOccurrences":1},"mode":"one","path":"/var/logs/line*.log","percent":10,"selector":{"labelSelectors":{"app":"productpage"}},"volumePath":"/var/logs"}}
spec:
selector:
namespaces:
- default
labelSelectors:
app: productpage
mode: one
action: mistake
mistake:
filling: zero
maxOccurrences: 1
maxLength: 10
path: /var/logs/line*.log
methods:
- READ
- WRITE
percent: 10
volumePath: /var/logs
duration: 400s

What did you expect to see?
pause or delete
What did you see instead?
It can not delete or pause.
image

image

chaos-mesh log

2021-12-22T01:50:12.460Z	INFO	records	iterating record	{"record": {"id":"default/productpage-v1-776d95459f-n4xwz/istio-proxy","selectorKey":".","phase":"Not Injected/Wait"}, "desiredPhase": "Stop"}
2021-12-22T01:50:12.460Z	INFO	records	apply chaos	{"id": "default/productpage-v1-776d95459f-n4xwz/istio-proxy"}
2021-12-22T01:50:12.460Z	INFO	iochaos	iochaos Apply	{"namespace": "default", "name": "io-mistake-example"}
2021-12-22T01:50:12.460Z	ERROR	records	fail to apply chaos	{"error": "rpc error: code = Unknown desc = toda startup takes too long or an error occurs: No such file or directory (os error 2)"}
github.com/chaos-mesh/chaos-mesh/controllers/common/pipeline.(*Pipeline).Reconcile
	/mnt/controllers/common/pipeline/pipeline.go:73
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/tmp/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/tmp/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/tmp/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.5/pkg/internal/controller/controller.go:214
2021-12-22T01:50:12.460Z	INFO	pipeline	reconcile result	{"result": {"Requeue":true,"RequeueAfter":0}}

chaos-daeman

{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":1}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":2}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":1}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":2}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":1}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":2}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":1}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":2}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":1}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":2}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":1}
{"jsonrpc":"2.0","result":"No such file or directory (os error 2)","id":2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant