-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Once initial support for a failure injection library has been added as described by #138970, CLI support should be added as well. Such a CLI tool should allow for engineers to inject failures onto ad hoc roachprod clusters for testing purposes. This CLI should take advantage of the high level nature of the failure injection library, where the engineer only needs to know the type of failure they want to inject and not the implementation details of the exact commands being run.
Initial support should consist of the user prompting a type of failure along with any potential args, e.g.:
failure-injection network-partition $CLUSTER --asymmetric --throughput=1mpbs
Further down the line, when work for generating failure step YAML files has been completed, the CLI can leverage that to make running repeatable and more visually parsable failures easier, e.g.:
failure-injection network-partition $CLUSTER -f network-partition.YAML
Jira issue: CRDB-47275