Skip to content

Commit 46fb69f

Browse files
committed
fixing domainuid for sessionmigration test
2 parents 83960c0 + b6cc9ea commit 46fb69f

File tree

680 files changed

+140994
-31597
lines changed

Some content is hidden

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

680 files changed

+140994
-31597
lines changed

docs-source/content/developerguide/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $ mvn fmt:format
2727
To build the Javadoc for the operator, issue the following command:
2828

2929
```
30-
$ mvn javadoc:javadoc
30+
$ mvn javadoc:aggregate
3131
```
3232

3333
The Javadoc is also available in the GitHub repository [here](https://oracle.github.io/weblogic-kubernetes-operator/apidocs/index.html).

docs-source/content/recent-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This document tracks recent changes to the operator, especially ones that introd
1010

1111
| Date | Version | Introduces backward incompatibilities | Change |
1212
| --- | --- | --- | --- |
13-
| TBD | v2.2 | no | Added support for FMW Infrastructure domains. WebLogic server instances are now gracefully shutdown by default and shutdown options are configurable. Operator is now built and runs on JDK 11.
13+
| May 6, 2019 | v2.2 | no | Added support for FMW Infrastructure domains. WebLogic Server instances are now gracefully shut down by default and shutdown options are configurable. Operator is now built and runs on JDK 11.
1414
| April 4, 2019 | v2.1 | no | Customers can add init and sidecar containers to generated pods.
1515
| March 4, 2019 | v2.0.1 | no | OpenShift support is now certified. Many bug fixes, including fixes for configuration overrides, cluster services, and domain status processing.
1616
| January 24, 2019 | v2.0 | yes; not compatible with 1.x releases, but is compatible with 2.0-rc2. | Final version numbers and documentation updates.

docs-source/content/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ draft: false
88

99
| Date | Version | Introduces backward incompatibilities | Change |
1010
| --- | --- | --- | --- |
11-
| TBD | v2.2 | no | Added support for FMW Infrastructure domains. WebLogic Server instances are now gracefully shutdown by default and shutdown options are configurable. Operator is now built and runs on JDK 11.
11+
| May 6, 2019 | v2.2 | no | Added support for FMW Infrastructure domains. WebLogic Server instances are now gracefully shut down by default and shutdown options are configurable. Operator is now built and runs on JDK 11.
1212
| April 4, 2019 | v2.1 | no | Customers can add init and sidecar containers to generated pods.
1313
| March 4, 2019 | v2.0.1 | no | OpenShift support is now certified. Many bug fixes, including fixes for configuration overrides, cluster services, and domain status processing.
1414
| January 24, 2019 | v2.0 | yes; not compatible with 1.x releases, but is compatible with 2.0-rc2. | Final version numbers and documentation updates.

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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ and which servers should be restarted. To start, stop, or restart servers, modif
1616
* [Rolling restarts](#rolling-restarts)
1717
* [Common restarting scenarios](#common-restarting-scenarios)
1818

19-
There are properties on the domain resource that specify which servers should be running
20-
and which servers should be restarted. To start, stop, or restart servers, modify these properties on the domain resource
19+
There are properties on the domain resource that specify which servers should be running,
20+
which servers should be restarted and the desired initial state. To start, stop, or restart servers, modify these properties on the domain resource
2121
(for example, by using `kubectl` or the Kubernetes REST API). The operator will notice the changes and apply them. Beginning,
2222
with operator version 2.2, there are now properties to control server shutdown handling, such as whether the shutdown
2323
will be graceful, the timeout, and if in-flight sessions are given the opportunity to complete.
@@ -69,6 +69,16 @@ Servers configured as `ALWAYS` count toward the cluster's `replicas` count.
6969
If more servers are configured as `ALWAYS` than the cluster's `replicas` count, they will all be started and the `replicas` count will be ignored.
7070
{{% /notice %}}
7171

72+
### Server start state
73+
74+
For some use cases, such as an externally managed zero downtime patching (ZDP), it may be necessary to start WebLogic Server
75+
so that at the end of its startup process, the server is in an administrative state. This can be achieved using the `serverStartState`
76+
property, which is available at domain, cluster, and server levels. When `serverStartState` is set to `ADMIN`, then servers will
77+
progress only to the administrative state. You could then use the WebLogic console, REST API, or a WLST script to make any necessary
78+
updates before advancing the server to the running state.
79+
80+
Changes to the `serverStartState` property do not affect already started servers.
81+
7282
### Common starting and stopping scenarios
7383

7484
#### Normal running state
@@ -240,7 +250,6 @@ The operator will restart servers when any of the follow properties on the domai
240250
* `readinessProbe`
241251
* `resources`
242252
* `restartVersion`
243-
* `serverStartState`
244253
* `volumes`
245254
* `volumeMounts`
246255

@@ -251,6 +260,11 @@ the domain resource will cause neither a restart nor a patch. It is possible to
251260
such a label or annotation by modifying the `restartVersion`.
252261
{{% /notice %}}
253262

263+
{{% notice note %}}
264+
Prior to version 2.2, the operator incorrectly restarted servers when the `serverStartState` property was changed. Now,
265+
this property has no affect on already running servers.
266+
{{% /notice %}}
267+
254268
### Rolling restarts
255269

256270
Clustered servers that need to be restarted are gradually restarted (for example, `rolling restarted`) so that the cluster is not taken out of service and in-flight work can be migrated to other servers in the cluster.

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,41 @@ Persistent volumes can point to different storage locations, for example NFS ser
2222

2323
The persistent volume for the domain must be created using the appropriate tools before running the script to create the domain. In the simplest case, namely the `HOST_PATH` provider, this means creating a directory on the Kubernetes master and ensuring that it has the correct permissions:
2424

25-
```
25+
```bash
2626
$ mkdir -m 777 -p /path/to/domain1PersistentVolume
2727
```
2828

2929
**Note regarding NFS**: In the current GA version, the OCI Container Engine for Kubernetes supports network block storage that can be shared across nodes with access permission RWOnce (meaning that only one can write, others can read only). At this time, the WebLogic on Kubernetes domain created by the WebLogic Server Kubernetes Operator, requires a shared file system to store the WebLogic domain configuration, which MUST be accessible from all the pods across the nodes. As a workaround, you need to install an NFS server on one node and share the file system across all the nodes.
3030

3131
Currently, we recommend that you use NFS version 3.0 for running WebLogic Server on OCI Container Engine for Kubernetes. During certification, we found that when using NFS 4.0, the servers in the WebLogic domain went into a failed state intermittently. Because multiple threads use NFS (default store, diagnostics store, Node Manager, logging, and `domain_home`), there are issues when accessing the file store. These issues are removed by changing the NFS to version 3.0.
3232

33+
#### Persistent volume GID annotation
34+
35+
The `HOST_PATH` directory permissions can be made more secure by using a Kubernetes annotation on the
36+
persistent volume that provides the group identifier (GID) which will be added to pods using the persistent volume.
37+
38+
For example, if the GID of the directory is `6789`, then the directory can be updated to remove permissions
39+
other than for the user and group along with the persistent volume being annotated with the specified GID:
40+
41+
```bash
42+
$ chmod 770 /path/to/domain1PersistentVolume
43+
$ kubectl annotate pv domain1-weblogic-sample-pv pv.beta.kubernetes.io/gid=6789
44+
```
45+
46+
After the domain is created and servers are running, the group ownership of the persistent volume files
47+
can be updated to the specified GID which will provide read access to the group members. Typically,
48+
files created from a pod onto the persistent volume will have UID `1000` and GID `1000` which is the
49+
`oracle` user from the WebLogic Docker image.
50+
51+
An example of updating the group ownership on the persistent volume would be as follows:
52+
53+
```bash
54+
$ cd /path/to/domain1PersistentVolume
55+
$ sudo chgrp 6789 applications domains logs stores
56+
$ sudo chgrp -R 6789 domains/
57+
$ sudo chgrp -R 6789 logs/
58+
```
59+
3360
### YAML files
3461

3562
Persistent volumes and claims are described in YAML files. For each persistent volume, you should create one persistent volume YAML file and one persistent volume claim YAML file. In the example below, you will find two YAML templates, one for the volume and one for the claim. As stated above, they either can be dedicated to a specific domain, or shared across multiple domains. For the use cases where a volume will be dedicated to a particular domain, it is a best practice to label it with `weblogic.domainUID=[domain name]`. This makes it easy to search for, and clean up resources associated with that particular domain.

0 commit comments

Comments
 (0)