Skip to content

podman hangs with deadlock #1574

@rhjhunt

Description

@rhjhunt

Is this a BUG REPORT or FEATURE REQUEST?:

[//]: # Uncomment only one, leave it on its own line:

kind bug

[//]: # kind feature

Description

podman deadlocks on /var/lib/containers/storage/storage.lock

-bash-4.2$ ps -ef | grep podman
username   5343 29530  0 20:23 pts/1    00:00:00 grep --color=auto podman
root     13804     1  0 Sep27 ?        00:00:08 /usr/bin/podman --root /var/lib/containers/storage --runroot /var/run/containers/storage --log-level error --cgroup-manager cgroupfs --tmpdir /var/run/libpod --storage-driver overlay container cleanup 62bedf7f6d3a55020e7f314f401769281ef5b16c222d1753b0281590b48f63bb
root     14038 13701  0 Sep27 ?        00:02:25 /usr/bin/podman wait container_1537988606812_0012_01_000005
root     15355     1  0 Sep27 ?        00:00:07 /usr/bin/podman --root /var/lib/containers/storage --runroot /var/run/containers/storage --log-level error --cgroup-manager cgroupfs --tmpdir /var/run/libpod --storage-driver overlay container cleanup cf2ac277eb9a5b85e1b78ef088a5fff8ae41ac29639d27f77ade427211378d87
root     15359     1  0 Sep27 ?        00:00:07 /usr/bin/podman --root /var/lib/containers/storage --runroot /var/run/containers/storage --log-level error --cgroup-manager cgroupfs --tmpdir /var/run/libpod --storage-driver overlay container cleanup 79181a9932ae72ae4fe7b8377ab92cc57d1651dcd7e47dca4596b29b3787e934
root     15543 15298  0 Sep27 ?        00:01:51 /usr/bin/podman wait container_1537988606812_0012_01_000011
root     15546     1  0 Sep27 ?        00:00:08 /usr/bin/podman --root /var/lib/containers/storage --runroot /var/run/containers/storage --log-level error --cgroup-manager cgroupfs --tmpdir /var/run/libpod --storage-driver overlay container cleanup eb569521b8838b1336e6a23428c3f033ee981f7113d5ccc50967f0775dfae5dc
root     15564 15297  0 Sep27 ?        00:01:56 /usr/bin/podman wait container_1537988606812_0012_01_000017
root     15769 15404  0 Sep27 ?        00:01:56 /usr/bin/podman wait container_1537988606812_0012_01_000016
root     22399  9698  0 08:01 ?        00:00:00 [podman] <defunct>

Steps to reproduce the issue:

  1. Launch several containers at the same time

  2. wait for pod man to hang

Output of podman info:

$ sudo podman info
host:
  Conmon:
    package: podman-0.9.4-1537914470.gitf4e2810f.el7.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.12.0-dev, commit: 51dcc3ad101da1c64efd9d49a1a0911242beac29-dirty'
  MemFree: 9827209216
  MemTotal: 16557703168
  OCIRuntime:
    package: runc-1.0.0-37.rc5.dev.gitad0f525.el7.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.0'
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 4
  hostname: host01.example.com
  kernel: 3.10.0-862.9.1.el7.x86_64
  os: linux
  uptime: 702h 19m 22.38s (Approximately 29.25 days)
insecure registries:
  registries: []
registries:
  registries:
  - registry.access.redhat.com
store:
  ContainerStore:
    number: 5
  GraphDriverName: overlay
  GraphOptions:
  - overlay.override_kernel_check=true
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
  ImageStore:
    number: 2
  RunRoot: /var/run/containers/storage

Attaching a file with the strace and pstack since it is large.

podman_deadlock_modified.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions