Skip to content

Commit 05b9de1

Browse files
rjeberhardJohnny ShumankediaTom Barnesrosemarymarano
authored
Operator version 3.0.2 (#1912)
* Move to version 3.0.2 * remove duplicate parameter srcstorepass in keytool command * changes to allow setting nodeAffinity and nodeSelector values in operator Helm chart and related doc change * minor doc change * changes based on review comments * Mirror introspector log to a rotating file in 'log home' (if configured) * minor fix * remove comment * Add log rotation for NM .out/.log, enhance log rotation for introspector .out, and document log rotation for WLS .out and .log. * minor doc edits * add NGINX for production ICs * In recheck code path only continue if spec changes * Minor change * only add progressing condition when something is really happening to the domain * cleanup * populate state and healht when needed * Changes for OWLS-82011 to reflect introspector status in domain status * change method name * Code refactoring * cleanup debug message * Remove unused method * Added check to terminate fiber when intro job fails with BackoffLimitExceeded (which happens when intro job times out due to DeadlineExceeded). * implement review comment suggestions * added unit test for introspector pod phase failed * Adjust access * Work in progress * debug * debug * more debugging * remove debugging * remove debugging * cleanup * Fix patchPod handling and change HashMap to ConcurrentHashMap * Add ProgressingStep on scaling down * Address review comments * Review comment * Corrections * Update the external client FAQ to discuss 'unknown host' handling. Update the domain-resource doc to try make it easier to read. * review and edit * delete extraneous file * minor doc tweaks * Backport improvements to ImageBuilders * temporarily adding chown option to imagetool command * Update doc. contents * update tests after image and WIT updates * fixing the mii domain and sample test after images have been updated * Modified group name used to copy file to server pod jenkins-ignore * Chagnes from PR 1906 * Changes to prevent handing during tests * changes for OWLS-83431 * changes for owls-83431 * Chnages to address PR review comments * changes to suppresserror from synchronous call * cleanup changes based on PR comments * changes to fix javadoc and variable name * Last changes for single server schedule support * Change log Co-authored-by: Johnny Shum <cbdream99@gmail.com> Co-authored-by: ANIL.KEDIA@ORACLE.COM <anil.kedia@oracle.com> Co-authored-by: Tom Barnes <tom.barnes@oracle.com> Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> Co-authored-by: doxiao <dongbo.xiao@oracle.com> Co-authored-by: BHAVANI.RAVICHANDRAN@ORACLE.COM <bravicha@bravicha-1.subnet1ad1phx.devweblogicphx.oraclevcn.com> Co-authored-by: huiling_zhao <huiling.zhao@oracle.com>
1 parent ee2e11d commit 05b9de1

File tree

71 files changed

+2560
-1235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2560
-1235
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Oracle is finding ways for organizations using WebLogic Server to run important
1717
The fastest way to experience the operator is to follow the [Quick Start guide](https://oracle.github.io/weblogic-kubernetes-operator/quickstart/), or you can peruse our [documentation](https://oracle.github.io/weblogic-kubernetes-operator), read our [blogs](https://blogs.oracle.com/weblogicserver/updated-weblogic-kubernetes-support-with-operator-20), or try out the [samples](https://oracle.github.io/weblogic-kubernetes-operator/samples/).
1818

1919
***
20-
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.1.
21-
This release was published on August 13, 2020.
20+
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.2.
21+
This release was published on September 15, 2020.
2222
***
2323

2424
# Documentation

buildDockerImage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ while getopts "t:" optname; do
3333
esac
3434
done
3535

36-
IMAGE_NAME=${name:-oracle/weblogic-kubernetes-operator:3.0.1}
36+
IMAGE_NAME=${name:-oracle/weblogic-kubernetes-operator:3.0.2}
3737
SCRIPTPATH="$( cd "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"
3838

3939
# Proxy settings

buildtime-reports/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<artifactId>operator-parent</artifactId>
1010
<groupId>oracle.kubernetes</groupId>
11-
<version>3.0.1</version>
11+
<version>3.0.2</version>
1212
</parent>
1313

1414
<artifactId>buildtime-reports</artifactId>

docs-source/content/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ using the operator to deploy and run a WebLogic domain container-packaged web ap
2323
***
2424
#### Current production release
2525

26-
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.1.
27-
This release was published on August 13, 2020. See the operator prerequisites and supported environments [here]({{< relref "/userguide/introduction/introduction#operator-prerequisites" >}}).
26+
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.2.
27+
This release was published on September 15, 2020. See the operator prerequisites and supported environments [here]({{< relref "/userguide/introduction/introduction#operator-prerequisites" >}}).
2828

2929
This release introduces _non-backward compatible_ changes; however, operators using this release can be run in the same
3030
Kubernetes cluster as operators using the 2.6.0 version allowing for staged migration. You can replace a 2.6.0 operator with a 3.x operator without needing to recreate any existing domains; however, you must delete the 2.6.0 Helm release and then install the 3.x version rather than using a Helm upgrade. When the 3.x operator starts, it will roll any running WebLogic Server instances

docs-source/content/faq/external-clients.md

Lines changed: 75 additions & 20 deletions
Large diffs are not rendered by default.

docs-source/content/faq/namespace-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ elkIntegrationEnabled: false
4040
externalDebugHttpPort: 30999
4141
externalRestEnabled: false
4242
externalRestHttpsPort: 31001
43-
image: oracle/weblogic-kubernetes-operator:3.0.1
43+
image: oracle/weblogic-kubernetes-operator:3.0.2
4444
imagePullPolicy: IfNotPresent
4545
internalDebugHttpPort: 30999
4646
istioEnabled: false

docs-source/content/quickstart/get-images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and accept the license agreement for the [WebLogic Server image](https://hub.doc
1919
1. Pull the operator image:
2020

2121
```bash
22-
$ docker pull oracle/weblogic-kubernetes-operator:3.0.1
22+
$ docker pull oracle/weblogic-kubernetes-operator:3.0.2
2323
```
2424

2525
1. Pull the Traefik load balancer image:

docs-source/content/quickstart/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $ helm install traefik-operator stable/traefik \
7171
```bash
7272
$ helm install sample-weblogic-operator kubernetes/charts/weblogic-operator \
7373
--namespace sample-weblogic-operator-ns \
74-
--set image=oracle/weblogic-kubernetes-operator:3.0.1 \
74+
--set image=oracle/weblogic-kubernetes-operator:3.0.2 \
7575
--set serviceAccount=sample-weblogic-operator-sa \
7676
--set "domainNamespaces={}" \
7777
--wait

docs-source/content/release-notes.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ date: 2019-03-15T11:25:28-04:00
44
draft: false
55
---
66

7-
### Recent changes
7+
### Releases
88

9-
| Date | Version | Introduces backward incompatibilities | Change |
9+
| Date | Version | Introduces backward incompatibilities? | Changes |
1010
| --- | --- | --- | --- |
11+
| September 15, 2020 | v3.0.2 | no | This release contains several fixes, including improvements to log rotation and a fix that avoids unnecessarily updating the domain status. |
1112
| August 13, 2020 | v3.0.1 | no | Fixed an issue preventing the REST interface from working after a Helm upgrade. Helm 3.1.3+ now required. |
1213
| July 17, 2020 | v3.0.0 | yes | Adds Model in Image feature and support for applying topology and configuration override changes without downtime. Removal of support for Helm 2.x. Operator performance improvements to manage many domains in the same Kubernetes cluster. |
1314
| June 22, 2020 | v2.6.0 | no | Kubernetes 1.16, 1.17, and 1.18 support. Removal of support for Kubernetes 1.13 and earlier. This release can be run in the same cluster with operators of either 2.5.0 and below, or with 3.x providing an upgrade path. Certified support of Oracle Linux Cloud Native Environment (OLCNE) 1.1 with Kubernetes 1.17.0.
@@ -26,6 +27,22 @@ draft: false
2627
| April 4, 2018 | 0.2 | yes | Many Kubernetes artifact names and labels have changed. Also, the names of generated YAML files for creating a domain's PV and PVC have changed. Because of these changes, customers must recreate their operators and domains.
2728
| March 20, 2018 | | yes | Several files and input parameters have been renamed. This affects how operators and domains are created. It also changes generated Kubernetes artifacts, therefore customers must recreate their operators and domains.
2829

30+
### Change log
31+
32+
#### Operator 3.0.2
33+
34+
* Removed unnecessary duplicated parameter in initialize-internal-operator-identity.sh script ([#1867](https://github.com/oracle/weblogic-kubernetes-operator/pull/1867)).
35+
* Support nodeAffinity and nodeSelector for the operator in its Helm chart ([#1869](https://github.com/oracle/weblogic-kubernetes-operator/pull/1869)).
36+
* Log file rotation enhancements and documentation ([#1872](https://github.com/oracle/weblogic-kubernetes-operator/pull/1872), [#1827](https://github.com/oracle/weblogic-kubernetes-operator/pull/1827)).
37+
* Production support for the NGINX ingress controller ([#1878](https://github.com/oracle/weblogic-kubernetes-operator/pull/1878)).
38+
* Prevent unnecessary changes to Domain status that were causing churn to the resourceVersion ([#1879](https://github.com/oracle/weblogic-kubernetes-operator/pull/1879)).
39+
* Better reflect introspector status in the Domain status ([#1832](https://github.com/oracle/weblogic-kubernetes-operator/pull/1832)).
40+
* Create each pod after any previous pods have been scheduled to allow for correct anti-affinity behavior ([#1855](https://github.com/oracle/weblogic-kubernetes-operator/pull/1855)).
41+
42+
#### Operator 3.0.1
43+
44+
* Resolved an issue where a Helm upgrade was incorrectly removing the operator's private key thereby disabling the operator's REST interface ([#1846](https://github.com/oracle/weblogic-kubernetes-operator/pull/1846)).
45+
2946
### Known issues
3047

3148
| Issue | Description |

docs-source/content/userguide/introduction/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The operator is packaged in a [Docker image](https://hub.docker.com/r/oracle/web
1818

1919
```
2020
$ docker login
21-
$ docker pull oracle/weblogic-kubernetes-operator:3.0.1
21+
$ docker pull oracle/weblogic-kubernetes-operator:3.0.2
2222
```
2323

2424
For more details on acquiring the operator image and prerequisites for installing the operator, consult the [Quick Start guide]({{< relref "/quickstart/_index.md" >}}).

docs-source/content/userguide/introduction/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Detailed instructions are available [here]({{< relref "/userguide/managing-opera
1616

1717
### Operator prerequisites
1818

19-
For the current production release 3.0.1:
19+
For the current production release 3.0.2:
2020

2121
* Kubernetes 1.14.8+, 1.15.7+, 1.16.0+, 1.17.0+, and 1.18.0+ (check with `kubectl version`).
2222
* Flannel networking v0.9.1-amd64 or later (check with `docker images | grep flannel`) *or* OpenShift SDN on OpenShift 4.3 systems.

docs-source/content/userguide/managing-domains/_index.md

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: "Important considerations for WebLogic domains in Kubernetes."
1313
* [About the Domain resource](#about-the-domain-resource)
1414
* [Managing life cycle operations](#managing-life-cycle-operations)
1515
* [Scaling clusters](#scaling-clusters)
16+
* [Log files](#log-files)
1617

1718
#### Important considerations for WebLogic domains in Kubernetes
1819

@@ -32,9 +33,10 @@ Be aware of the following important considerations for WebLogic domains running
3233
[WebLogic domain in Docker image protection]({{<relref "/security/domain-security/image-protection#weblogic-domain-in-docker-image-protection">}}).
3334
{{% /notice %}}
3435

35-
* _Log File Locations:_ The operator can automatically override WebLogic domain and server log locations using
36-
configuration overrides. This occurs if the Domain `logHomeEnabled` field is explicitly set to `true`, or if `logHomeEnabled` isn't set
36+
* _Log File Locations:_ The operator can automatically override WebLogic Server, domain, and introspector log locations.
37+
This occurs if the Domain `logHomeEnabled` field is explicitly set to `true`, or if `logHomeEnabled` isn't set
3738
and `domainHomeSourceType` is set to `PersistentVolume`. When overriding, the log location will be the location specified by the `logHome` setting.
39+
For additional log file tuning information, see [Log files](#log-files).
3840

3941
* _Listen Address Overrides:_ The operator will automatically override all WebLogic domain default,
4042
SSL, admin, or custom channel listen addresses (using situational configuration overrides). These will become `domainUID` followed by a
@@ -132,3 +134,65 @@ The operator let's you initiate scaling of clusters in various ways:
132134
* [Using the operator's REST APIs]({{< relref "/userguide/managing-domains/domain-lifecycle/scaling#calling-the-operators-rest-scale-api" >}})
133135
* [Using WLDF policies]({{< relref "/userguide/managing-domains/domain-lifecycle/scaling#using-a-wldf-policy-rule-and-script-action-to-call-the-operators-rest-scale-api" >}})
134136
* [Using a Prometheus action]({{< relref "/userguide/managing-domains/domain-lifecycle/scaling#using-a-prometheus-alert-action-to-call-the-operators-rest-scale-api" >}})
137+
138+
### Log files
139+
140+
The operator can automatically override WebLogic Server, domain, and introspector `.log` and `.out` locations.
141+
This occurs if the Domain `logHomeEnabled` field is explicitly set to `true`, or if `logHomeEnabled` isn't set
142+
and `domainHomeSourceType` is set to `PersistentVolume`. When overriding, the log location will be the location specified by the `logHome` setting.
143+
144+
If you want to fine tune the `.log` and `.out` rotation behavior for WebLogic Servers and domains, then
145+
you can update the related `Log MBean` in your WebLogic configuration. Alternatively, for WebLogic
146+
Servers, you can set corresponding system properties in `JAVA_OPTIONS`:
147+
148+
- Here are some WLST offline examples for creating and accessing commonly tuned Log MBeans:
149+
150+
```bash
151+
# domain log
152+
cd('/')
153+
create(dname,'Log')
154+
cd('/Log/' + dname);
155+
156+
# configured server log for a server named 'sname'
157+
cd('/Servers/' + sname)
158+
create(sname, 'Log')
159+
cd('/Servers/' + sname + '/Log/' + sname)
160+
161+
# templated (dynamic) server log for a template named 'tname'
162+
cd('/ServerTemplates/' + tname)
163+
create(tname,'Log')
164+
cd('/ServerTemplates/' + tname + '/Log/' + tname)
165+
```
166+
167+
- Here is sample WLST offline code for commonly tuned Log MBean attributes:
168+
169+
```bash
170+
# minimum log file size before rotation in kilobytes
171+
set('FileMinSize', 1000)
172+
173+
# maximum number of rotated files
174+
set('FileCount', 10)
175+
176+
# set to true to rotate file every time on startup (instead of append)
177+
set('RotateLogOnStartup', 'true')
178+
```
179+
180+
- Here are the defaults for commonly tuned Log MBean attributes:
181+
182+
| Log MBean Attribute | Production Mode Default | Development Mode Default |
183+
| --------- | ----------------------- | ------------------------ |
184+
| FileMinSize (in kilobytes) | 5000 | 500 |
185+
| FileCount | 100 | 7 |
186+
| RotateLogOnStartup | false | true |
187+
188+
- For WebLogic Server `.log` and `.out` files (including both dynamic and configured servers), you can alternatively
189+
set logging attributes using system properties that start with `weblogic.log.`
190+
and that end with the corresponding Log MBean attribute name.
191+
192+
For example, you can include `-Dweblogic.log.FileMinSize=1000 -Dweblogic.log.FileCount=10 -Dweblogic.log.RotateLogOnStartup=true` in `domain.spec.serverPod.env.name.JAVA_OPTIONS` to set the behavior for all WebLogic Servers in your domain. For information about setting `JAVA_OPTIONS`, see [Domain resource]({{< relref "/userguide/managing-domains/domain-resource/_index.md#jvm-memory-and-java-option-environment-variables" >}}).
193+
194+
{{% notice warning %}}
195+
Kubernetes stores pod logs on each of its nodes, and, depending on the Kubernetes implementation, extra steps may be necessary to limit their disk space usage.
196+
For more information, see [Kubernetes Logging Architecture](https://kubernetes.io/docs/concepts/cluster-administration/logging/).
197+
{{% /notice %}}
198+

docs-source/content/userguide/managing-domains/domain-lifecycle/restarting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ d. Update the `image` field of the Domain YAML file, specifying the new image na
188188
```
189189
domain:
190190
spec:
191-
image: oracle/weblogic-updated:3.0.1
191+
image: oracle/weblogic-updated:3.0.2
192192
```
193193
e. The operator will now initiate a rolling restart, which will apply the updated image, for all the servers in the domain.
194194

0 commit comments

Comments
 (0)