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 - buildah will not run if contianers created in containers/storage by other tools
Summary: buildah will not run if contianers created in containers/storage by other tools
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: buildah
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Frantisek Kluknavsky
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-17 14:14 UTC by Daniel Walsh
Modified: 2018-01-25 12:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-25 12:56:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0193 0 normal SHIPPED_LIVE buildah bug fix update 2018-01-25 17:23:53 UTC

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


Note You need to log in before you can comment on or make changes to this bug.