You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloading the core dump directory works although with a strange directory structure:
$ oc cp --namespace admin2-namespace worker1-debug:/host/var/lib/systemd/coredump/ coredumps
tar: Removing leading `/' from member names
$ tree coredumps
coredumps
└── core.Default
└── x20Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4
However, downloading the file fails trying with various quoting and escape (client is macOS but same problem on Windows):
No quoting:
$ oc cp --namespace admin2-namespace worker1-debug:/host/var/lib/systemd/coredump/core.Default\x20Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4 core.dmp.lz4
tar: Removing leading `/' from member names
tar: /host/var/lib/systemd/coredump/core.Defaultx20Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Single quoting:
$ oc cp --namespace admin2-namespace 'worker1-debug:/host/var/lib/systemd/coredump/core.Default\x20Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4' core.dmp.lz4
tar: Removing leading `/' from member names
tar: /host/var/lib/systemd/coredump/core.Default/x20Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Single quoting and converting \x20 to a space:
$ oc cp --namespace admin2-namespace 'worker1-debug:/host/var/lib/systemd/coredump/core.Default Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4' core.dmp.lz4
tar: Removing leading `/' from member names
tar: /host/var/lib/systemd/coredump/core.Default Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Trying a wildcard:
$ oc cp --namespace admin2-namespace 'worker1-debug:/host/var/lib/systemd/coredump/core.Default*.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4' core.lz4
tar: Removing leading `/' from member names
tar: /host/var/lib/systemd/coredump/core.Default*.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Double quotes doesn't return an error but doesn't download the file:
$ oc cp --namespace admin2-namespace "worker1-debug:/host/var/lib/systemd/coredump/core.Default\x20Executo.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4" core.dmp.lz4
$ ls core.dmp.lz4
ls: core.dmp.lz4: No such file or directory
Moving the file using the debug node works but isn't great because now utilities like coredumpctl think the core dump is gone:
$ oc cp --namespace admin2-namespace 'worker1-debug:/host/var/lib/systemd/coredump/core.DefaultExecuto.1001210000.06a2f2e0997c46b2b50bdac3c25ab072.831941.1677601537000000.lz4' core.dmp.lz4
tar: Removing leading `/' from member names
$ ls -l core.dmp.lz4
-rw-r--r-- 1 kevin wheel 118596950 Feb 28 13:29 core.dmp.lz4
oc version:
$ oc version
Client Version: 4.11.0-0.nightly-2022-05-18-171831
Kustomize Version: v4.5.4
Server Version: 4.11.21
Kubernetes Version: v1.24.6+5658434
The text was updated successfully, but these errors were encountered:
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
This is a continuing and significant impact, particularly for products that commonly have spaces in the thread name. This issue leads to complicated workarounds.
openshift-cibot
added
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
and removed
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
labels
May 30, 2023
A pod took a core dump:
Leave the debug pod up so that we can download the file through the debug pod:
Find the debug pod:
Downloading the core dump directory works although with a strange directory structure:
However, downloading the file fails trying with various quoting and escape (client is macOS but same problem on Windows):
\x20
to a space:Moving the file using the debug node works but isn't great because now utilities like
coredumpctl
think the core dump is gone:Debug node:
Client:
oc
version:The text was updated successfully, but these errors were encountered: