Skip to content

Commit 9bc7e4c

Browse files
committed
Merge branch 'xc-123421-42' into 'release/4.2'
increase timeout value in ELK tests and fix OCNE test failures See merge request weblogic-cloud/weblogic-kubernetes-operator!4872
2 parents a82afee + d2575c2 commit 9bc7e4c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Jenkinsfile.ocne19

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ fingerprint=${FINGERPRINT}
322322
api_private_key_path=${jenkins_home_directory}/.oci/oci-signing-key.pem
323323
region=${wko_region}
324324
availability_domain_id=${availability_domain}
325-
prefix=ocne-tf-jenkin-${BUILD_ID}
325+
prefix=ocne-tf-jenkin42-${BUILD_ID}
326326

327327
deploy_networking=false
328328
subnet_id=${private_subnet_ocid}
@@ -424,7 +424,7 @@ EOF
424424
stage('Preparing Integration Test Environment - mount PV root in OCNE cluster control node') {
425425
steps {
426426
sh '''
427-
prefix=ocne-tf-jenkin-${BUILD_ID}
427+
prefix=ocne-tf-jenkin42-${BUILD_ID}
428428
# Get the OCNE cluster control node private IP
429429
k8s_master_instance_id=`oci compute instance list --compartment-id=${compartment_id} --display-name=${prefix}-control-plane-001 |jq -r '.data[] | select(."lifecycle-state" == "RUNNING") | ."id"'`
430430
k8s_master_node_ip=`oci compute instance list-vnics --compartment-id=${compartment_id} --instance-id=${k8s_master_instance_id} |jq -r '.data[] | select(."hostname-label" != null) | ."private-ip"'`
@@ -440,7 +440,7 @@ EOF
440440
stage('Preparing Integration Test Environment - mount PV root in OCNE cluster worker1 node') {
441441
steps {
442442
sh '''
443-
prefix=ocne-tf-jenkin-${BUILD_ID}
443+
prefix=ocne-tf-jenkin42-${BUILD_ID}
444444
# Get the OCNE cluster worker1 node private IP
445445
k8s_worker1_instance_id=`oci compute instance list --compartment-id=${compartment_id} --display-name=${prefix}-worker-001 |jq -r '.data[] | select(."lifecycle-state" == "RUNNING") | ."id"'`
446446
k8s_worker1_node_ip=`oci compute instance list-vnics --compartment-id=${compartment_id} --instance-id=${k8s_worker1_instance_id} |jq -r '.data[] | select(."hostname-label" != null) | ."private-ip"'`
@@ -456,7 +456,7 @@ EOF
456456
stage('Preparing Integration Test Environment - mount PV root in OCNE cluster worker2 node') {
457457
steps {
458458
sh '''
459-
prefix=ocne-tf-jenkin-${BUILD_ID}
459+
prefix=ocne-tf-jenkin42-${BUILD_ID}
460460
# Get the OCNE cluster worker2 node private IP
461461
k8s_worker2_instance_id=`oci compute instance list --compartment-id=${compartment_id} --display-name=${prefix}-worker-002 |jq -r '.data[] | select(."lifecycle-state" == "RUNNING") | ."id"'`
462462
k8s_worker2_node_ip=`oci compute instance list-vnics --compartment-id=${compartment_id} --instance-id=${k8s_worker2_instance_id} |jq -r '.data[] | select(."hostname-label" != null) | ."private-ip"'`
@@ -508,7 +508,7 @@ EOF
508508
mkdir -m777 -p "${WORKSPACE}/.mvn"
509509
touch ${WORKSPACE}/.mvn/maven.config
510510
export KUBECONFIG=${kubeconfig_file}
511-
prefix=ocne-tf-jenkin-${BUILD_ID}
511+
prefix=ocne-tf-jenkin42-${BUILD_ID}
512512

513513
# Get the OCNE cluster control node private IP
514514
k8s_master_instance_id=`oci compute instance list --compartment-id=${compartment_id} --display-name=${prefix}-control-plane-001 |jq -r '.data[] | select(."lifecycle-state" == "RUNNING") | ."id"'`
@@ -567,7 +567,7 @@ EOF
567567
]) {
568568
sh '''
569569

570-
prefix=ocne-tf-jenkin-${BUILD_ID}
570+
prefix=ocne-tf-jenkin42-${BUILD_ID}
571571
k8s_master_instance_id=`oci compute instance list --compartment-id=${compartment_id} --display-name=${prefix}-control-plane-001 |jq -r '.data[] | select(."lifecycle-state" == "RUNNING") | ."id"'`
572572
k8s_master_instance_private_ip=`oci compute instance list-vnics --compartment-id=${compartment_id} --instance-id=${k8s_master_instance_id} |jq -r '.data[] | select(."hostname-label" == null) | ."private-ip"'`
573573

integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/LoggingExporter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import static oracle.weblogic.kubernetes.assertions.impl.Kubernetes.isPodReady;
4747
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.checkServiceExists;
4848
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.testUntil;
49+
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.withLongRetryPolicy;
4950
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.withStandardRetryPolicy;
5051
import static oracle.weblogic.kubernetes.utils.ThreadSafeLogger.getLogger;
5152
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
@@ -103,6 +104,7 @@ public static boolean installElasticsearch(LoggingExporterParams params) {
103104
logger.info("Check if Elasticsearch deployment {0} is ready in namespace {1}",
104105
elasticsearchName, namespace);
105106
testUntil(
107+
withLongRetryPolicy,
106108
Deployment.isReady(elasticsearchName, labels, namespace),
107109
logger,
108110
"Elasticsearch deployment {0} to be completed in {1} namespace",
@@ -170,6 +172,7 @@ public static boolean installKibana(LoggingExporterParams params) {
170172
logger.info("Checking if Kibana deployment is ready {0} completed in namespace {1}",
171173
kibanaName, namespace);
172174
testUntil(
175+
withLongRetryPolicy,
173176
Deployment.isReady(kibanaName, labels, namespace),
174177
logger,
175178
"Kibana deployment {0} to be completed in namespace {1}",

integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonMiiTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ public static String readRuntimeResource(String adminSvcExtHost, String domainNa
11161116
}
11171117
} else {
11181118
String curlString;
1119-
if (OKE_CLUSTER_PRIVATEIP) {
1119+
if (OKE_CLUSTER_PRIVATEIP || OCNE) {
11201120
String protocol = "http";
11211121
String port = "7001";
11221122

0 commit comments

Comments
 (0)