oracle / fmw-kubernetes

Kubernetes Deployment Scripts for Oracle Fusion Middleware products
Universal Permissive License v1.0
28 stars 31 forks source link

facing SecurityContext error while doing "OSB" domainType build in k8s cluster #206

Open kkranthi415 opened 1 week ago

kkranthi415 commented 1 week ago

am facing below error when trying to build "OSB" domain type on AKS cluster(version 1.29.2).

Error: Preparing to update domain... Error: runCmd() failed. Do dumpStack() to see details. com.oracle.cie.domain.script.jython.WLSTException: Error updating domain: 64254: Error occurred in "OPSS Processing" phase execution 64254: Encountered error: SecurityContext:

Steps Followed: create all rcu schemas ahead connecting to oracle 19c Database create needed rcu and admin credentials secrets run domain job using below script:

./create-domain.sh -i create-domain-inputs.yaml -o osb-domain-yaml -e -v

Attached are the "create-domain-inputs.yaml" file and stdout log of domain-job. If I try same domain creation with same database on VM, it went fine with no issues. Somehow facing this issue only on AKS cluster. What would cause this issue?

Any help would be appreciated

Thanks kranthi

senthil13 commented 1 week ago

Hi Experts - I am also facing similar kind of issue. Any help on this will be much appreciated.

ashageetha commented 1 week ago

Are you using SMB for shared domain home in Persistence volume? Issue reported by kkranthi415 was resolved after switching to NFS Share from SMB. Refer to https://oracle.github.io/weblogic-kubernetes-operator/samples/azure-kubernetes-service/domain-on-pv/#create-storage for storage options.

For SOA as well we strongly recommend NFS instead of SMB.

senthil13 commented 1 week ago

Thanks, it was resolved. I am able to build.