Comment 6 for bug 1892951

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to utilities (master)

Reviewed: https://review.opendev.org/748569
Committed: https://git.openstack.org/cgit/starlingx/utilities/commit/?id=584b23bd1527bb2666952c6427013ce4e7728934
Submitter: Zuul
Branch: master

commit 584b23bd1527bb2666952c6427013ce4e7728934
Author: Michel Thebeau <email address hidden>
Date: Wed Aug 26 16:06:12 2020 -0400

    stx-extensions: use the host's PID for coredump

    systemd-coredump running as root on the host wants to get process
    information using the process' PID, but %p refers to "the PID namespace
    in which the process resides" (the container). systemd-coredump
    coredumps. Dmesg shows "Failed to get EXE" and the segfault (sic
    'systemd-coredum').

    This segfault of systemd-coredump is intermittent, and so on occasion a
    core file may actually be dumped for the containerized process. This
    happens when the %p does not match a process from the host's
    perspective. Dmesg shows "Failed to get COMM..." and "Failed to get
    EXE". This becomes more likely as the PIDs in container's namespace
    become larger - the host's PIDs are more sparse as the numbers increase.

    Use %P instead, "as seen in the initial PID namespace" (host).

    Convert the package to use PKG_GITREVCOUNT for release increment.

    Closes-Bug: 1892951
    Change-Id: Ifa5017d5997d12891893fc97fac4487ddfbbbbb8
    Signed-off-by: Michel Thebeau <email address hidden>