File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -379,3 +379,6 @@ export TEST_CUSTOM_MAO=${TEST_CUSTOM_MAO:-false}
379
379
# Set to configure bootstrap VM baremetal network with static IP
380
380
# (Currently this just expects a non-empty value, the IP is fixed to .9)
381
381
export ENABLE_BOOTSTRAP_STATIC_IP=${ENABLE_BOOTSTRAP_STATIC_IP:- }
382
+
383
+ # Defaults the variable to disable testing software RAID
384
+ export TEST_SW_RAID=${TEST_SW_RAID:- false}
Original file line number Diff line number Diff line change @@ -608,3 +608,7 @@ set -x
608
608
# cpu and ip stack.
609
609
# This config variable is used only by the agent based installer and is required.
610
610
# export AGENT_E2E_TEST_SCENARIO=HA_IPV4
611
+
612
+ # TEST_SW_RAID -
613
+ # Enable testing of software RAID
614
+ # export TEST_SW_RAID=true
Original file line number Diff line number Diff line change @@ -108,6 +108,17 @@ function create_cluster() {
108
108
mkdir -p ${assets_dir} /openshift
109
109
generate_assets
110
110
111
+ if [[ " $TEST_SW_RAID " == " true" ]] && [[ " $NUM_WORKERS " -gt 0 ]]; then
112
+ for n in $( seq " $NUM_MASTERS " $( expr " $NUM_WORKERS " + " $NUM_MASTERS " - 1) ) ;
113
+ do
114
+ sed -i " /status/i \\
115
+ raid: \n\
116
+ softwareRAIDVolumes: \n\
117
+ - level: \" 1\" \
118
+ " ${assets_dir} /openshift/99_openshift-cluster-api_hosts-$n .yaml
119
+ done
120
+ fi
121
+
111
122
if [ -z " ${NTP_SERVERS} " ];
112
123
then
113
124
export NTP_SERVERS=" $PROVISIONING_HOST_EXTERNAL_IP "
You can’t perform that action at this time.
0 commit comments