Open mgrabovsky opened 3 years ago
There are a number of issues. I tried this again and ran into other issues, I no longer see the above error with vmlinux though.
Need rootless podman. This seems to be somewhat a mess but I think this works with latest upstream.
Copying vmcore into container is a problem due to size of vmcores (often 100GB or more).
Need both local users and ldap users to be able to use podman rootless. There's some issues with this depending on which version but I think this is fixed in upstream (see https://bugzilla.redhat.com/show_bug.cgi?id=2092629 and related bugs such as https://bugzilla.redhat.com/show_bug.cgi?id=2063750 and https://bugzilla.redhat.com/show_bug.cgi?id=2068088)
Container storage should be setup for non-NFS use (see /etc/containers/storage.conf
Issues with 'AuthGroup' where tasks would fail with the following error in the retrace_log
[2022-10-11 10:50:01] [E] Task failed: Unable to build podman container: time="2022-10-11T10:50:01-04:00" level=error msg="running `/usr/bin/newuidmap 1155992 0 174 1 1 231072 65536`: newuidmap: Target process 123456 is owned by a different user: uid:111 pw_uid:111 st_uid:111, gid:5555 pw_gid:111 st_gid:5555\n"
Could not find base container image to build the container
Temporary fix: This patch fixed it for me:
@@ -922,7 +922,7 @@ class RetraceWorker:
try:
with (savedir / RetraceTask.CONTAINERFILE).open("w") as cntfile:
Could not obtain kernel-debuginfo package
@@ -931,7 +931,7 @@ class RetraceWorker:
"shadow-utils && dnf clean all\n")
cntfile.write("RUN dnf "
"--assumeyes "
After all that I still get this in the log:
[2022-10-13 04:19:04] [E] time="2022-10-13T04:19:04-04:00" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly"
- Copying vmcore into container is a problem due to size of vmcores (often 100GB or more).
I don't think we need to copy the vmcore but we can use "-v" to bind mount in the vmcore and vmlinux files and any needed paths.
- Issues with 'AuthGroup' where tasks would fail with the following error in the retrace_log [2022-10-11 10:50:01] [E] Task failed: Unable to build podman container: time="2022-10-11T10:50:01-04:00" level=error msg="running
/usr/bin/newuidmap 1155992 0 174 1 1 231072 65536
: newuidmap: Target process 123456 is owned by a different user: uid:111 pw_uid:111 st_uid:111, gid:5555 pw_gid:111 st_gid:5555\n"
I had AuthGroup set in /etc/retrace-server/retrace-server.conf so that is why I got the above error. I needed to update the 'retrace' group in /etc/password as follows and this fixed the above. I wonder if that should be a standard procedure for installs when AuthGroup is used?
# usermod -g my-auth-group retrace
# systemctl restart httpd
- Issues with 'AuthGroup' where tasks would fail with the following error in the retrace_log [2022-10-11 10:50:01] [E] Task failed: Unable to build podman container: time="2022-10-11T10:50:01-04:00" level=error msg="running
/usr/bin/newuidmap 1155992 0 174 1 1 231072 65536
: newuidmap: Target process 123456 is owned by a different user: uid:111 pw_uid:111 st_uid:111, gid:5555 pw_gid:111 st_gid:5555\n"I had AuthGroup set in /etc/retrace-server/retrace-server.conf so that is why I got the above error. I needed to update the 'retrace' group in /etc/password as follows and this fixed the above. I wonder if that should be a standard procedure for installs when AuthGroup is used?
# usermod -g my-auth-group retrace # systemctl restart httpd
After the above I'm getting the following error:
[2022-10-17 13:11:52] [E] Task failed: Unable to build podman container: Error: failed to mount overlay for metacopy check with "" options: permission denied
Interactively retracing vmcores in Podman fails with the message
Reported by @DaveWysochanskiRH.