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 1454996

Summary: [RFE] display virtual size of images for ostree storage backend
Product: Red Hat Enterprise Linux 7 Reporter: Alex Jia <ajia>
Component: atomicAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: bbaude, ddarrah, dwalsh, fkluknav, gscrivan
Target Milestone: rcKeywords: Extras, FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-05 10:39:10 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 Alex Jia 2017-05-24 00:57:23 UTC
Description of problem:
atomic images list can't display virtual size of images for ostree storage backend.

Version-Release number of selected component (if applicable):

[root@atomic-host-test cloud-user]# cat /etc/redhat-release 
Red Hat Enterprise Linux Atomic Host release 7.3

[root@atomic-host-test cloud-user]# atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
             Version: 7.3.5 (2017-05-18 19:08:58)
              Commit: d049e353c4e4ba00866b2176b48ba247a8f6e050a729c3853b5d5afe323c0450

[root@atomic-host-test cloud-user]# rpm -q atomic skopeo docker
atomic-1.17.2-4.git2760e30.el7.x86_64
skopeo-0.1.19-1.el7.x86_64
docker-1.12.6-28.git1398f24.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. atomic pull --storage ostree busybox
2. atomic images list


Actual results:

[root@atomic-host-test cloud-user]# atomic pull --storage ostree busybox
Pulling layer 1cae461a1479c5a24dd38bd5f377ce65f531399a7db8c3ece891ac2197173f1d

[root@atomic-host-test cloud-user]# atomic --debug images list
Namespace(_class=<class 'Atomic.images.Images'>, all=False, assumeyes=False, debug=True, filter=None, func='display_all_image_info', heading=True, ignore=False, json=False, profile=False, quiet=False, truncate=True)
Backends(docker: Active, ostree: Active, )
   REPOSITORY                                                                    TAG                                               IMAGE ID       CREATED            VIRTUAL SIZE   TYPE      
   registry.access.stage.redhat.com/rhel7/cockpit-ws                             138-2                                             aa7cb82717fe   2017-05-19 12:17   209.76 MB      docker       busybox                                                                       latest                                            c79345819a68   2017-05-24 00:33                  ostree    

Expected results:


Additional info:

Comment 3 Giuseppe Scrivano 2017-05-25 13:56:55 UTC
this is going to be addressed once we move to using Skopeo to pull the images stored in OSTREE.

I think we can sum up the size of each layer that is part of the image.

Comment 4 Brent Baude 2017-07-03 18:07:51 UTC
I believe this is addressed in upstream commit -> https://github.com/projectatomic/atomic/commit/d6a50753adbc5b6f3085a674fb6e29bd98b69976  by Giuseppe.

Comment 5 Alex Jia 2017-08-22 02:42:45 UTC
Virtual size can be showed for container image between docker and ostree storage backend in atomic-1.18.1-4.git64843d3.el7.x86_64 w/ skopeo-0.1.23-1.git1bbd87f.el7.x86_64.

[cloud-user@atomic-host-test-986 ~]$ rpm -q atomic skopeo
atomic-1.18.1-4.git64843d3.el7.x86_64
skopeo-0.1.23-1.git1bbd87f.el7.x86_64

[cloud-user@atomic-host-test-986 ~]$ sudo atomic pull busybox
Pulling docker.io/library/busybox:latest ...
Copying blob sha256:9e87eff13613eed2f67b0188f8604d1bbdd3a7f5d6a4f565e8923817db65d6e5
 686.93 KB / 698.35 KB 
Copying config sha256:efe10ee6727fe52d2db2eb5045518fe98d8e31fdad1cbdd5e1f737018c349ebb
 0 B / 1.47 KB 
Writing manifest to image destination
Storing signatures
[ 1342.925734] XFS (dm-4): Mounting V5 Filesystem
[ 1342.992324] XFS (dm-4): Ending clean mount
 1.47 KB / 1.47 KB [ 1343.142563] XFS (dm-4): Unmounting Filesystem

[cloud-user@atomic-host-test-986 ~]$ sudo atomic pull --storage ostree busybox
Pulling layer 9e87eff13613eed2f67b0188f8604d1bbdd3a7f5d6a4f565e8923817db65d6e5

[cloud-user@atomic-host-test-986 ~]$ sudo atomic images list
   REPOSITORY          TAG      IMAGE ID       CREATED            VIRTUAL SIZE   TYPE      
   docker.io/busybox   latest   efe10ee6727f   2017-07-19 23:34   1.13 MB        docker    
   busybox             latest   2605a2c4875c   2017-08-22 02:39   1.13 MB        ostree

Comment 7 errata-xmlrpc 2017-09-05 10:39:10 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-2017:2609