@@ -502,7 +502,7 @@ the introspector job run and your WebLogic Server pods start. The output will lo
502
502
` ` ` shell
503
503
$ kubectl get pods -n sample-domain1-ns --watch
504
504
` ` `
505
- ` ` `
505
+ ` ` ` text
506
506
NAME READY STATUS RESTARTS AGE
507
507
sample-domain1-introspector-z5vmp 0/1 Pending 0 0s
508
508
sample-domain1-introspector-z5vmp 0/1 Pending 0 0s
@@ -535,33 +535,36 @@ the introspector job run and your WebLogic Server pods start. The output will lo
535
535
` ` `
536
536
{{% /expand %}}
537
537
538
- Alternatively, you can run ` /tmp/mii-sample/utils/wl-pod-wait.sh -p 3` . This is a utility script that
539
- provides useful information about a domain' s pods and waits for them to reach a `ready` state, reach
540
- their target `restartVersion`, and reach their target `image` before exiting.
538
+ Alternatively, you can run ` /tmp/mii-sample/utils/wl-pod-wait.sh -p 3` .
539
+ This utility script exits successfully when the designated number of WebLogic
540
+ Server pods reach a ` ready` state and have ` restartVersion` , ` introspectVersion` ,
541
+ ` spec.image` , and ` spec.serverPod.commonMounts.image` values that match
542
+ their corresponding values in their domain resource.
541
543
542
544
{{%expand " Click here to display the ` wl-pod-wait.sh` usage." %}}
543
545
` ` ` shell
544
546
$ ./wl-pod-wait.sh -?
545
- ```
546
- ```
547
- Usage:
547
+ ` ` `
548
548
549
+ ` ` ` text
550
+ Usage:
551
+
549
552
wl-pod-wait.sh [-n mynamespace] [-d mydomainuid] \
550
553
[-p expected_pod_count] \
551
554
[-t timeout_secs] \
552
555
[-q]
553
-
556
+
554
557
Exits non-zero if ' timeout_secs' is reached before ' pod_count' is reached.
555
-
558
+
556
559
Parameters:
557
-
560
+
558
561
-d < domain_uid> : Defaults to ' sample-domain1' .
559
-
562
+
560
563
-n < namespace> : Defaults to ' sample-domain1-ns' .
561
-
564
+
562
565
-p 0 : Wait until there are no running WebLogic Server pods
563
566
for a domain. The default.
564
-
567
+
565
568
-p < pod_count> : Wait until all of the following are true
566
569
for exactly ' pod_count' WebLogic Server pods
567
570
in the domain:
@@ -570,92 +573,105 @@ their target `restartVersion`, and reach their target `image` before exiting.
570
573
the domain resource' s ' spec.restartVersion'
571
574
- same ' weblogic.introspectVersion' label value as
572
575
the domain resource' s ' spec.introspectVersion'
573
- - same image as the the domain resource' s image
574
-
576
+ - same image as the domain resource' s ' spec.image'
577
+ - same common mount images as
578
+ the domain resource' s ' spec.serverPod.commonMounts'
579
+
575
580
-t < timeout> : Timeout in seconds. Defaults to ' 1000' .
576
-
581
+
577
582
-q : Quiet mode. Show only a count of wl pods that
578
583
have reached the desired criteria.
579
-
584
+
580
585
-? : This help.
581
586
` ` `
582
587
{{% /expand %}}
583
588
584
589
{{%expand " Click here to view sample output from ` wl-pod-wait.sh` ." %}}
585
- ` ` `
586
- @@ [2021-05-26T22:31:49][seconds= 0] Info: Waiting up to 1000 seconds for exactly ' 3' WebLogic Server pods to reach the following criteria:
587
- @@ [2021-05-26T22:31:49][seconds= 0] Info: ready=' true'
588
- @@ [2021-05-26T22:31:49][seconds= 0] Info: image=' container-registry.oracle.com/middleware/weblogic:12.2.1.4'
589
- @@ [2021-05-26T22:31:49][seconds= 0] Info: domainRestartVersion=' 1'
590
- @@ [2021-05-26T22:31:49][seconds= 0] Info: introspectVersion=' 1'
591
- @@ [2021-05-26T22:31:49][seconds= 0] Info: namespace=' sample-domain1-ns'
592
- @@ [2021-05-26T22:31:49][seconds= 0] Info: domainUID=' sample-domain1'
593
-
594
- @@ [2021-05-26T22:31:49][seconds= 0] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
595
- @@ [2021-05-26T22:31:49][seconds= 0] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
596
-
597
- NAME RVERSION IVERSION IMAGE READY PHASE
598
- ----------------------------------- -------- -------- ----- ----- ---------
599
- ' sample-domain1-introspector-l7nql' ' ' ' ' ' ' ' ' ' Pending'
600
-
601
- @@ [2021-05-26T22:31:52][seconds= 3] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
602
- @@ [2021-05-26T22:31:52][seconds= 3] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
603
-
604
- NAME RVERSION IVERSION IMAGE READY PHASE
605
- ----------------------------------- -------- -------- ----- ----- ---------
606
- ' sample-domain1-introspector-l7nql' ' ' ' ' ' ' ' ' ' Running'
607
-
608
- @@ [2021-05-26T22:33:01][seconds= 72] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
609
- @@ [2021-05-26T22:33:01][seconds= 72] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
610
-
611
- NAME RVERSION IVERSION IMAGE READY PHASE
612
- ----------------------------------- -------- -------- ------------------------------------------------------------ ------- -----------
613
- ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Pending'
614
- ' sample-domain1-introspector-l7nql' ' ' ' ' ' ' ' ' ' Succeeded'
615
-
616
- @@ [2021-05-26T22:33:03][seconds= 74] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
617
- @@ [2021-05-26T22:33:03][seconds= 74] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
618
-
619
- NAME RVERSION IVERSION IMAGE READY PHASE
620
- ----------------------------- -------- -------- ------------------------------------------------------------ ------- ---------
621
- ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Pending'
622
-
623
- @@ [2021-05-26T22:33:04][seconds= 75] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
624
- @@ [2021-05-26T22:33:04][seconds= 75] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
625
-
626
- NAME RVERSION IVERSION IMAGE READY PHASE
627
- ----------------------------- -------- -------- ------------------------------------------------------------ ------- ---------
628
- ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Running'
629
-
630
- @@ [2021-05-26T22:33:36][seconds= 107] Info: ' 1' WebLogic Server pods currently match all criteria, expecting ' 3' .
631
- @@ [2021-05-26T22:33:36][seconds= 107] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
632
-
633
- NAME RVERSION IVERSION IMAGE READY PHASE
634
- -------------------------------- -------- -------- ------------------------------------------------------------ ------- ---------
635
- ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' true' ' Running'
636
- ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Pending'
637
- ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Pending'
638
-
639
- @@ [2021-05-26T22:33:39][seconds= 110] Info: ' 1' WebLogic Server pods currently match all criteria, expecting ' 3' .
640
- @@ [2021-05-26T22:33:39][seconds= 110] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
641
-
642
- NAME RVERSION IVERSION IMAGE READY PHASE
643
- -------------------------------- -------- -------- ------------------------------------------------------------ ------- ---------
644
- ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' true' ' Running'
645
- ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Running'
646
- ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' false' ' Running'
647
-
648
- @@ [2021-05-26T22:34:20][seconds= 151] Info: ' 3' WebLogic Server pods currently match all criteria, expecting ' 3' .
649
- @@ [2021-05-26T22:34:20][seconds= 151] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
650
-
651
- NAME RVERSION IVERSION IMAGE READY PHASE
652
- -------------------------------- -------- -------- ------------------------------------------------------------ ------ ---------
653
- ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' true' ' Running'
654
- ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' true' ' Running'
655
- ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' true' ' Running'
656
-
657
-
658
- @@ [2021-05-26T22:34:20][seconds= 151] Info: Success!
590
+ ` ` ` text
591
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: Waiting up to 1000 seconds for exactly ' 3' WebLogic Server pods to reach the following criteria:
592
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: ready=' true'
593
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: image=' container-registry.oracle.com/middleware/weblogic:12.2.1.4'
594
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: commonMountImages=' model-in-image:WLS-CM-v1'
595
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: domainRestartVersion=' 1'
596
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: introspectVersion=' 1'
597
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: namespace=' sample-domain1-ns'
598
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: domainUID=' sample-domain1'
599
+
600
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
601
+ @@ [2021-06-14T20:35:35][seconds= 0] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
602
+
603
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
604
+ ---- ---- ---- ----- -------- ----- -----
605
+ ' sample-domain1-introspector-wz8q6' ' ' ' ' ' ' ' model-in-image:WLS-CM-v1' ' ' ' Pending'
606
+
607
+ @@ [2021-06-14T20:35:39][seconds= 4] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
608
+ @@ [2021-06-14T20:35:39][seconds= 4] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
609
+
610
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
611
+ ---- ---- ---- ----- -------- ----- -----
612
+ ' sample-domain1-introspector-wz8q6' ' ' ' ' ' ' ' model-in-image:WLS-CM-v1' ' ' ' Running'
613
+
614
+ @@ [2021-06-14T20:36:51][seconds= 76] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
615
+ @@ [2021-06-14T20:36:51][seconds= 76] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
616
+
617
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
618
+ ---- ---- ---- ----- -------- ----- -----
619
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Pending'
620
+
621
+ @@ [2021-06-14T20:36:55][seconds= 80] Info: ' 0' WebLogic Server pods currently match all criteria, expecting ' 3' .
622
+ @@ [2021-06-14T20:36:55][seconds= 80] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
623
+
624
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
625
+ ---- ---- ---- ----- -------- ----- -----
626
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Running'
627
+
628
+ @@ [2021-06-14T20:37:34][seconds= 119] Info: ' 1' WebLogic Server pods currently match all criteria, expecting ' 3' .
629
+ @@ [2021-06-14T20:37:34][seconds= 119] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
630
+
631
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
632
+ ---- ---- ---- ----- -------- ----- -----
633
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
634
+ ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Pending'
635
+ ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Pending'
636
+
637
+ @@ [2021-06-14T20:37:35][seconds= 120] Info: ' 1' WebLogic Server pods currently match all criteria, expecting ' 3' .
638
+ @@ [2021-06-14T20:37:35][seconds= 120] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
639
+
640
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
641
+ ---- ---- ---- ----- -------- ----- -----
642
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
643
+ ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Running'
644
+ ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Pending'
645
+
646
+ @@ [2021-06-14T20:37:37][seconds= 122] Info: ' 1' WebLogic Server pods currently match all criteria, expecting ' 3' .
647
+ @@ [2021-06-14T20:37:37][seconds= 122] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
648
+
649
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
650
+ ---- ---- ---- ----- -------- ----- -----
651
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
652
+ ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Running'
653
+ ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Running'
654
+
655
+ @@ [2021-06-14T20:38:18][seconds= 163] Info: ' 2' WebLogic Server pods currently match all criteria, expecting ' 3' .
656
+ @@ [2021-06-14T20:38:18][seconds= 163] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
657
+
658
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
659
+ ---- ---- ---- ----- -------- ----- -----
660
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
661
+ ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' false' ' Running'
662
+ ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
663
+
664
+ @@ [2021-06-14T20:38:20][seconds= 165] Info: ' 3' WebLogic Server pods currently match all criteria, expecting ' 3' .
665
+ @@ [2021-06-14T20:38:20][seconds= 165] Info: Introspector and WebLogic Server pods with same namespace and domain-uid:
666
+
667
+ NAME RVER IVER IMAGE CMIMAGES READY PHASE
668
+ ---- ---- ---- ----- -------- ----- -----
669
+ ' sample-domain1-admin-server' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
670
+ ' sample-domain1-managed-server1' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
671
+ ' sample-domain1-managed-server2' ' 1' ' 1' ' container-registry.oracle.com/middleware/weblogic:12.2.1.4' ' model-in-image:WLS-CM-v1' ' true' ' Running'
672
+
673
+
674
+ @@ [2021-06-14T20:38:20][seconds= 165] Info: Success!
659
675
` ` `
660
676
{{% /expand %}}
661
677
0 commit comments