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

Updating Kraken workload #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $ cp scale-ci-pipeline/properties-files/nodevertical.properties scale-ci-pipelin
$ # step 4: add the new workload to the Jenkinsfile to load the pipeline-build script ( Applicable only in the case of a new workload, this is not needed for a existing workload )
$ vi scale-ci-pipeline/Jenkinsfile
$ # step 5: add the workoad to the scale-ci-pipeline ( workload option and properties file path vars, applicable only in the case of a new workload )
$ vi scale-ci-pipeline/jjb/dynamic/scale-ci-pipeline
$ vi scale-ci-pipeline/jjb/static/scale-ci-pipeline
$ # step 6: update the Scale-CI jobs section in the readme.
```
#### NOTE: Modifying the existing workload just needs changes to the existing template, build script and properties file.
Expand Down
14 changes: 12 additions & 2 deletions jjb/dynamic/scale-ci_kraken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
name: KRAKEN_CONFIG
trim: 'false'
- string:
default: "https://github.com/yashashreesuresh/kraken.git"
default: "https://github.com/openshift-scale/kraken.git"
description: Kraken repository location.
name: KRAKEN_REPOSITORY
trim: 'false'
Expand All @@ -65,9 +65,19 @@
trim: 'false'
- string:
default: "[[scenarios/etcd.yml, scenarios/post_action_etcd_example.sh], [scenarios/openshift-apiserver.yml, scenarios/post_action_openshift-kube-apiserver.yml], [scenarios/openshift-kube-apiserver.yml, scenarios/post_action_openshift-apiserver.yml], [scenarios/regex_openshift_pod_kill.yml, scenarios/post_action_regex.py]]"
description: Chaos scenarios to inject.
description: Pod chaos scenarios to inject.
name: SCENARIOS
trim: 'false'
- string:
default: "[scenarios/node_scenarios_example.yml]"
description: Node chaos scenarios to inject.
name: NODE_SCENARIOS
trim: 'false'
- string:
default: "[scenarios/cluster_shut_down_scenario.yml]"
description: Cluster shutdown chaos scenarios to inject.
name: CLUSTER_SHUT_DOWN_SCENARIO
trim: 'false'
- bool:
default: false
description: Exit when a post action scenario fails.
Expand Down
4 changes: 4 additions & 0 deletions pipeline-scripts/kraken.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ stage ('kraken') {
def kraken_repository = kraken_properties['KRAKEN_REPOSITORY']
def scenarios_folder_path = kraken_properties['SCENARIOS_FOLDER_PATH']
def scenarios = kraken_properties['SCENARIOS']
def node_scenarios = kraken_properties['NODE_SCENARIOS']
def cluster_shut_down_scenario = kraken_properties['CLUSTER_SHUT_DOWN_SCENARIO']
def exit_on_failure = kraken_properties['EXIT_ON_FAILURE']
def cerberus_enabled = kraken_properties['CERBERUS_ENABLED']
def cerberus_url = kraken_properties['CERBERUS_URL']
Expand All @@ -50,6 +52,8 @@ stage ('kraken') {
[$class: 'StringParameterValue', name: 'KRAKEN_REPOSITORY', value: kraken_repository ],
[$class: 'StringParameterValue', name: 'SCENARIOS_FOLDER_PATH', value: scenarios_folder_path ],
[$class: 'StringParameterValue', name: 'SCENARIOS', value: scenarios ],
[$class: 'StringParameterValue', name: 'NODE_SCENARIOS', value: node_scenarios ],
[$class: 'StringParameterValue', name: 'CLUSTER_SHUT_DOWN_SCENARIO', value: cluster_shut_down_scenario ],
[$class: 'BooleanParameterValue', name: 'EXIT_ON_FAILURE', value: Boolean.valueOf(exit_on_failure) ],
[$class: 'BooleanParameterValue', name: 'CERBERUS_ENABLED', value: Boolean.valueOf(cerberus_enabled) ],
[$class: 'StringParameterValue', name: 'CERBERUS_URL', value: cerberus_url ],
Expand Down
2 changes: 2 additions & 0 deletions properties-files/kraken.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ KRAKEN_CONFIG=/root/kraken/config/config.yaml
KRAKEN_REPOSITORY=https://github.com/openshift-scale/kraken.git
SCENARIOS_FOLDER_PATH=CI/scenarios/
SCENARIOS=[[scenarios/etcd.yml, scenarios/post_action_etcd_example.sh], [scenarios/openshift-apiserver.yml, scenarios/post_action_openshift-kube-apiserver.yml], [scenarios/openshift-kube-apiserver.yml, scenarios/post_action_openshift-apiserver.yml], [scenarios/regex_openshift_pod_kill.yml, scenarios/post_action_regex.py]]
NODE_SCENARIOS=[scenarios/node_scenarios_example.yml]
CLUSTER_SHUT_DOWN_SCENARIO=[scenarios/cluster_shut_down_scenario.yml]
EXIT_ON_FAILURE=false
CERBERUS_ENABLED=false
CERBERUS_URL=
Expand Down