-
Notifications
You must be signed in to change notification settings - Fork 4
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
Migrate Deployment distribution experiment #268
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make it possible to run workers agains self-managed setup
Migrate the Deployment distribution experiment, as first experiment, to zbchaos. Experiment was executed and verified via the integration test against a self-managed cluster.
ChrisKujawa
force-pushed
the
zell-migrate-chaos
branch
from
December 6, 2022 09:59
1bb00fe
to
8d913d6
Compare
deepthidevaki
approved these changes
Dec 6, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
ChrisKujawa
added a commit
that referenced
this pull request
Dec 7, 2022
✅ Depends on #268 related to #237 ------------ Migrates the follower restart experiment and tested with integration test Log output: ``` Deploy file bpmn/chaos/actionRunner.bpmn (size: 8788 bytes). Deployed process model bpmn/chaos/actionRunner.bpmn successful with key 2251799813685249. Deploy file bpmn/chaos/chaosExperiment.bpmn (size: 21403 bytes). Deployed process model bpmn/chaos/chaosExperiment.bpmn successful with key 2251799813685251. Deploy file bpmn/chaos/chaosToolkit.bpmn (size: 11031 bytes). Deployed process model bpmn/chaos/chaosToolkit.bpmn successful with key 2251799813685253. Create ChaosToolkit instance Open workers: [zbchaos, readExperiments]. Handle read experiments job [key: 2251799813685265] Read experiments successful, complete job with: {"experiments":[{"contributions":{"availability":"high","reliability":"high"},"description":"Zeebe should be fault-tolerant. Zeebe should be able to handle follower restarts.","method":[{"name":"Restart follower of partition 1 gracefully","provider":{"arguments":["restart","broker","--role","FOLLOWER","--partitionId","1"],"path":"zbchaos","type":"process"},"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"All pods should be ready","provider":{"arguments":["verify","readiness"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Can deploy process model","provider":{"arguments":["deploy","process"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Should be able to create process instances on partition 1","provider":{"arguments":["verify","instance-creation","--partitionId","1"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"Zeebe follower graceful restart experiment","version":"0.1.0"},{"contributions":{"availability":"high","reliability":"high"},"description":"This fake experiment is just to test the integration with Zeebe and zbchaos workers","method":[{"name":"Show again the version","pauses":{"after":5},"provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"Show version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"This is a fake experiment","version":"0.1.0"}]}. Handle zbchaos job [key: 2251799813685328] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813685380] Running command with args: [deploy process] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/one_task.bpmn (size: 2526 bytes). Deployed process model bpmn/one_task.bpmn successful with key 2251799813685431. Deployed given process model , under key 2251799813685431! Handle zbchaos job [key: 2251799813685424] Running command with args: [verify instance-creation --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 4503599627371757 on partition 2, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 6755399441057008 on partition 3, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 2251799813686572 on partition 1, required partition 1. The steady-state was successfully verified! Handle zbchaos job [key: 2251799813685472] Running command with args: [restart broker --role FOLLOWER --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Found Broker zell-chaos-zeebe-2 as FOLLOWER for partition 1. Restarted zell-chaos-zeebe-2 Handle zbchaos job [key: 2251799813685518] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813685559] Running command with args: [deploy process] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/one_task.bpmn (size: 2526 bytes). Deployed process model bpmn/one_task.bpmn successful with key 2251799813685431. Deployed given process model , under key 2251799813685431! Handle zbchaos job [key: 2251799813685603] Running command with args: [verify instance-creation --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 4503599627371783 on partition 2, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 6755399441057035 on partition 3, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 2251799813686599 on partition 1, required partition 1. The steady-state was successfully verified! Handle zbchaos job [key: 2251799813685698] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685740] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685885] Running command with args: [version] zbchaos development (commit: HEAD) Instance 2251799813685255 [definition 2251799813685253 ] completed --- PASS: Test_ShouldBeAbleToRunExperiments (12.03s) ```
This was referenced Dec 7, 2022
ChrisKujawa
added a commit
that referenced
this pull request
Dec 7, 2022
blocked by #271 related to #237 ----- Similar to the other migrated experiments I followed same approach as described here #268 > The experiment was executed and verified via the integration test against a self-managed cluster. > > I moved the experiment into the chaos-experiments/camunda-cloud/test/ folder and migrated it, with that approach I was able to execute the experiment with eze and running against my self-managed zell-chaos zeebe cluster. Log output: ``` Create ChaosToolkit instance Open workers: [zbchaos, readExperiments]. Handle read experiments job [key: 2251799813685265] Read experiments successful, complete job with: {"experiments":[{"contributions":{"availability":"high","reliability":"high"},"description":"This fake experiment is just to test the integration with Zeebe and zbchaos workers","method":[{"name":"Show again the version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"Show version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"This is a fake experiment","version":"0.1.0"},{"contributions":{"availability":"high","reliability":"high"},"description":"Zeebe should be fault-tolerant. We expect that Zeebe can handle non-graceful leader restarts.","method":[{"name":"Terminate leader of partition 1 non-gracefully","provider":{"arguments":["terminate","broker","--role","LEADER","--partitionId","1"],"path":"zbchaos","type":"process"},"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"All pods should be ready","provider":{"arguments":["verify","readiness"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Can deploy process model","provider":{"arguments":["deploy","process"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Should be able to create process instances on partition 1","provider":{"arguments":["verify","instance-creation","--partitionId","1"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"Zeebe Leader restart non-graceful experiment","version":"0.1.0"}]}. Handle zbchaos job [key: 2251799813685328] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685374] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685417] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685508] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813685551] Running command with args: [deploy process] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/one_task.bpmn (size: 2526 bytes). Deployed process model bpmn/one_task.bpmn successful with key 2251799813685431. Deployed given process model , under key 2251799813685431! Handle zbchaos job [key: 2251799813685597] Running command with args: [verify instance-creation --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 4503599627380556 on partition 2, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 6755399441065816 on partition 3, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 2251799813695425 on partition 1, required partition 1. The steady-state was successfully verified! Handle zbchaos job [key: 2251799813685645] Running command with args: [terminate broker --role LEADER --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Found Broker zell-chaos-zeebe-1 as LEADER for partition 1. Terminated zell-chaos-zeebe-1 Handle zbchaos job [key: 2251799813685691] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-1 is in phase Running, but not ready. Wait for some seconds. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813686206] Running command with args: [deploy process] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/one_task.bpmn (size: 2526 bytes). Deployed process model bpmn/one_task.bpmn successful with key 2251799813685431. Deployed given process model , under key 2251799813685431! Handle zbchaos job [key: 2251799813686252] Running command with args: [verify instance-creation --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 4503599627380585 on partition 2, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 6755399441065847 on partition 3, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 2251799813695455 on partition 1, required partition 1. The steady-state was successfully verified! Instance 2251799813685255 [definition 2251799813685253 ] completed --- PASS: Test_ShouldBeAbleToRunExperiments (56.98s) ```
ChrisKujawa
added a commit
that referenced
this pull request
Dec 8, 2022
related to #237 Similar to the other migrated experiments I followed same approach as described here #268 > The experiment was executed and verified via the integration test against a self-managed cluster. > > I moved the experiment into the chaos-experiments/camunda-cloud/test/ folder and migrated it, with that approach I was able to execute the experiment with eze and running against my self-managed zell-chaos zeebe cluster. Log output: ``` Create ChaosToolkit instance Open workers: [zbchaos, readExperiments]. Handle read experiments job [key: 2251799813685265] Read experiments successful, complete job with: {"experiments":[{"contributions":{"availability":"high","reliability":"high"},"description":"This fake experiment is just to test the integration with Zeebe and zbchaos workers","method":[{"name":"Show again the version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"Show version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"This is a fake experiment","version":"0.1.0"},{"contributions":{"availability":"high","reliability":"high"},"description":"Zeebe message correlation should work even if the leader was restarted on which the message was published.","method":[{"name":"Deploy process model with catch event","provider":{"arguments":["deploy","process","--processModelPath","bpmn/msg-catch.bpmn"],"path":"zbchaos","type":"process"},"tolerance":0,"type":"action"},{"name":"Publish message to partition one","provider":{"arguments":["publish","--partitionId","1"],"path":"zbchaos","type":"process"},"tolerance":0,"type":"action"},{"name":"Terminate leader of partition 1 non-gracefully","provider":{"arguments":["terminate","broker","--role","LEADER","--partitionId","1"],"path":"zbchaos","type":"process"},"type":"action"},{"name":"All pods should be ready","provider":{"arguments":["verify","readiness"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Should be able to create a process instance and await the message correlation","provider":{"arguments":["verify","instance-creation","--awaitResult","--bpmnProcessId","oneReceiveMsgEvent","--variables","{\"key\": \"0\"}"],"path":"zbchaos","type":"process"},"tolerance":0,"type":"probe"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"All pods should be ready","provider":{"arguments":["verify","readiness"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"Zeebe message correlation experiment","version":"0.1.0"}]}. Handle zbchaos job [key: 2251799813685328] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685374] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685417] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685508] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813685553] Running command with args: [deploy process --processModelPath bpmn/msg-catch.bpmn] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/msg-catch.bpmn (size: 2986 bytes). Deployed process model bpmn/msg-catch.bpmn successful with key 2251799813685249. Deployed given process model bpmn/msg-catch.bpmn, under key 2251799813685249! Handle zbchaos job [key: 2251799813685609] Running command with args: [publish --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send message 'msg', with correaltion key '0' (ASCII: 48) Message was sent and returned key 2251799813685251, which corresponds to partition: 1 Handle zbchaos job [key: 2251799813685652] Running command with args: [terminate broker --role LEADER --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Found Broker zell-chaos-zeebe-0 as LEADER for partition 1. Terminated zell-chaos-zeebe-0 Handle zbchaos job [key: 2251799813685696] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. Pod zell-chaos-zeebe-0 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Pending, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. Pod zell-chaos-zeebe-0 is in phase Running, but not ready. Wait for some seconds. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813686232] Running command with args: [verify instance-creation --awaitResult --bpmnProcessId oneReceiveMsgEvent --variables {"key": "0"}] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'oneReceiveMsgEvent' and version '-1' (-1 means latest) [variables: '{"key": "0"}', awaitResult: true] Created process instance with key 2251799813685252 on partition 1, required partition 1. The steady-state was successfully verified! Handle zbchaos job [key: 2251799813686305] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Instance 2251799813685255 [definition 2251799813685253 ] completed --- PASS: Test_ShouldBeAbleToRunExperiments (61.86s) PASS Process finished with the exit code 0 ```
ChrisKujawa
added a commit
that referenced
this pull request
Dec 8, 2022
related to #237 Similar to the other migrated experiments I followed same approach as described here #268 > The experiment was executed and verified via the integration test against a self-managed cluster. > > I moved the experiment into the chaos-experiments/camunda-cloud/test/ folder and migrated it, with that approach I was able to execute the experiment with eze and running against my self-managed zell-chaos zeebe cluster.
Merged
ChrisKujawa
added a commit
that referenced
this pull request
Dec 8, 2022
related to #237 Similar to the other migrated experiments I followed same approach as described here #268 > The experiment was executed and verified via the integration test against a self-managed cluster. > > I moved the experiment into the chaos-experiments/camunda-cloud/test/ folder and migrated it, with that approach I was able to execute the experiment with eze and running against my self-managed zell-chaos zeebe cluster. ``` Create ChaosToolkit instance Open workers: [zbchaos, readExperiments]. Handle read experiments job [key: 2251799813685265] Read experiments successful, complete job with: {"experiments":[{"contributions":{"availability":"high","reliability":"high"},"description":"This fake experiment is just to test the integration with Zeebe and zbchaos workers","method":[{"name":"Show again the version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"Show version","provider":{"arguments":["version"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"This is a fake experiment","version":"0.1.0"},{"contributions":{"availability":"high","reliability":"high"},"description":"The cpu stress on an abritrary node should not cause any failures. We should be able to start and complete instances.","method":[{"name":"Stress CPU on Broker","provider":{"arguments":["stress","broker","--cpu"],"path":"zbchaos","type":"process"},"type":"action"}],"rollbacks":[],"steady-state-hypothesis":{"probes":[{"name":"All pods should be ready","provider":{"arguments":["verify","readiness"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Can deploy process model","provider":{"arguments":["deploy","process"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"},{"name":"Should be able to create process instances on partition 1","provider":{"arguments":["verify","instance-creation","--partitionId","1"],"path":"zbchaos","timeout":900,"type":"process"},"tolerance":0,"type":"probe"}],"title":"Zeebe is alive"},"title":"CPU stress on an Broker","version":"0.1.0"}]}. Handle zbchaos job [key: 2251799813685328] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685374] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685417] Running command with args: [version] zbchaos development (commit: HEAD) Handle zbchaos job [key: 2251799813685508] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813685551] Running command with args: [deploy process] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/one_task.bpmn (size: 2526 bytes). Deployed process model bpmn/one_task.bpmn successful with key 2251799813685263. Deployed given process model , under key 2251799813685263! Handle zbchaos job [key: 2251799813685595] Running command with args: [verify instance-creation --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 4503599627370533 on partition 2, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 6755399441055781 on partition 3, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 2251799813685304 on partition 1, required partition 1. The steady-state was successfully verified! Handle zbchaos job [key: 2251799813685642] Running command with args: [stress broker --cpu] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Found Broker zell-chaos-zeebe-0 as LEADER for partition 1. Put stress on zell-chaos-zeebe-0 Execute ["apt" "-qq" "update"] on pod zell-chaos-zeebe-0 Execute ["apt" "-qq" "install" "-y" "stress" "procps"] on pod zell-chaos-zeebe-0 Execute ["stress" "--timeout" "30" "--cpu" "256"] on pod zell-chaos-zeebe-0 Handle zbchaos job [key: 2251799813685871] Running command with args: [verify readiness] Connecting to zell-chaos Running experiment in self-managed environment. All Zeebe nodes are running. Handle zbchaos job [key: 2251799813685913] Running command with args: [deploy process] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Deploy file bpmn/one_task.bpmn (size: 2526 bytes). Deployed process model bpmn/one_task.bpmn successful with key 2251799813685263. Deployed given process model , under key 2251799813685263! Handle zbchaos job [key: 2251799813685977] Running command with args: [verify instance-creation --partitionId 1] Connecting to zell-chaos Running experiment in self-managed environment. Successfully created port forwarding tunnel Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 4503599627370539 on partition 2, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 6755399441055787 on partition 3, required partition 1. Send create process instance command, with BPMN process ID 'benchmark' and version '-1' (-1 means latest) [variables: '', awaitResult: false] Created process instance with key 2251799813685311 on partition 1, required partition 1. The steady-state was successfully verified! Instance 2251799813685257 [definition 2251799813685253 ] completed --- PASS: Test_ShouldBeAbleToRunExperiments (32.20s) PASS Process finished with the exit code 0 ```
ChrisKujawa
added a commit
that referenced
this pull request
Dec 8, 2022
First fixed an issue with the worker deployments: In self-managed env the zeebe gateway service is called differently, based on the helm release name. The release name is in our setups normally also the namespace name, which we use here. If the worker is already deployed we update the deployment, instead of failing. + Added missing tests for it. Migrated the worker restart experiment related to #237 Similar to the other migrated experiments I followed same approach as described here #268 > The experiment was executed and verified via the integration test against a self-managed cluster. > > I moved the experiment into the chaos-experiments/camunda-cloud/test/ folder and migrated it, with that approach I was able to execute the experiment with eze and running against my self-managed zell-chaos zeebe cluster. ---------- This is btw the LAST production s experiment to migrate 🎉
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on #267 (blocked by)
related to #237
Fixed some smaller issues, like:
Migrate the Deployment distribution experiment, as the first experiment, to zbchaos.
The experiment was executed and verified via the integration test against a self-managed cluster.
I moved the experiment into the
chaos-experiments/camunda-cloud/test/
folder and migrated it, with that approach I was able to execute the experiment witheze
and running against my self-managedzell-chaos
zeebe cluster.Log output: