Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1514465

Summary: buildah will not run if contianers created in containers/storage by other tools
Product: Red Hat Enterprise Linux 7 Reporter: Daniel Walsh <dwalsh>
Component: buildahAssignee: Frantisek Kluknavsky <fkluknav>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: ddarrah, gouyang, lmiksik
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-25 12:56:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Walsh 2017-11-17 14:14:02 UTC
If you create a container using kpod or cri-o, then buildah will no longer work.  Buildah attempts to read all containers, and fails if the containers were not created by buildah.

Comment 2 Daniel Walsh 2017-11-17 14:15:32 UTC
Fixed in buildah-0.7-1.gitb7e3320.el7

Comment 3 Guohua Ouyang 2017-11-21 03:16:49 UTC
Verified the issue on buildah-0.7-1.gitb7e3320.el7.

1. Reproduce the bug in buildah-0.5-3.gitf7dc659.el7, after delete buildah.json file, buildah not work.

# buildah from registry.fedoraproject.org/fedora
fedora-working-container
# ls /var/lib/containers/storage/overlay-containers/183f4da4486373116cb47d960bc2df95b9fb8056386e9584e28e0f998b9e72d5/userdata/
buildah.json
# rm /var/lib/containers/storage/overlay-containers/183f4da4486373116cb47d960bc2df95b9fb8056386e9584e28e0f998b9e72d5/userdata/buildah.json 
rm: remove regular file ‘/var/lib/containers/storage/overlay-containers/183f4da4486373116cb47d960bc2df95b9fb8056386e9584e28e0f998b9e72d5/userdata/buildah.json’? y
# buildah  images 
IMAGE ID             IMAGE NAME                                               CREATED AT             SIZE
6f45e9bcf5cc         registry.fedoraproject.org/fedora:latest                 Nov 10, 2017 12:15     1.785 KB
# buildah  containers 
# buildah from registry.fedoraproject.org/fedora
open /var/lib/containers/storage/overlay-containers/183f4da4486373116cb47d960bc2df95b9fb8056386e9584e28e0f998b9e72d5/userdata/buildah.json: no such file or directory

2. Upgrade to buildah-0.7-1.gitb7e3320.el7, it works as usual.

# rpm -Uvh buildah-0.7-1.gitb7e3320.el7/buildah-0.7-1.gitb7e3320.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:buildah-0.7-1.gitb7e3320.el7     ################################# [ 50%]
Cleaning up / removing...
   2:buildah-0.5-3.gitf7dc659.el7     ################################# [100%]
# buildah from registry.fedoraproject.org/fedora
fedora-working-container-3                  
# ls /var/lib/containers/storage/overlay-containers/
183f4da4486373116cb47d960bc2df95b9fb8056386e9584e28e0f998b9e72d5  containers.json
5ecb16d8ba0ba8f577f98533c8eeef0bf5b1d268bc6eefcd9592810a889c9234  containers.lock
87cbe4844f701e32e697bbe2230896e54d1a565a3622da82befef2e5babb1b0f
# ls /var/lib/containers/storage/overlay-containers/183f4da4486373116cb47d960bc2df95b9fb8056386e9584e28e0f998b9e72d5/userdata/
# ls /var/lib/containers/storage/overlay-containers/5ecb16d8ba0ba8f577f98533c8eeef0bf5b1d268bc6eefcd9592810a889c9234/userdata/
# ls /var/lib/containers/storage/overlay-containers/87cbe4844f701e32e697bbe2230896e54d1a565a3622da82befef2e5babb1b0f/userdata/buildah.json 
/var/lib/containers/storage/overlay-containers/87cbe4844f701e32e697bbe2230896e54d1a565a3622da82befef2e5babb1b0f/userdata/buildah.json

Comment 7 errata-xmlrpc 2018-01-25 12:56:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0193