@@ -1921,6 +1921,7 @@ EOF
1921
1921
# - local --> run locally - requires java & weblogic to be installed
1922
1922
# - remote --> run remotely on admin server, construct URL using admin pod name
1923
1923
# - hybrid --> run remotely on admin server, construct URL using 'NODEPORT_HOST'
1924
+ # or 'K8S_NODEPORT_IP' in wercker since NODEPORT_HOST sometimes does not work in OCI
1924
1925
#
1925
1926
function run_wlst_script {
1926
1927
if [ " $# " -lt 3 ] ; then
@@ -1943,7 +1944,12 @@ function run_wlst_script {
1943
1944
local password=` get_wladmin_pass $1 `
1944
1945
local pyfile_lcl=" $3 "
1945
1946
local pyfile_pod=" /shared/` basename $pyfile_lcl ` "
1946
- local t3url_lcl=" t3://$NODEPORT_HOST :$ADMIN_WLST_PORT "
1947
+ if [ " $WERCKER " = " true" ]; then
1948
+ # use OCI public IP in wercker
1949
+ local t3url_lcl=" t3://$K8S_NODEPORT_IP :$ADMIN_WLST_PORT "
1950
+ else
1951
+ local t3url_lcl=" t3://$NODEPORT_HOST :$ADMIN_WLST_PORT "
1952
+ fi
1947
1953
local t3url_pod=" t3://$AS_NAME :$ADMIN_WLST_PORT "
1948
1954
local wlcmdscript_lcl=" $TMP_DIR /wlcmd.sh"
1949
1955
local wlcmdscript_pod=" /shared/wlcmd.sh"
@@ -2032,6 +2038,7 @@ EOF
2032
2038
2033
2039
if [ " $result " = " 0" ];
2034
2040
then
2041
+ cat ${pyfile_lcl} .out
2035
2042
break
2036
2043
fi
2037
2044
@@ -2205,9 +2212,10 @@ function verify_service_and_pod_created {
2205
2212
local EXTCHANNEL_T3CHANNEL_SERVICE_NAME=${SERVICE_NAME} -extchannel-t3channel
2206
2213
trace " checking if service ${EXTCHANNEL_T3CHANNEL_SERVICE_NAME} is created"
2207
2214
count=0
2215
+ srv_count=0
2208
2216
while [ " ${srv_count:= Error} " != " 1" -a $count -lt $max_count_srv ] ; do
2209
2217
local count=` expr $count + 1`
2210
- local srv_count=` kubectl -n $NAMESPACE get services | grep " ^$SERVICE_NAME " | wc -l`
2218
+ local srv_count=` kubectl -n $NAMESPACE get services | grep " ^$EXTCHANNEL_T3CHANNEL_SERVICE_NAME " | wc -l`
2211
2219
if [ " ${srv_count:= Error} " != " 1" ]; then
2212
2220
trace " Did not find service $EXTCHANNEL_T3CHANNEL_SERVICE_NAME , iteration $count of $max_count_srv "
2213
2221
sleep $wait_time
@@ -2258,6 +2266,9 @@ function verify_service_and_pod_created {
2258
2266
fi
2259
2267
2260
2268
if [ " ${IS_ADMIN_SERVER} " = " true" ]; then
2269
+ trace " listing pods"
2270
+ kubectl -n $NAMESPACE get pods -o wide
2271
+
2261
2272
verify_wlst_access $DOM_KEY
2262
2273
fi
2263
2274
}
0 commit comments