mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-02-14 18:10:00 +00:00
Document node scenario actions for VMware
This commit also updates the id's for the VMware scenarios to be aligned with other cloud providers.
This commit is contained in:
@@ -4,7 +4,7 @@ The following node chaos scenarios are supported:
|
|||||||
|
|
||||||
1. **node_start_scenario**: Scenario to stop the node instance.
|
1. **node_start_scenario**: Scenario to stop the node instance.
|
||||||
2. **node_stop_scenario**: Scenario to stop the node instance.
|
2. **node_stop_scenario**: Scenario to stop the node instance.
|
||||||
3. **node_stop_start_scenario**: Scenario to stop and then start the node instance.
|
3. **node_stop_start_scenario**: Scenario to stop and then start the node instance. Not supported on VMware.
|
||||||
4. **node_termination_scenario**: Scenario to terminate the node instance.
|
4. **node_termination_scenario**: Scenario to terminate the node instance.
|
||||||
5. **node_reboot_scenario**: Scenario to reboot the node instance.
|
5. **node_reboot_scenario**: Scenario to reboot the node instance.
|
||||||
6. **stop_kubelet_scenario**: Scenario to stop the kubelet of the node instance.
|
6. **stop_kubelet_scenario**: Scenario to stop the kubelet of the node instance.
|
||||||
@@ -12,11 +12,12 @@ The following node chaos scenarios are supported:
|
|||||||
8. **node_crash_scenario**: Scenario to crash the node instance.
|
8. **node_crash_scenario**: Scenario to crash the node instance.
|
||||||
9. **stop_start_helper_node_scenario**: Scenario to stop and start the helper node and check service status.
|
9. **stop_start_helper_node_scenario**: Scenario to stop and start the helper node and check service status.
|
||||||
|
|
||||||
|
|
||||||
**NOTE**: If the node does not recover from the node_crash_scenario injection, reboot the node to get it back to Ready state.
|
**NOTE**: If the node does not recover from the node_crash_scenario injection, reboot the node to get it back to Ready state.
|
||||||
|
|
||||||
**NOTE**: node_start_scenario, node_stop_scenario, node_stop_start_scenario, node_termination_scenario
|
**NOTE**: node_start_scenario, node_stop_scenario, node_stop_start_scenario, node_termination_scenario
|
||||||
, node_reboot_scenario and stop_start_kubelet_scenario are supported only on AWS, Azure, OpenStack, BareMetal, GCP
|
, node_reboot_scenario and stop_start_kubelet_scenario are supported only on AWS, Azure, OpenStack, BareMetal, GCP
|
||||||
, and Alibaba as of now.
|
, VMware and Alibaba as of now.
|
||||||
|
|
||||||
**NOTE**: Node scenarios are supported only when running the standalone version of Kraken until https://github.com/redhat-chaos/krkn/issues/106 gets fixed.
|
**NOTE**: Node scenarios are supported only when running the standalone version of Kraken until https://github.com/redhat-chaos/krkn/issues/106 gets fixed.
|
||||||
|
|
||||||
|
|||||||
@@ -534,7 +534,7 @@ class NodeScenarioConfig:
|
|||||||
|
|
||||||
|
|
||||||
@plugin.step(
|
@plugin.step(
|
||||||
id="node-start",
|
id="node_start_scenario",
|
||||||
name="Start the node",
|
name="Start the node",
|
||||||
description="Start the node(s) by starting the VMware VM "
|
description="Start the node(s) by starting the VMware VM "
|
||||||
"on which the node is configured",
|
"on which the node is configured",
|
||||||
@@ -593,7 +593,7 @@ def node_start(
|
|||||||
|
|
||||||
|
|
||||||
@plugin.step(
|
@plugin.step(
|
||||||
id="node-stop",
|
id="node_stop_scenario",
|
||||||
name="Stop the node",
|
name="Stop the node",
|
||||||
description="Stop the node(s) by starting the VMware VM "
|
description="Stop the node(s) by starting the VMware VM "
|
||||||
"on which the node is configured",
|
"on which the node is configured",
|
||||||
@@ -652,7 +652,7 @@ def node_stop(
|
|||||||
|
|
||||||
|
|
||||||
@plugin.step(
|
@plugin.step(
|
||||||
id="node-reboot",
|
id="node_reboot_scenario",
|
||||||
name="Reboot VMware VM",
|
name="Reboot VMware VM",
|
||||||
description="Reboot the node(s) by starting the VMware VM "
|
description="Reboot the node(s) by starting the VMware VM "
|
||||||
"on which the node is configured",
|
"on which the node is configured",
|
||||||
@@ -713,7 +713,7 @@ def node_reboot(
|
|||||||
|
|
||||||
|
|
||||||
@plugin.step(
|
@plugin.step(
|
||||||
id="node-terminate",
|
id="node_terminate_scenario",
|
||||||
name="Reboot VMware VM",
|
name="Reboot VMware VM",
|
||||||
description="Wait for the specified number of pods to be present",
|
description="Wait for the specified number of pods to be present",
|
||||||
outputs={
|
outputs={
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# yaml-language-server: $schema=../plugin.schema.json
|
# yaml-language-server: $schema=../plugin.schema.json
|
||||||
- id: <node-stop/node-start/node-reboot/node-terminate>
|
- id: <node_stop_scenario/node_start_scenario/node_reboot_scenario/node_terminate_scenario>
|
||||||
config:
|
config:
|
||||||
name: <node_name> # Node on which scenario has to be injected; can set multiple names separated by comma
|
name: <node_name> # Node on which scenario has to be injected; can set multiple names separated by comma
|
||||||
label_selector: <label_selector> # When node_name is not specified, a node with matching label_selector is selected for node chaos scenario injection
|
label_selector: <label_selector> # When node_name is not specified, a node with matching label_selector is selected for node chaos scenario injection
|
||||||
@@ -7,4 +7,4 @@
|
|||||||
instance_count: 1 # Number of nodes to perform action/select that match the label selector
|
instance_count: 1 # Number of nodes to perform action/select that match the label selector
|
||||||
timeout: 300 # Duration to wait for completion of node scenario injection
|
timeout: 300 # Duration to wait for completion of node scenario injection
|
||||||
verify_session: True # Set to True if you want to verify the vSphere client session using certificates; else False
|
verify_session: True # Set to True if you want to verify the vSphere client session using certificates; else False
|
||||||
skip_openshift_checks: False # Set to True if you don't want to wait for the status of the nodes to change on OpenShift before passing the scenario
|
skip_openshift_checks: False # Set to True if you don't want to wait for the status of the nodes to change on OpenShift before passing the scenario
|
||||||
|
|||||||
Reference in New Issue
Block a user