-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
Description
Describe the bug
When trying to do server dump on OCP 4.14 using OLO and instantO, I don't see the server dump created successfully.
Ran into this issue while running TER - https://github.ibm.com/IBMCloudPak4Apps/WSHE-System-Test/issues/544
root@rhaqueSVT1:/opt/Acme_Automation/gitops# oc get openlibertydump -o wide
NAME STARTED REASON MESSAGE COMPLETED REASON MESSAGE DUMP FILE
get-oldumps True False Error Encountered error while running command: [/bin/sh -c mkdir -p /serviceability/ebuy-olo/ebuy-dbos-5b6577785f-695hd && server dump --archive=/serviceability/ebuy-olo/ebuy-dbos-5b6577785f-695hd/2023-12-12_20:35:22.zip --include=thread,heap,] ; Stderr: mkdir: cannot create directory ‘/serviceability’: Permission denied
; Error: command terminated with exit code 1
Steps to Reproduce
Deploy image with instantOn, with ola having this spec,
spec:
serviceability:
size: 1Gi
Run this yml to get dump:
cat oldump.yml
apiVersion: apps.openliberty.io/v1
kind: OpenLibertyDump
metadata:
name: get-oldumps
spec:
podName: ebuy-dbos-7597589b7f-4whp8
include:
- thread
- heap
Apply this yml file in your env, and when you run this command, it fails with the error above.
root@rhaqueSVT1:/opt/Acme_Automation/gitops# oc apply -f oldump.yml
openlibertydump.apps.openliberty.io/get-oldumps unchanged
root@rhaqueSVT1:/opt/Acme_Automation/gitops# oc get openlibertydump -o wide
Expected behavior
Server dump should be created
Diagnostic information:
product = Open Liberty 23.0.0.12 (wlp-1.0.84.cl231220231127-1901)
wlp.install.dir = /opt/ol/wlp/
server.output.dir = /opt/ol/wlp/output/defaultServer/
java.home = /opt/java/openjdk
java.version = 17.0.9
java.runtime = IBM Semeru Runtime Open Edition (17.0.9+9)
os = Linux (5.14.0-284.30.1.el9_2.x86_64; amd64) (en_US)
Additional context
Add any other context about the problem here.