@@ -77,16 +77,16 @@ cleanup() {
77
77
if [ " $fluentdtype " = " fluentd" ] ; then
78
78
reset_fluentd_daemonset
79
79
else
80
- os::log::debug " $( oc scale --replicas=0 dc logging-mux ) "
80
+ oc scale --replicas=0 dc logging-mux 2>&1 | artifact_out
81
81
os::cmd::try_until_text " oc get dc logging-mux -o jsonpath='{ .status.replicas }'" " 0" $MUX_WAIT_TIME
82
- os::log::debug " $( oc set env dc/logging-mux USE_REMOTE_SYSLOG=false REMOTE_SYSLOG_HOST- REMOTE_SYSLOG_USE_RECORD- REMOTE_SYSLOG_PORT=514 ) "
83
- os::log::debug " $( oc scale --replicas=1 dc logging-mux ) "
82
+ oc set env dc/logging-mux USE_REMOTE_SYSLOG=false REMOTE_SYSLOG_HOST- REMOTE_SYSLOG_USE_RECORD- REMOTE_SYSLOG_PORT=514 2>&1 | artifact_out
83
+ oc scale --replicas=1 dc logging-mux 2>&1 | artifact_out
84
84
os::cmd::try_until_text " oc get pods -l component=mux" " ^logging-mux-.* Running " $MUX_WAIT_TIME
85
85
86
- os::log::debug " $( oc label node --all logging-infra-fluentd- ) "
86
+ oc label node --all logging-infra-fluentd- 2>&1 | artifact_out
87
87
os::cmd::try_until_text " oc get daemonset logging-fluentd -o jsonpath='{ .status.numberReady }'" " 0" $FLUENTD_WAIT_TIME
88
- os::log::debug " $( oc set env ds/logging-fluentd MUX_CLIENT_MODE- ) "
89
- os::log::debug " $( oc label node --all logging-infra-fluentd=true --overwrite=true ) "
88
+ oc set env ds/logging-fluentd MUX_CLIENT_MODE- 2>&1 | artifact_out
89
+ oc label node --all logging-infra-fluentd=true --overwrite=true 2>&1 | artifact_out
90
90
os::cmd::try_until_text " oc get pods -l component=fluentd" " ^logging-fluentd-.* Running "
91
91
fi
92
92
@@ -118,19 +118,25 @@ if [ -n "$my_remote_syslog_host" ]; then
118
118
os::log::info $title
119
119
120
120
if [ " $fluentdtype " = " fluentd" ] ; then
121
- os::log::debug " $( oc label node --all logging-infra-fluentd- ) "
121
+ oc label node --all logging-infra-fluentd- 2>&1 | artifact_out
122
122
os::cmd::try_until_text " oc get daemonset logging-fluentd -o jsonpath='{ .status.numberReady }'" " 0" $FLUENTD_WAIT_TIME
123
- os::log::debug " $( oc set env ds/logging-fluentd USE_REMOTE_SYSLOG=true ) "
124
- os::log::debug " $( oc label node --all logging-infra-fluentd=true --overwrite=true ) "
123
+ oc set env ds/logging-fluentd USE_REMOTE_SYSLOG=true 2>&1 | artifact_out
124
+ oc label node --all logging-infra-fluentd=true --overwrite=true 2>&1 | artifact_out
125
125
os::cmd::try_until_text " oc get pods -l component=fluentd" " ^logging-fluentd-.* Running "
126
126
mypod=$( get_running_pod fluentd )
127
127
else
128
128
# make sure mux is running after previous test
129
129
os::cmd::try_until_text " oc get pods -l component=mux" " ^logging-mux.* Running "
130
- os::log::debug " $( oc scale --replicas=0 dc logging-mux ) "
130
+ oc scale --replicas=0 dc logging-mux 2>&1 | artifact_out
131
131
os::cmd::try_until_text " oc get dc logging-mux -o jsonpath='{ .status.replicas }'" " 0" $MUX_WAIT_TIME
132
- os::log::debug " $( oc set env dc/logging-mux USE_REMOTE_SYSLOG=true ) "
133
- os::log::debug " $( oc scale --replicas=1 dc logging-mux ) "
132
+ oc get pods | grep mux 2>&1 | artifact_out
133
+ oc get dc 2>&1 | artifact_out
134
+ oc set env dc/logging-mux USE_REMOTE_SYSLOG=true 2>&1 | artifact_out
135
+ oc get pods | grep mux 2>&1 | artifact_out
136
+ oc get dc 2>&1 | artifact_out
137
+ oc scale --replicas=1 dc logging-mux 2>&1 | artifact_out
138
+ oc get pods | grep mux 2>&1 | artifact_out
139
+ oc get dc 2>&1 | artifact_out
134
140
os::cmd::try_until_text " oc get pods -l component=mux" " ^logging-mux-.* Running " $MUX_WAIT_TIME
135
141
mypod=$( get_running_pod mux )
136
142
fi
@@ -146,23 +152,29 @@ os::log::info $title
146
152
if [ " $fluentdtype " = " fluentd" ] ; then
147
153
# make sure fluentd is running after previous test
148
154
os::cmd::try_until_text " oc get pods -l component=fluentd" " ^logging-fluentd-.* Running "
149
- os::log::debug " $( oc label node --all logging-infra-fluentd- ) "
155
+ oc label node --all logging-infra-fluentd- 2>&1 | artifact_out
150
156
os::cmd::try_until_text " oc get daemonset logging-fluentd -o jsonpath='{ .status.numberReady }'" " 0" $FLUENTD_WAIT_TIME
151
157
152
158
# choosing an unrealistic REMOTE_SYSLOG_HOST
153
- os::log::debug " $( oc set env daemonset/logging-fluentd USE_REMOTE_SYSLOG=true REMOTE_SYSLOG_HOST=111.222.111.222 ) "
154
- os::log::debug " $( oc label node --all logging-infra-fluentd=true --overwrite=true ) "
159
+ oc set env daemonset/logging-fluentd USE_REMOTE_SYSLOG=true REMOTE_SYSLOG_HOST=111.222.111.222 2>&1 | artifact_out
160
+ oc label node --all logging-infra-fluentd=true --overwrite=true 2>&1 | artifact_out
155
161
os::cmd::try_until_text " oc get pods -l component=fluentd" " ^logging-fluentd-.* Running "
156
162
157
163
mypod=$( get_running_pod fluentd )
158
164
else
159
165
# make sure mux is running after previous test
160
166
os::cmd::try_until_text " oc get pods -l component=mux" " ^logging-mux.* Running "
161
- os::log::debug " $( oc scale --replicas=0 dc logging-mux ) "
167
+ oc scale --replicas=0 dc logging-mux 2>&1 | artifact_out
162
168
os::cmd::try_until_text " oc get dc logging-mux -o jsonpath='{ .status.replicas }'" " 0" $MUX_WAIT_TIME
163
169
# choosing an unrealistic REMOTE_SYSLOG_HOST
164
- os::log::debug " $( oc set env dc/logging-mux USE_REMOTE_SYSLOG=true REMOTE_SYSLOG_HOST=111.222.111.222 ) "
165
- os::log::debug " $( oc scale --replicas=1 dc logging-mux ) "
170
+ oc get pods | grep mux 2>&1 | artifact_out
171
+ oc get dc 2>&1 | artifact_out
172
+ oc set env dc/logging-mux USE_REMOTE_SYSLOG=true REMOTE_SYSLOG_HOST=111.222.111.222 2>&1 | artifact_out
173
+ oc get pods | grep mux 2>&1 | artifact_out
174
+ oc get dc 2>&1 | artifact_out
175
+ oc scale --replicas=1 dc logging-mux 2>&1 | artifact_out
176
+ oc get pods | grep mux 2>&1 | artifact_out
177
+ oc get dc 2>&1 | artifact_out
166
178
os::cmd::try_until_text " oc get pods -l component=mux" " ^logging-mux-.* Running " $MUX_WAIT_TIME
167
179
168
180
mypod=$( get_running_pod mux )
0 commit comments