Skip to content

Commit 71bbdd0

Browse files
fix format
1 parent 3c27048 commit 71bbdd0

File tree

1 file changed

+16
-18
lines changed
  • kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv

1 file changed

+16
-18
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -389,17 +389,15 @@ $ kubectl create -f delete-domain-job.yaml
389389
1. Message: `status on iteration 20 of 20
390390
pod domain1-create-weblogic-sample-domain-job-4qwt2 status is Pending
391391
The create domain job is not showing status completed after waiting 300 seconds.`
392+
The most likely cause is related to the value of `persistentVolumeClaimName`, defined in `domain-home-on-pv/create-domain-inputs.yaml`. To determine if this is the problem:
392393

393-
The most likely cause is related to the value of `persistentVolumeClaimName`, defined in `domain-home-on-pv/create-domain-inputs.yaml`.
394-
* To determine if this is the problem:
394+
* Execute `kubectl get all --all-namespaces` to find the name of the `create-weblogic-sample-domain-job`.
395+
* Execute `kubectl describe pod <name-of-create-weblogic-sample-domain-job>` to see if there is an event that has text similar to `persistentvolumeclaim "domain1-weblogic-sample-pvc" not found`.
396+
* Find the name of the PVC that was created by executing [create-pv-pvc.sh](../../create-weblogic-domain-pv-pvc/README.md), using `kubectl describe pvc`. It is likely to be `weblogic-sample-pvc`.
395397

396-
* Execute `kubectl get all --all-namespaces` to find the name of the `create-weblogic-sample-domain-job`.
397-
* Execute `kubectl describe pod <name-of-create-weblogic-sample-domain-job>` to see if there is an event that has text similar to `persistentvolumeclaim "domain1-weblogic-sample-pvc" not found`.
398-
* Find the name of the PVC that was created by executing [create-pv-pvc.sh](../../create-weblogic-domain-pv-pvc/README.md), using `kubectl describe pvc`. It is likely to be `weblogic-sample-pvc`.
399-
400-
* Change the value of `persistentVolumeClaimName` to match the name created when you executed [create-pv-pvc.sh](../../create-weblogic-domain-pv-pvc/README.md).
401-
* Rerun the `create-domain.sh` script with the same arguments as you did before.
402-
* Verify that the operator is deployed. Use the command:
398+
* Change the value of `persistentVolumeClaimName` to match the name created when you executed [create-pv-pvc.sh](../../create-weblogic-domain-pv-pvc/README.md).
399+
* Rerun the `create-domain.sh` script with the same arguments as you did before.
400+
* Verify that the operator is deployed. Use the command:
403401
```
404402
kubectl get all --all-namespaces
405403
```
@@ -415,23 +413,23 @@ The most common cause is a poor choice of value for `weblogicDomainStoragePath`
415413
```
416414
create-pv-pvc.sh
417415
```
418-
You should [delete the resources for your sample domain](../../delete-domain/README.md), correct the value in that file, and rerun the commands to create the PV/PVC and the credential before you attempt to rerun:
416+
You should [delete the resources for your sample domain](../../delete-domain/README.md), correct the value in that file, and rerun the commands to create the PV/PVC and the credential before you attempt to rerun:
419417
```
420418
create-domain.sh
421419
```
422-
A correct value for `weblogicDomainStoragePath` will meet the following requirements:
420+
A correct value for `weblogicDomainStoragePath` will meet the following requirements:
423421

424422
* Must be the name of a directory.
425423
* The directory must be world writable.
426424

427-
Optionally, follow these steps to tighten permissions on the named directory after you run the sample the first time:
425+
Optionally, follow these steps to tighten permissions on the named directory after you run the sample the first time:
428426

429-
* Become the root user.
430-
* `ls -nd $value-of-weblogicDomainStoragePath`
431-
* Note the values of the third and fourth field of the output.
432-
* `chown $third-field:$fourth-field $value-of-weblogicDomainStoragePath`
433-
* `chmod 755 $value-of-weblogicDomainStoragePath`
434-
* Return to your normal user ID.
427+
* Become the root user.
428+
* `ls -nd $value-of-weblogicDomainStoragePath`
429+
* Note the values of the third and fourth field of the output.
430+
* `chown $third-field:$fourth-field $value-of-weblogicDomainStoragePath`
431+
* `chmod 755 $value-of-weblogicDomainStoragePath`
432+
* Return to your normal user ID.
435433

436434
3. Message: `ERROR: The create domain job will not overwrite an existing domain. The domain folder /shared/domains/domain1 already exists`
437435
You will see this message if the directory `domains/domain1` exists in the directory named as the value of `weblogicDomainStoragePath` in `create-pv-pvc-inputs.yaml`. For example, if the value of `weblogicDomainStoragePath` is `/tmp/wls-op-4-k8s`, you would need to remove (or move) `/tmp/wls-op-4-k8s/domains/domain1`.

0 commit comments

Comments
 (0)