Skip to content

Commit a41a1ea

Browse files
add doc for applying patched images (#2318)
1 parent 4af70fd commit a41a1ea

File tree

2 files changed

+63
-4
lines changed

2 files changed

+63
-4
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
+++
2+
title = "Apply patched binary images to a running domain"
3+
date = 2019-02-23T16:43:45-05:00
4+
weight = 9
5+
pre = "<b> </b>"
6+
+++
7+
8+
9+
When updating WebLogic binaries of a running domain in Kubernetes with a patched container image,
10+
the operator applies the update in a Zero Downtime (ZDT) fashion. The procedure for the operator
11+
to update the running domain differs depending on the [domain home source type]({{< relref "/userguide/managing-domains/choosing-a-model/_index.md" >}}).
12+
13+
For Domain in PV, the operator can apply the update to the running domain without modifying the patched container image. For Model in Image (MII) and Domain in Image,
14+
before the operator can apply the update, the patched container images need to be modified to add the domain home or a
15+
WebLogic Deploy Tooling (WDT) model and archive. You use the WebLogic Image Tool (WIT) to update or rebase a patched
16+
container image with a WDT model or with a domain inside of the image.
17+
18+
In all three domain home source types, you edit the [Domain Resource]({{< relref "/userguide/managing-domains/domain-resource#domain-resource-attribute-references" >}})
19+
to inform the operator of the name of the new patched image so that it can manage the update of the WebLogic domain.
20+
21+
##### Domain in PV
22+
23+
Edit the Domain Resource image reference with the new image name/tag (for example, `oracle/weblogic:12.2.1.4-patched`).
24+
Then, the operator performs a rolling restart of the WebLogic domain to update the Oracle Home of the servers.
25+
26+
##### Model in Image
27+
Use WIT [Update Image](https://github.com/oracle/weblogic-image-tool/blob/master/site/update-image.md) to extend patched container images with a WDT model and application archive file.
28+
Then, the operator performs a rolling update of the domain, updating the ORACLE HOME of each server pod in a ZDT fashion.
29+
30+
For example:
31+
32+
Update an image, `oracle/weblogic:12.2.1.4-patched`, to create an MII image tagged `mydomain:v2`,
33+
which includes a WDT model file, `./wdt/my_domain.yaml`, and a WDT archive, `./wdt/my_domain.zip`.
34+
35+
```shell
36+
$imagetool update --fromImage oracle/weblogic:12.2.1.4-patched --wdtModelOnly
37+
--tag mydomain:v2 --wdtArchive ./wdt/my_domain.zip --wdtModel ./wdt/my_domain.yaml --wdtVersion latest
38+
```
39+
40+
Then, edit the Domain Resource image reference with the new image name/tag (`mydomain:2`).
41+
42+
##### Domain in Image
43+
Use WIT [Rebase Image](https://github.com/oracle/weblogic-image-tool/blob/master/site/rebase-image.md) to update the Oracle Home
44+
for an existing domain image using the patched Oracle Home from a patched container image. Then, the operator performs a rolling update
45+
of the domain, updating the Oracle Home of each server pod in a ZDT fashion.
46+
47+
For example:
48+
49+
WIT copies the domain from the source image, `mydomain:v1`, to a new image, `mydomain:v2`, based on a target
50+
image named `oracle/weblogic:12.2.1.4-patched`.
51+
52+
**Note**: On each image, Oracle Home and the JDK must be installed in the same directories.
53+
54+
```shell
55+
$imagetool rebase --tag mydomain:v2 --sourceImage mydomain:v1 --targetImage oracle/weblogic:12.2.1.4-patched
56+
```
57+
58+
Then, edit the Domain Resource image reference with the new image name/tag (`mydomain:2`).

documentation/staging/content/userguide/managing-domains/domain-events.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "Domain events"
33
date = 2020-11-30T16:43:45-05:00
4-
weight = 9
4+
weight = 10
55
pre = "<b> </b>"
66
+++
77

@@ -40,11 +40,12 @@ The operator also generates these event types in the operator's namespace, which
4040
* `StopManagingNamespace`: The operator has stopped managing domains in a namespace.
4141
* `StartManagingNamespaceFailed`: The operator failed to start managing domains in a namespace because it does not have the required privileges.
4242

43+
4344
#### Operator-generated event details
4445

4546
Each operator-generated event contains the following fields:
4647
* `metadata`
47-
* `namespace`: Namespace in which the event is generated.
48+
* `namespace`: Namespace in which the event is generated.
4849
* `labels`: `weblogic.createdByOperator=true` and, for a domain event, `weblogic.domainUID=<domainUID>`.
4950
* `type`: String that describes the type of the event. Possible values are `Normal` or `Warning`.
5051
* `count`: Integer that indicates the number of occurrences of the event. Note that the events are matched by the combination of the `reason`, `involvedObject`, and `message` fields.
@@ -60,7 +61,7 @@ Each operator-generated event contains the following fields:
6061
* `kind`: String that describes the kind of resource this object represents. The value is `Domain` for a domain event, `Namespace` for a namespace event in the domain namespace, or `Pod` for the operator pod.
6162
* `apiVersion`: String that describes the `apiVersion` of the involved object, which is the `apiVersion` of the domain resource, for example, `weblogic.oracle/v8`, for a domain event or unset for a namespace event.
6263
* `UID`: String that describes the unique identifier of the object that is generated by the Kubernetes server.
63-
64+
6465
#### How to access the events
6566

6667
To access the events that are associated with all resources in a particular namespace, run:
@@ -214,7 +215,7 @@ LAST SEEN TYPE REASON OBJECT
214215
5m43s Warning DomainProcessingFailed domain/sample-domain1 Failed to complete processing domain resource sample-domain1 due to: Job sample-domain1-introspector failed due to reason: DeadlineExceeded. ActiveDeadlineSeconds of the job is configured with 120 seconds. The job was started 120 seconds ago. Ensure all domain dependencies have been deployed (any secrets, config-maps, PVs, and PVCs that the domain resource references). Use kubectl describe for the job and its pod for more job failure information. The job may be retried by the operator up to 5 times with longer ActiveDeadlineSeconds value in each subsequent retry. Use tuning parameter domainPresenceFailureRetryMaxCount to configure max retries., the processing will be retried if needed
215216
5m43s Normal SuccessfulDelete job/sample-domain1-introspector Deleted pod: sample-domain1-introspector-d42rf
216217
5m32s Normal Scheduled pod/sample-domain1-introspector-cmxjs Successfully assigned sample-domain1-ns/sample-domain1-introspector-cmxjs to doxiao-1
217-
5m32s Normal SuccessfulCreate job/sample-domain1-introspector Created pod: sample-domain1-introspector-cmxjs
218+
5m32s Normal SuccessfulCreate job/sample-domain1-introspector Created pod: sample-domain1-introspector-cmxjs
218219
4m52s Normal Pulling pod/sample-domain1-introspector-cmxjs Pulling image "domain-home-in-image:12.2.1.4"
219220
4m50s Warning Failed pod/sample-domain1-introspector-cmxjs Failed to pull image "domain-home-in-image:12.2.1.4": rpc error: code = Unknown desc = pull access denied for domain-home-in-image, repository does not exist or may require 'docker login'
220221
4m50s Warning Failed pod/sample-domain1-introspector-cmxjs Error: ErrImagePull

0 commit comments

Comments
 (0)