Skip to content

ContainerCannotRun: devmapper: Error activating devmapper device for ''...'': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed #17787

Closed

Description

@tnozicka

https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/17751/test_pull_request_origin_extended_conformance_install/4109/

  containerStatuses:
  - containerID: docker://b7f14c8009aee731cd5199c9cce74b5b46912ffd0175c26b3ff73f2139a8212b
    image: openshift/origin-deployer:551f02f
    imageID: docker://sha256:ed03e11e54a7b36812b1a76d0f821357f727b59f3fa56fd290efa5a94fd745a6
    lastState: {}
    name: deployment
    ready: false
    restartCount: 0
    state:
      terminated:
        containerID: docker://b7f14c8009aee731cd5199c9cce74b5b46912ffd0175c26b3ff73f2139a8212b
        exitCode: 128
        finishedAt: 2017-12-14T13:59:13Z
        message: 'devmapper: Error activating devmapper device for ''46d82310de547f7f9e3e87d95f6a5af6420fe4b69ea3e1142bfc86486999e0f0'':
          devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed'
        reason: ContainerCannotRun
        startedAt: 2017-12-14T13:59:13Z

Activity

  1. added
    kind/test-flake
    on Dec 14, 2017
  2. changed the title [-]ContainerCannotRun: devmapper: Error activating devmapper device for ''46d82310de547f7f9e3e87d95f6a5af6420fe4b69ea3e1142bfc86486999e0f0'': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed[/-] [+]ContainerCannotRun: devmapper: Error activating devmapper device for ''...'': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed[/+] on Dec 14, 2017
  3. jwhonce commented on Dec 15, 2017

    @jwhonce
    Contributor

    @rhvgoyal excerpts from logs. Looks like your patch for additional debugging is not in this build.

    Client:
     Version:         1.12.6
     API version:     1.24
     Package version: docker-1.12.6-68.gitec8512b.el7.x86_64
     Go version:      go1.8.3
     Git commit:      ec8512b/1.12.6
     Built:           Thu Nov 16 15:19:17 2017
     OS/Arch:         linux/amd64
    
    Server:
     Version:         1.12.6
     API version:     1.24
     Package version: docker-1.12.6-68.gitec8512b.el7.x86_64
     Go version:      go1.8.3
     Git commit:      ec8512b/1.12.6
     Built:           Thu Nov 16 15:19:17 2017
     OS/Arch:         linux/amd64
    
    Dec 14 13:59:12 ip-172-18-2-50.ec2.internal oci-umount[112015]: umounthook <debug>: prestart container_id:f92f4b74698a rootfs:/var/lib/docker/devicemapper/mnt/451a040fd9afc89f24aae64bd046d1755e841c4c25e5ad515f7b5d6abe05d487/rootfs
    Dec 14 13:59:12 ip-172-18-2-50.ec2.internal oci-umount[112015]: umounthook <error>: f92f4b74698a: Failed to read directory /usr/share/oci-umount/oci-umount.d: No such file or directory
    Dec 14 13:59:14 ip-172-18-2-50.ec2.internal dockerd-current[16589]: time="2017-12-14T13:59:14.909237523Z" level=error msg="devmapper: Error unmounting device 46d82310de547f7f9e3e87d95f6a5af6420fe4b69ea3e1142bfc86486999e0f0: invalid argument"
    Dec 14 13:59:14 ip-172-18-2-50.ec2.internal dockerd-current[16589]: time="2017-12-14T13:59:14.909278876Z" level=error msg="Error unmounting container b7f14c8009aee731cd5199c9cce74b5b46912ffd0175c26b3ff73f2139a8212b: invalid argument"
    Dec 14 13:59:14 ip-172-18-2-50.ec2.internal dockerd-current[16589]: time="2017-12-14T13:59:14.911250303Z" level=error msg="Handler for POST /v1.24/containers/b7f14c8009aee731cd5199c9cce74b5b46912ffd0175c26b3ff73f2139a8212b/start returned error: devmapper: Error activating devmapper device for '46d82310de547f7f9e3e87d95f6a5af6420fe4b69ea3e1142bfc86486999e0f0': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed"
    Dec 14 13:59:14 ip-172-18-2-50.ec2.internal dockerd-current[16589]: time="2017-12-14T13:59:14.911285913Z" level=error msg="Handler for POST /v1.24/containers/b7f14c8009aee731cd5199c9cce74b5b46912ffd0175c26b3ff73f2139a8212b/start returned error: devmapper: Error activating devmapper device for '46d82310de547f7f9e3e87d95f6a5af6420fe4b69ea3e1142bfc86486999e0f0': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed"
    Dec 14 13:59:16 ip-172-18-2-50.ec2.internal oci-register-machine[112541]: 2017/12/14 13:59:16 Register machine: prestart 158ff1a13e78d92571cf9cd2de8df046b399b82a124cb134ce9b6e07bfc82912 112533 /var/lib/docker/devicemapper/mnt/e56517f04a762ed475c067b149aa6020d1cc8d09a64041a0a967511951aab1d3/rootfs
    Dec 14 13:59:16 ip-172-18-2-50.ec2.internal oci-umount[112548]: umounthook <debug>: prestart container_id:158ff1a13e78 rootfs:/var/lib/docker/devicemapper/mnt/e56517f04a762ed475c067b149aa6020d1cc8d09a64041a0a967511951aab1d3/rootfs
    
  4. stevekuznetsov commented on Jan 25, 2018

    @stevekuznetsov
    Contributor

    The AMIs now have docker-1.12.6-71.git3e8e77d.el7

  5. bparees commented on Jan 25, 2018

    @bparees
    Contributor

    @jwhonce do we think this would have also been addressed by the devmapper fix in the new docker? it's a different error.

  6. jwhonce commented on Jan 25, 2018

    @jwhonce
    Contributor

    @bparees If not addressed, the AMI should provide more detailed logging which will have root causing the issue.

  7. rhvgoyal commented on Jan 25, 2018

    @rhvgoyal

    I don't think -71 has the fix for this issue. We will have to root cause this issue. Given libdm is complaining about some errors, something is wrong with thin pool or some other condition. Lets enable libdm logging to get more verbose messages. Use following docker daemon parameter to enable libdm logs.

    '--storage-opt dm.libdm_log_level=3'

  8. stevekuznetsov commented on Jan 25, 2018

    @stevekuznetsov
    Contributor

    @rhvgoyal can you add the requisite changes here so we configure Docker correctly in our tests please.

  9. 22 remaining items

  10. jwhonce commented on Mar 27, 2018

    @jwhonce
    Contributor

    @bparees I'm going to have to work with the CI guys to debug saving the S3 artifacts. All the files appear to have zero lengths. I have no insight into why that job failed. /cc @runcom

  11. wozniakjan commented on Apr 6, 2018

    @wozniakjan

    something similar might have happened today again: https://ci.openshift.redhat.com/jenkins/job/test_branch_origin_extended_builds/426/consoleFull#-60125067356cbb9a5e4b02b88ae8c2f77

    2018-04-06T11:13:18.687466133Z error: build error: devmapper: Error activating devmapper device for 'e8e4aad8db3aab8c67f96479a218c146eac193784e421d614804e39e551529b3': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed to contain substring
    <string>: MEMORY=209715200
    
  12. jwhonce commented on Apr 6, 2018

    @jwhonce
    Contributor

    @wozniakjan I reviewed the artifacts for this event. The docker log does not sufficiently cover the time of event. I don't know if the cause was journald throttling logging or something else. Only the console log shows that error. I need the low level debugging logging to correlate what went wrong. Please attach future events as you see them. TIA

    /cc @runcom @mrunalp

  13. wozniakjan commented on Apr 13, 2018

    @wozniakjan

    @jwhonce possibly another occurrence today: https://ci.openshift.redhat.com/jenkins/job/test_branch_origin_extended_builds/433/consoleFull#83489914556cbb9a5e4b02b88ae8c2f77

    2018-04-13T11:30:15.548743367Z Removing intermediate container 0ccef51568e5
    2018-04-13T11:30:15.675685762Z F0413 11:30:15.675036       1 helpers.go:119] error: build error: devmapper: Error activating devmapper device for 'be467e484fbabbe279fb86f4d80579d3d7d045dee8face8977aa0217b3c5e1c3': devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed
    
  14. openshift-bot commented on Jul 12, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    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.

    /lifecycle stale

  15. added
    lifecycle/stale
    on Jul 12, 2018
  16. openshift-bot commented on Aug 11, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  17. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Aug 11, 2018
  18. openshift-bot commented on Sep 10, 2018

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

  19. openshift-ci-robot commented on Sep 10, 2018

    @openshift-ci-robot

    @openshift-bot: Closing this issue.

    Details

    In response to this:

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

component/containerskind/test-flakelifecycle/rottenpriority/P0sig/containers

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions