Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman rmi gives "layer not known" when executed in parallel #6510

Closed
doc-olliday opened this issue Jun 7, 2020 · 16 comments · Fixed by #9266
Closed

podman rmi gives "layer not known" when executed in parallel #6510

doc-olliday opened this issue Jun 7, 2020 · 16 comments · Fixed by #9266
Assignees
Labels
In Progress This issue is actively being worked by the assignee, please do not work on this at this time. kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@doc-olliday
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

We use a Jenkins pipeline with parallel stages. Each stage builds, tags, pushs and removes a container image. In about half of the pipeline runs the rmi command fails with
layer not known.
We suspect a race condition during the parallel runs.
Running the same pipeline on "older" centos7 machines with docker-ce installed works without any problem.

In the pipeline script the command docker is used to be compatible with the "old" workers. On the actual workers docker is a symlink to the podman executable.

Many thanks for your help!

Steps to reproduce the issue:

  1. Execute the following Jenkins pipeline on a physical worker node:

The original pipeline is more complex with 7 images build in parallel. It was stripped down for debugging and the problem was reproduced with this version:

pipeline{
    agent any
    options{
        ansiColor('xterm')
        disableConcurrentBuilds()
        gitLabConnection('My GitLab')
        skipDefaultCheckout()
        timestamps()
    }
    environment{
        DOCKER_TAG =        "201907_bn${BUILD_NUMBER}"
        DOCKER_NAMESPACE =  "podmantest"
    }
    stages{
        stage("Build-Phase"){
            parallel{
                stage("Build Knoedel 1"){
                    steps{
                        script{
                            buildUnit("knoedel1", "${DOCKER_NAMESPACE}", "${DOCKER_TAG}").call()
                        }
                    }
                }
                stage("Build Knoedel 2"){
                    steps{
                        script{
                            buildUnit("knoedel2", "${DOCKER_NAMESPACE}", "${DOCKER_TAG}").call()
                        }
                    }
                }
            }
        }
    }
}

def buildUnit(String unitname, String imagenamespace, String imagetag){
    return{
        stage("Checkout"){
            cleanWs()
            checkout([
                $class: 'GitSCM', 
                branches: [[name: '*/develop']], 
                doGenerateSubmoduleConfigurations: false, 
                extensions: [], 
                submoduleCfg: [], 
                userRemoteConfigs: [[
                    credentialsId: '4057f760-77d8-465a-930e-0b6ab48b1f70', 
                    url: 'git@gitlab:others/podman_test.git'
                ]]
            ])
        }
        stage("Pack repo-contents"){
            sh "tar --exclude='./ci' --exclude='./.git*' -cvzf ci/docker/${unitname}/context/source.tar.gz ."
        }
        stage("Docker build"){
            withCredentials([usernameColonPassword(credentialsId: '508f86fa-5a61-4fc0-8ffe-a4604ced37b1', variable: 'registry_creds')]) {
                sh "echo ${NODE_NAME}"
                sh "docker info
"
                sh """
                    BUILDAH_FORMAT="docker" docker build --ulimit nofile=65536:65536 --no-cache\
                    --add-host nexus:192.168.178.52 \
                    -t dockerregistry.og/${imagenamespace}/${unitname}:${imagetag} \
                    ci/docker/${unitname}
                """
                sh "docker push --creds ${registry_creds} --log-level=debug dockerregistry.og/${imagenamespace}/${unitname}:${imagetag}"
                sh """
                    docker rmi --log-level=debug \
                    dockerregistry.og/${imagenamespace}/${unitname}:${imagetag}
                """
            }
        }
    }
}

Describe the results you received:

+ docker rmi --log-level=debug dockerregistry.og/podmantest/knoedel2:201907_bn31
time="2020-06-06T16:27:07+02:00" level=debug msg="Ignoring lipod.conf EventsLogger setting \"journald\". Use containers.conf if you want to change this setting and remove libpod.conf files."
time="2020-06-06T16:27:07+02:00" level=debug msg="Using conmon: \"/usr/bin/conmon\""
time="2020-06-06T16:27:07+02:00" level=debug msg="Initializing boltdb state at /home/hudson/.local/share/containers/storage/libpod/bolt_state.db"
time="2020-06-06T16:27:07+02:00" level=debug msg="Using graph driver overlay"
time="2020-06-06T16:27:07+02:00" level=debug msg="Using graph root /home/hudson/.local/share/containers/storage"
time="2020-06-06T16:27:07+02:00" level=debug msg="Using run root /run/user/1002/containers"
time="2020-06-06T16:27:07+02:00" level=debug msg="Using static dir /home/hudson/.local/share/containers/storage/libpod"
time="2020-06-06T16:27:07+02:00" level=debug msg="Using tmp dir /run/user/1002/libpod/tmp"
time="2020-06-06T16:27:07+02:00" level=debug msg="Using volume path /home/hudson/.local/share/containers/storage/volumes"
time="2020-06-06T16:27:07+02:00" level=debug msg="Set libpod namespace to \"\""
time="2020-06-06T16:27:07+02:00" level=debug msg="Not configuring container store"
time="2020-06-06T16:27:07+02:00" level=debug msg="Initializing event backend file"
time="2020-06-06T16:27:07+02:00" level=debug msg="using runtime \"/usr/bin/runc\""
time="2020-06-06T16:27:07+02:00" level=warning msg="Error initializing configured OCI runtime crun: no valid executable found for OCI runtime crun: invalid argument"
time="2020-06-06T16:27:07+02:00" level=debug msg="using runtime \"/usr/bin/kata-runtime\""
time="2020-06-06T16:27:07+02:00" level=debug msg="Ignoring lipod.conf EventsLogger setting \"journald\". Use containers.conf if you want to change this setting and remove libpod.conf files."
time="2020-06-06T16:27:08+02:00" level=debug msg="Using conmon: \"/usr/bin/conmon\""
time="2020-06-06T16:27:08+02:00" level=debug msg="Initializing boltdb state at /home/hudson/.local/share/containers/storage/libpod/bolt_state.db"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using graph driver overlay"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using graph root /home/hudson/.local/share/containers/storage"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using run root /run/user/1002/containers"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using static dir /home/hudson/.local/share/containers/storage/libpod"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using tmp dir /run/user/1002/libpod/tmp"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using volume path /home/hudson/.local/share/containers/storage/volumes"
time="2020-06-06T16:27:08+02:00" level=debug msg="Set libpod namespace to \"\""
time="2020-06-06T16:27:08+02:00" level=debug msg="No store required. Not opening container store."
time="2020-06-06T16:27:08+02:00" level=debug msg="Initializing event backend file"
time="2020-06-06T16:27:08+02:00" level=warning msg="Error initializing configured OCI runtime crun: no valid executable found for OCI runtime crun: invalid argument"
time="2020-06-06T16:27:08+02:00" level=debug msg="using runtime \"/usr/bin/kata-runtime\""
time="2020-06-06T16:27:08+02:00" level=debug msg="using runtime \"/usr/bin/runc\""
time="2020-06-06T16:27:08+02:00" level=info msg="running as rootless"
time="2020-06-06T16:27:08+02:00" level=debug msg="Ignoring lipod.conf EventsLogger setting \"journald\". Use containers.conf if you want to change this setting and remove libpod.conf files."
time="2020-06-06T16:27:08+02:00" level=debug msg="Using conmon: \"/usr/bin/conmon\""
time="2020-06-06T16:27:08+02:00" level=debug msg="Initializing boltdb state at /home/hudson/.local/share/containers/storage/libpod/bolt_state.db"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using graph driver overlay"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using graph root /home/hudson/.local/share/containers/storage"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using run root /run/user/1002/containers"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using static dir /home/hudson/.local/share/containers/storage/libpod"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using tmp dir /run/user/1002/libpod/tmp"
time="2020-06-06T16:27:08+02:00" level=debug msg="Using volume path /home/hudson/.local/share/containers/storage/volumes"
time="2020-06-06T16:27:08+02:00" level=debug msg="Set libpod namespace to \"\""
time="2020-06-06T16:27:08+02:00" level=debug msg="[graphdriver] trying provided driver \"overlay\""
time="2020-06-06T16:27:08+02:00" level=debug msg="overlay: mount_program=/usr/bin/fuse-overlayfs"
time="2020-06-06T16:27:08+02:00" level=debug msg="backingFs=extfs, projectQuotaSupported=false, useNativeDiff=false, usingMetacopy=false"
time="2020-06-06T16:27:08+02:00" level=debug msg="Initializing event backend file"
time="2020-06-06T16:27:08+02:00" level=warning msg="Error initializing configured OCI runtime crun: no valid executable found for OCI runtime crun: invalid argument"
time="2020-06-06T16:27:08+02:00" level=debug msg="using runtime \"/usr/bin/kata-runtime\""
time="2020-06-06T16:27:08+02:00" level=debug msg="using runtime \"/usr/bin/runc\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]dockerregistry.og/podmantest/knoedel2:201907_bn31\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@720788ebfb2e644c36c30a69e4fd7ac55645b08a513fce44a5f102f1e585cf82\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:720788ebfb2e644c36c30a69e4fd7ac55645b08a513fce44a5f102f1e585cf82\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@5a99c4ca5c313e4c2cf9be8ca3a20bf393f511c78531f338be36b723727f1db0\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:5a99c4ca5c313e4c2cf9be8ca3a20bf393f511c78531f338be36b723727f1db0\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@e2ddfe13bc360f0164f975791c6f8cca9e6ca1b3277d2381a983f2955feac27f\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:e2ddfe13bc360f0164f975791c6f8cca9e6ca1b3277d2381a983f2955feac27f\""
5a99c4ca5c313e4c2cf9be8ca3a20bf393f511c78531f338be36b723727f1db0
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@9830e7547eda5b29ba113d7381fb244a2bd25f3b2334210683085ee0621a00bd\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:9830e7547eda5b29ba113d7381fb244a2bd25f3b2334210683085ee0621a00bd\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@4f50aa602bfa4f7bfb6c94f9d0013fecc67090c88ca808253df2a1d2046b9902\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:4f50aa602bfa4f7bfb6c94f9d0013fecc67090c88ca808253df2a1d2046b9902\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@ab1b4956c6976e34bb038640b7e8f20c432dc6397ff26587689b019e2322f2b0\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:ab1b4956c6976e34bb038640b7e8f20c432dc6397ff26587689b019e2322f2b0\""
e2ddfe13bc360f0164f975791c6f8cca9e6ca1b3277d2381a983f2955feac27f
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@9830e7547eda5b29ba113d7381fb244a2bd25f3b2334210683085ee0621a00bd\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:9830e7547eda5b29ba113d7381fb244a2bd25f3b2334210683085ee0621a00bd\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@ab1b4956c6976e34bb038640b7e8f20c432dc6397ff26587689b019e2322f2b0\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:ab1b4956c6976e34bb038640b7e8f20c432dc6397ff26587689b019e2322f2b0\""
9df3c14a39af5d37eaf890021ebf5d3119b66e374e2067e7b0ac37764155462e
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d02b422c49f26d203f418e1170e31a377641d7ee668d0a252df271763cd5acf5\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d02b422c49f26d203f418e1170e31a377641d7ee668d0a252df271763cd5acf5\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b168f89344abb29cc096219ef9baaa2830a4e33ed07b6f90e3b66fd243ecd9f4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@4f50aa602bfa4f7bfb6c94f9d0013fecc67090c88ca808253df2a1d2046b9902\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:4f50aa602bfa4f7bfb6c94f9d0013fecc67090c88ca808253df2a1d2046b9902\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
9830e7547eda5b29ba113d7381fb244a2bd25f3b2334210683085ee0621a00bd
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d02b422c49f26d203f418e1170e31a377641d7ee668d0a252df271763cd5acf5\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d02b422c49f26d203f418e1170e31a377641d7ee668d0a252df271763cd5acf5\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:8d8af3b4fbe1db6cb302e5810f0268b1a5b811533ce6df6480dbd907c830fab1\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:6de8058bb35cbb9fdf83cfc55d7baa7681ffa43df57eafe147041401d9ce2a71\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d96b56e41dfb918285a0bdbba1ae9b35d7a32a989f70bfd1b6adb1a8f7c04018\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:b5c194d8bcbe068c7284ba7eab6fffebf43bc73f276ac8fd3b19805e1c29c062\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:d5225165f716ee062b28d4dd20f2114f634662422e0ac076c1ae544d6c975cc4\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@4f50aa602bfa4f7bfb6c94f9d0013fecc67090c88ca808253df2a1d2046b9902\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:4f50aa602bfa4f7bfb6c94f9d0013fecc67090c88ca808253df2a1d2046b9902\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:793f877895ec0a65dc04cc15272568528fc933e41203c36b3cb4fd75d019cecb\""
time="2020-06-06T16:27:08+02:00" level=debug msg="parsed reference into \"[overlay@/home/hudson/.local/share/containers/storage+/run/user/1002/containers:overlay.mount_program=/usr/bin/fuse-overlayfs]@38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=debug msg="exporting opaque data as blob \"sha256:38683528ab71de352650313241899f62957af044d2937167aa1a3204eda4b0d6\""
time="2020-06-06T16:27:08+02:00" level=error msg="layer not known"
script returned exit code 2

Describe the results you expected:

Images should be untagged / removed.

Additional information you deem important (e.g. issue happens only occasionally):

The same problem occurs on CentOS 8 workers with container-tools:rhel8 installed.

Output of podman version:

Version:            1.9.3
RemoteAPI Version:  1
Go Version:         go1.12.17
Built:              Mon May 25 02:00:00 2020
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:                                                                                                                                                                                                            
  compiler: gc                                                                                                                                                                                                    
  gitCommit: ""                                                                                                                                                                                                   
  goVersion: go1.12.17                                                                                                                                                                                            
  podmanVersion: 1.9.3                                                                                                                                                                                            
host:                                                                                                                                                                                                             
  arch: amd64                                                                                                                                                                                                     
  buildahVersion: 1.14.9                                                                                                                                                                                          
  cgroupVersion: v1                                                                                                                                                                                               
  conmon:                                                                                                                                                                                                         
    package: conmon-2.0.16-1.2.x86_64                                                                                                                                                                             
    path: /usr/bin/conmon                                                                                                                                                                                         
    version: 'conmon version 2.0.16, commit: unknown'                                                                                                                                                             
  cpus: 8                                                                                                                                                                                                         
  distribution:                                                                                                                                                                                                   
    distribution: '"opensuse-tumbleweed"'                                                                                                                                                                         
    version: "20200604"                                                                                                                                                                                           
  eventLogger: file                                                                                                                                                                                               
  hostname: tchaikowsky                                                                                                                                                                                           
  idMappings:                                                                                                                                                                                                     
    gidmap:                                                                                                                                                                                                       
    - container_id: 0                                                                                                                                                                                             
      host_id: 100                                                                                                                                                                                                
      size: 1                                                                                                                                                                                                     
    - container_id: 1                                                                                                                                                                                             
      host_id: 100000                                                                                                                                                                                             
      size: 65536                                                                                                                                                                                                 
    uidmap:                                                                                                                                                                                                       
    - container_id: 0                                                                                                                                                                                             
      host_id: 1002                                                                                                                                                                                               
      size: 1                                                                                                                                                                                                     
    - container_id: 1                                                                                                                                                                                             
      host_id: 100000                                                                                                                                                                                             
      size: 65536                                                                                                                                                                                                 
  kernel: 5.6.14-1-default                                                                                                                                                                                        
  memFree: 234344448                                                                                                                                                                                              
  memTotal: 16698028032
  ociRuntime:
    name: runc
    package: runc-1.0.0~rc10-4.2.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc10
      spec: 1.0.1-dev
  os: linux
  rootless: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.0.0-1.2.x86_64
    version: |-
      slirp4netns version 1.0.0
      commit: unknown
      libslirp: 4.3.0
  swapFree: 9053401088
  swapTotal: 9128898560
  uptime: 6h 26m 9.07s (Approximately 0.25 days)
registries:
  search:
  - docker.io
store:
  configFile: /home/hudson/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mount_program:
      Executable: /usr/bin/fuse-overlayfs
      Package: fuse-overlayfs-1.0.0-1.2.x86_64
      Version: |-
        fusermount3 version: 3.9.1
        fuse-overlayfs: version 1.0.0
        FUSE library version 3.9.1
        using FUSE kernel interface version 7.31
  graphRoot: /home/hudson/.local/share/containers/storage
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  imageStore:
    number: 12
  runRoot: /run/user/1002/containers
  volumePath: /home/hudson/.local/share/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):

# zypper info podman

Information for package podman:
-------------------------------
Repository     : Haupt-Repository (OSS)
Name           : podman
Version        : 1.9.3-1.2
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 144.3 MiB
Installed      : Yes
Status         : up-to-date
Source package : podman-1.9.3-1.2.src
Summary        : Daemon-less container engine for managing containers, pods and images
Description    : 
    Podman is a container engine for managing pods, containers, and container
    images.
    It is a standalone tool and it directly manipulates containers without the need
    of a container engine daemon.
    Podman is able to interact with container images create in buildah, cri-o, and
    skopeo, as they all share the same datastore backend.

Additional environment details (AWS, VirtualBox, physical, etc.):

Physical machine:

# uname -a
Linux tchaikowsky 5.6.14-1-default #1 SMP Wed May 20 08:32:48 UTC 2020 (b0ab48a) x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20200604"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20200604"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20200604"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 7, 2020
@mheon
Copy link
Member

mheon commented Jun 7, 2020

@nalind @vrothberg Does this look like an error where another process already removed a layer that we wanted removed? IE, something we can just ignore and continue running?

@github-actions
Copy link

github-actions bot commented Jul 8, 2020

A friendly reminder that this issue had no activity for 30 days.

@doc-olliday
Copy link
Author

doc-olliday commented Jul 8, 2020

Any news on that?

In the meanwhile we've updated to:

Version:      2.0.1
API Version:  1
Go Version:   go1.13.4
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

The problem still exists.

@vrothberg
Copy link
Member

Apologies for not getting back to this issues earlier. I'll take a look right now.

@doc-olliday
Copy link
Author

Hi,
any suggestions?

Same situation after last upgrade:

Version:      2.0.3
API Version:  1
Go Version:   go1.13.4
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

@vrothberg
Copy link
Member

@nalind was looking into the c/storage parts but we don't have news yet.

We dedicate the entire next week to bug scrubbing. Maybe, we manage to get to the core of it.

@doc-olliday
Copy link
Author

I'm going to close this ticket.
We give up, for now. Due to too many problems we've migrated back to docker-ce.

@mheon
Copy link
Member

mheon commented Aug 28, 2020

I'm going to reopen - this is definitely still a problem, and we are still interested in solving it.

@mheon mheon reopened this Aug 28, 2020
@mheon
Copy link
Member

mheon commented Sep 8, 2020

@vrothberg Mind taking a look at this one?

@vrothberg
Copy link
Member

Pulling in @nalind as well who wanted to look into the c/storage parts.

@vrothberg
Copy link
Member

@nalind @rhatdan can we increase priority on tracking this one down? I think it's a c/storage issue.

@jwhonce
Copy link
Member

jwhonce commented Oct 8, 2020

@bilal-ameer-ivolve
Copy link

Guys having alike issue,
[root@overcloud-controller-0 ~]# podman run --network host --name redis-bundle-podman-0 bilalbinameer/helloworld
Error: error creating container storage: the container name "redis-bundle-podman-0" is already in use by "646acb522ae7665d689baa3f3b705926e6f1cc44a13fc0a61350a582e65fef5b". You have to remove that container to be able to reuse that name.: that name is already in use

[root@overcloud-controller-0 ~]# podman ps -a | grep redis-bundle-podman-0
[root@overcloud-controller-0 ~]# podman rm -f --storage redis-bundle-podman-0
redis-bundle-podman-0
Error: error unmounting container "redis-bundle-podman-0": layer not known
[root@overcloud-controller-0 ~]#

@edsantiago
Copy link
Member

Here's another reproducer. I don't know if it's the same root cause (this one has to do with vfs and storage opts) but at least it's a 100%-reliable reproducer:

#!/bin/bash

set -ex

PROOT=/dev/shm/mypodman
rm -rf $PROOT
mkdir -p $PROOT/root $PROOT/cache

IMAGE=quay.io/libpod/testimage:20200929

PODMAN="./bin/podman  --root $PROOT/cache --storage-driver vfs"

$PODMAN pull $IMAGE

PODMAN="./bin/podman --storage-opt vfs.imagestore=$PROOT/cache --root $PROOT/root --storage-driver vfs"

$PODMAN pull $IMAGE

$PODMAN rmi -af

The last line will always fail with:

Error: 1 error occurred:
        * layer not known

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@vrothberg vrothberg added the In Progress This issue is actively being worked by the assignee, please do not work on this at this time. label Feb 8, 2021
vrothberg added a commit to vrothberg/libpod that referenced this issue Feb 8, 2021
The c/storage library is subject to TOCTOUs as the central container and
image storage may be shared by many instances of many tools.  As shown
in containers#6510, it's fairly easy to have multiple instances of Podman running
in parallel and yield image-lookup errors when removing them.

The underlying issue is the TOCTOU of removal being split into multiple
stages of first reading the local images and then removing them.  Some
images may already have been removed in between the two stages. To make
image removal more robust, handle errors at stage two when a given image
is not present (anymore) in the storage.

Fixes: containers#6510
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
vrothberg added a commit to vrothberg/libpod that referenced this issue Feb 8, 2021
The c/storage library is subject to TOCTOUs as the central container and
image storage may be shared by many instances of many tools.  As shown
in containers#6510, it's fairly easy to have multiple instances of Podman running
in parallel and yield image-lookup errors when removing them.

The underlying issue is the TOCTOU of removal being split into multiple
stages of first reading the local images and then removing them.  Some
images may already have been removed in between the two stages. To make
image removal more robust, handle errors at stage two when a given image
is not present (anymore) in the storage.

Fixes: containers#6510
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
vrothberg added a commit to vrothberg/libpod that referenced this issue Feb 8, 2021
The c/storage library is subject to TOCTOUs as the central container and
image storage may be shared by many instances of many tools.  As shown
in containers#6510, it's fairly easy to have multiple instances of Podman running
in parallel and yield image-lookup errors when removing them.

The underlying issue is the TOCTOU of removal being split into multiple
stages of first reading the local images and then removing them.  Some
images may already have been removed in between the two stages. To make
image removal more robust, handle errors at stage two when a given image
is not present (anymore) in the storage.

Fixes: containers#6510
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
vrothberg added a commit to vrothberg/libpod that referenced this issue Feb 8, 2021
The c/storage library is subject to TOCTOUs as the central container and
image storage may be shared by many instances of many tools.  As shown
in containers#6510, it's fairly easy to have multiple instances of Podman running
in parallel and yield image-lookup errors when removing them.

The underlying issue is the TOCTOU of removal being split into multiple
stages of first reading the local images and then removing them.  Some
images may already have been removed in between the two stages. To make
image removal more robust, handle errors at stage two when a given image
is not present (anymore) in the storage.

Fixes: containers#6510
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
mheon pushed a commit to mheon/libpod that referenced this issue Feb 11, 2021
The c/storage library is subject to TOCTOUs as the central container and
image storage may be shared by many instances of many tools.  As shown
in containers#6510, it's fairly easy to have multiple instances of Podman running
in parallel and yield image-lookup errors when removing them.

The underlying issue is the TOCTOU of removal being split into multiple
stages of first reading the local images and then removing them.  Some
images may already have been removed in between the two stages. To make
image removal more robust, handle errors at stage two when a given image
is not present (anymore) in the storage.

Fixes: containers#6510
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
edsantiago added a commit to edsantiago/libpod that referenced this issue May 10, 2021
The following bugs seem to be fixed:

* containers#6510 (e2e tests) - podman rmi gives "layer not known"

* containers#9915 (buildah-bud tests) - podman build --arch

* containers#10248 - spurious warning from first-ever invocation
  of rootless podman

Signed-off-by: Ed Santiago <santiago@redhat.com>
edsantiago added a commit to edsantiago/libpod that referenced this issue May 10, 2021
The following bugs seem to be fixed:

* containers#6510 (e2e tests) - podman rmi gives "layer not known"

* containers#9915 (buildah-bud tests) - podman build --arch

* containers#10248 - spurious warning from first-ever invocation
  of rootless podman

Signed-off-by: Ed Santiago <santiago@redhat.com>
Procyhon pushed a commit to Procyhon/podman that referenced this issue May 27, 2021
The following bugs seem to be fixed:

* containers#6510 (e2e tests) - podman rmi gives "layer not known"

* containers#9915 (buildah-bud tests) - podman build --arch

* containers#10248 - spurious warning from first-ever invocation
  of rootless podman

Signed-off-by: Ed Santiago <santiago@redhat.com>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
In Progress This issue is actively being worked by the assignee, please do not work on this at this time. kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants