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

container-process-kill not work #211

Open
Tuyuantao opened this issue Jun 12, 2023 · 0 comments
Open

container-process-kill not work #211

Tuyuantao opened this issue Jun 12, 2023 · 0 comments

Comments

@Tuyuantao
Copy link

container-process-kill not work

below is yaml:
apiVersion: chaosblade.io/v1alpha1
kind: ChaosBlade
metadata:
name: container-process-kill
spec:
experiments:

  • action: kill
    desc: "kill container process"
    matchers:
    • name: container-names
      value:
      • "${container_name}"
    • name: process
      value:
      • "${process_name}"
    • name: names
      value:
      • "${pod_name}"
    • name: namespace
      value:
      • "${ns}"
        scope: container
        target: process

below is chaosblade log;seems logs look work,but actually not work

time="2023-06-12 11:47:42.191860096 UTC" level=info msg="destroy &{Target:process Scope:host ActionName:kill ActionFlags:map[async: blade-release: channel: count: endpoint: exclude-process: install-path: kubeconfig: local-port: process:vpc-edge-agent process-cmd: signal: ssh-host: ssh-key: ssh-port: ssh-user: target: timeout: uid:00d40578920d7a0a] ActionPrograms:[] ActionCategories:[]}"
time="2023-06-12 11:47:42.191944035 UTC" level=info msg="destroy by 00d40578920d7a0a uid, force-remove: false, target: "
time="2023-06-12 11:47:42.192091504 UTC" level=warning msg="00d40578920d7a0a uid not found, so using matchers to continue to destroy"
time="2023-06-12 11:47:42.248855348 UTC" level=info msg="destroy by model: &{Target:process Scope:host ActionName:kill ActionFlags:map[async: blade-release: channel: count: endpoint: exclude-process: install-path: kubeconfig: local-port: process:vpc-edge-agent process-cmd: signal: ssh-host: ssh-key: ssh-port: ssh-user: target: timeout: uid:00d40578920d7a0a] ActionPrograms:[] ActionCategories:[]}, command: process, subCommand: kill"
time="2023-06-12 11:47:59.797637715 UTC" level=info msg="mode: create, target: process, action: kill, flags [process=vpc-edge-agent uid=dcd3401223710304]"
time="2023-06-12 11:51:37.581601255 UTC" level=info msg="destroy &{Target:process Scope:host ActionName:kill ActionFlags:map[async: blade-release: channel: count: endpoint: exclude-process: install-path: kubeconfig: local-port: process:vpc-edge-agent process-cmd: signal: ssh-host: ssh-key: ssh-port: ssh-user: target: timeout: uid:dcd3401223710304] ActionPrograms:[] ActionCategories:[]}"
time="2023-06-12 11:51:37.581655214 UTC" level=info msg="destroy by dcd3401223710304 uid, force-remove: false, target: "
time="2023-06-12 11:51:37.634836871 UTC" level=info msg="mode: destroy, target: process, action: kill, flags [process=vpc-edge-agent uid=dcd3401223710304]"
time="2023-06-12 11:51:48.31318316 UTC" level=info msg="mode: create, target: process, action: kill, flags [process=vpc-edge-agent uid=6a2068482ed425cd]"

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