Skip to content

Commit

Permalink
adding prow run limited details
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 authored and chaitanyaenr committed Dec 14, 2023
1 parent e93d318 commit d9069c4
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 75 deletions.
8 changes: 2 additions & 6 deletions prow/container-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ source env.sh

export KUBECONFIG=$KRKN_KUBE_CONFIG

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

source container-scenarios/env.sh

Expand Down
8 changes: 2 additions & 6 deletions prow/cpu-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ cp -r /root/kraken /tmp/kraken
krkn_loc=/tmp/kraken
SCENARIO_FOLDER="$krkn_loc/scenarios/arcaflow/cpu-hog"

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Copy config to kraken
cp node-cpu-hog/input.yaml.template $SCENARIO_FOLDER/input.yaml.template
Expand Down
8 changes: 2 additions & 6 deletions prow/io-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ cp -r /root/kraken /tmp/kraken
krkn_loc=/tmp/kraken
SCENARIO_FOLDER="$krkn_loc/scenarios/arcaflow/io-hog"

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Copy config to kraken
cp node-io-hog/input.yaml.template $SCENARIO_FOLDER/input.yaml.template
Expand Down
8 changes: 2 additions & 6 deletions prow/memory-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ cp -r /root/kraken /tmp/kraken
krkn_loc=/tmp/kraken
SCENARIO_FOLDER="$krkn_loc/scenarios/arcaflow/memory-hog"

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Copy config to kraken
cp node-memory-hog/input.yaml.template $SCENARIO_FOLDER/input.yaml.template
Expand Down
8 changes: 2 additions & 6 deletions prow/namespace-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ source env.sh

export KUBECONFIG=$KRKN_KUBE_CONFIG

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

source service-disruption-scenarios/env.sh

Expand Down
11 changes: 3 additions & 8 deletions prow/network-chaos/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ source env.sh

export KUBECONFIG=$KRKN_KUBE_CONFIG


# Cluster details
echo "Printing cluster details"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done
# cluster version
echo "Printing cluster version"
oc version

source network-chaos/env.sh

Expand Down
8 changes: 2 additions & 6 deletions prow/node-disruptions/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ checks

export KUBECONFIG=$KRKN_KUBE_CONFIG

# Cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Move kraken from root dir to tmp to avoid permissions issues in prow until fixed in base image
cp -r /root/kraken /tmp/kraken
Expand Down
10 changes: 3 additions & 7 deletions prow/pod-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ source env.sh
export KUBECONFIG=$KRKN_KUBE_CONFIG


# Cluster details
echo "Printing cluster details"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done
# cluster version
echo "Printing cluster version"
oc version

source pod-scenarios/env.sh

Expand Down
8 changes: 2 additions & 6 deletions prow/power-outage/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ checks

export KUBECONFIG=$KRKN_KUBE_CONFIG

# Cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Substitute config with environment vars defined
envsubst < power-outages/shutdown_scenario.yaml.template > /tmp/power_outage_scenario.yaml
Expand Down
8 changes: 2 additions & 6 deletions prow/pvc-scenario/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ source env.sh

export KUBECONFIG=$KRKN_KUBE_CONFIG

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done


source pvc-scenario/env.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/time-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ source env.sh

export KUBECONFIG=$KRKN_KUBE_CONFIG

# cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

source time-scenarios/env.sh

Expand Down
8 changes: 2 additions & 6 deletions prow/zone-outages/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ checks

export KUBECONFIG=$KRKN_KUBE_CONFIG

# Cluster details
echo "Printing cluster details"
# cluster version
echo "Printing cluster version"
oc version
cat $KRKN_KUBE_CONFIG
oc config view
echo "Printing node info"
for node in $(oc get nodes | awk 'NR!=1{print $1}'); do oc get node/$node -o yaml; done

# Substitute config with environment vars defined
envsubst < zone-outages/zone_outage_scenario.yaml.template > /tmp/zone_outage.yaml
Expand Down

0 comments on commit d9069c4

Please sign in to comment.