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 1523650 - virt-builder: wrong architecture for caching templates when using --cache-all-templates
Summary: virt-builder: wrong architecture for caching templates when using --cache-all...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-08 14:11 UTC by Pino Toscano
Modified: 2018-04-10 09:21 UTC (History)
3 users (show)

Fixed In Version: libguestfs-1.36.10-4.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 09:20:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0677 0 None None None 2018-04-10 09:21:36 UTC

Description Pino Toscano 2017-12-08 14:11:45 UTC
Description of problem:
When using `virt-builder --cache-all-templates`, all the templates will be cached using the current architecture (so "x86_64" on a x86_64 machine, and so on), instead of using the proper architecture of each template.

Steps to Reproduce:
1. have a clean cache, so no ~/.cache/virt-builder
2. run `virt-builder --cache-all-templates`
3. a lot of patience
4. `ls -lh ~/.cache/virt-builder`

Actual results:
On a x86_64 machine, only one template for each distro/version is available, with a x86_64 filename.

Expected results:
Templates with different architectures are avilable -- compare the file listing with the output of `virt-builder --list`.

Additional info:
This does not affect templates already cached, but only what is downloaded when using --cache-all-templates.

Comment 2 Pino Toscano 2017-12-08 14:13:21 UTC
This was just fixed upstream with
https://github.com/libguestfs/libguestfs/commit/b34f457cf2dd66626abf743c90881bfe6532ec9b
which is in libguestfs >= 1.37.35.

Comment 3 Xianghua Chen 2017-12-12 05:32:37 UTC
Can reproduce it with:
libguestfs-1.36.3-6.el7_4.2.x86_64

Steps:
1. Have a clean cache:
# rm -rf ~/.cache/virt-builder
2. Cache all the templates:
# virt-builder --cache-all-templates
3. List all the caches:
# ls -lh ~/.cache/virt-builder
total 8.4G
-rw-r--r--. 1 root root 191M Dec 11 12:25 centos-6.x86_64.6
-rw-r--r--. 1 root root 204M Dec 11 12:37 centos-7.0.x86_64.1
-rw-r--r--. 1 root root 228M Dec 11 12:52 centos-7.1.x86_64.1
-rw-r--r--. 1 root root 237M Dec 11 13:09 centos-7.2.x86_64.1
-rw-r--r--. 1 root root 281M Dec 11 13:28 centos-7.3.x86_64.2
-rw-r--r--. 1 root root 296M Dec 11 13:47 centos-7.4.x86_64.1
-rw-r--r--. 1 root root  11M Dec 11 13:48 cirros-0.3.1.x86_64.1
-rw-r--r--. 1 root root  11M Dec 11 13:49 cirros-0.3.5.x86_64.1
-rw-r--r--. 1 root root 134M Dec 11 13:58 debian-6.x86_64.2
-rw-r--r--. 1 root root  92M Dec 11 14:08 debian-7.x86_64.1
-rw-r--r--. 1 root root 191M Dec 11 14:20 debian-7.x86_64.3
-rw-r--r--. 1 root root 222M Dec 11 14:35 debian-8.x86_64.2
-rw-r--r--. 1 root root 186M Dec 11 14:51 debian-9.x86_64.2
-rw-r--r--. 1 root root 143M Dec 11 15:04 fedora-18.x86_64.1
-rw-r--r--. 1 root root 162M Dec 11 15:30 fedora-19.x86_64.2
-rw-r--r--. 1 root root 173M Dec 11 15:55 fedora-20.x86_64.2
-rw-r--r--. 1 root root 178M Dec 11 16:08 fedora-21.x86_64.1
-rw-r--r--. 1 root root 223M Dec 11 16:32 fedora-21.x86_64.3
-rw-r--r--. 1 root root 206M Dec 11 17:03 fedora-22.x86_64.1
-rw-r--r--. 1 root root 207M Dec 11 17:35 fedora-23.x86_64.1
-rw-r--r--. 1 root root 308M Dec 11 18:18 fedora-23.x86_64.2
-rw-r--r--. 1 root root 303M Dec 11 18:51 fedora-23.x86_64.3
-rw-r--r--. 1 root root 275M Dec 11 19:30 fedora-24.x86_64.1
-rw-r--r--. 1 root root 281M Dec 11 20:36 fedora-25.x86_64.1
-rw-r--r--. 1 root root 322M Dec 11 22:08 fedora-25.x86_64.3
-rw-r--r--. 1 root root 315M Dec 11 23:56 fedora-26.x86_64.2
-rw-r--r--. 1 root root 330M Dec 12 00:43 fedora-26.x86_64.3
-rw-r--r--. 1 root root 319M Dec 12 01:04 fedora-27.x86_64.1
-rw-r--r--. 1 root root 383M Dec 12 01:29 freebsd-11.1.x86_64.1
-rw-r--r--. 1 root root 322M Dec 11 11:03 opensuse-13.1.x86_64.232
-rw-r--r--. 1 root root 287M Dec 11 11:14 opensuse-13.2.x86_64.262
-rw-r--r--. 1 root root 291M Dec 11 11:38 opensuse-42.1.x86_64.119
-rw-r--r--. 1 root root 356M Dec 11 12:11 opensuse-tumbleweed.x86_64.2351
-rw-r--r--. 1 root root 183M Dec 12 01:40 scientificlinux-6.x86_64.5
-rw-r--r--. 1 root root 143M Dec 12 01:47 ubuntu-10.04.x86_64.1
-rw-r--r--. 1 root root 161M Dec 12 01:59 ubuntu-12.04.x86_64.1
-rw-r--r--. 1 root root 197M Dec 12 02:58 ubuntu-14.04.x86_64.1
-rw-r--r--. 1 root root 223M Dec 12 03:50 ubuntu-16.04.x86_64.1


Only x86_64 templates are listed.

Comment 5 Xianghua Chen 2017-12-15 02:24:03 UTC
Verified with package:
libguestfs-1.36.10-4.el7.x86_64

Steps:
1. Have a clean cache:
# rm -rf ~/.cache/virt-builder
2. Cache all the templates:
# virt-builder --cache-all-templates
3. List all the caches:
# ls -lh ~/.cache/virt-builder
total 16G
-rw-r--r--. 1 root root 191M Dec 14 10:29 centos-6.x86_64.6
-rw-r--r--. 1 root root 204M Dec 14 10:39 centos-7.0.x86_64.1
-rw-r--r--. 1 root root 228M Dec 14 10:48 centos-7.1.x86_64.1
-rw-r--r--. 1 root root 237M Dec 14 10:58 centos-7.2.aarch64.1
-rw-r--r--. 1 root root 241M Dec 14 11:06 centos-7.2.x86_64.1
-rw-r--r--. 1 root root 281M Dec 14 11:21 centos-7.3.x86_64.2
-rw-r--r--. 1 root root 296M Dec 14 11:39 centos-7.4.x86_64.1
-rw-r--r--. 1 root root  11M Dec 14 11:39 cirros-0.3.1.x86_64.1
-rw-r--r--. 1 root root  11M Dec 14 11:40 cirros-0.3.5.x86_64.1
-rw-r--r--. 1 root root 134M Dec 14 11:46 debian-6.x86_64.2
-rw-r--r--. 1 root root  92M Dec 14 11:51 debian-7.sparc64.1
-rw-r--r--. 1 root root 191M Dec 14 11:58 debian-7.x86_64.3
-rw-r--r--. 1 root root 222M Dec 14 12:09 debian-8.x86_64.2
-rw-r--r--. 1 root root 186M Dec 14 12:16 debian-9.x86_64.2
-rw-r--r--. 1 root root 143M Dec 14 12:21 fedora-18.x86_64.1
-rw-r--r--. 1 root root 162M Dec 14 12:27 fedora-19.x86_64.2
-rw-r--r--. 1 root root 173M Dec 14 12:35 fedora-20.x86_64.2
-rw-r--r--. 1 root root 178M Dec 14 12:43 fedora-21.aarch64.1
-rw-r--r--. 1 root root 191M Dec 14 12:49 fedora-21.armv7l.1
-rw-r--r--. 1 root root 223M Dec 14 12:57 fedora-21.ppc64.3
-rw-r--r--. 1 root root 223M Dec 14 13:05 fedora-21.ppc64le.3
-rw-r--r--. 1 root root 200M Dec 14 13:13 fedora-21.x86_64.1
-rw-r--r--. 1 root root 206M Dec 14 13:22 fedora-22.aarch64.1
-rw-r--r--. 1 root root 232M Dec 14 13:36 fedora-22.armv7l.1
-rw-r--r--. 1 root root 215M Dec 14 13:50 fedora-22.i686.1
-rw-r--r--. 1 root root 218M Dec 14 14:05 fedora-22.x86_64.1
-rw-r--r--. 1 root root 207M Dec 14 14:29 fedora-23.aarch64.1
-rw-r--r--. 1 root root 231M Dec 14 14:40 fedora-23.armv7l.1
-rw-r--r--. 1 root root 308M Dec 14 14:52 fedora-23.i686.2
-rw-r--r--. 1 root root 268M Dec 14 15:02 fedora-23.ppc64.1
-rw-r--r--. 1 root root 266M Dec 14 15:12 fedora-23.ppc64le.2
-rw-r--r--. 1 root root 303M Dec 14 15:31 fedora-23.x86_64.3
-rw-r--r--. 1 root root 275M Dec 14 15:57 fedora-24.aarch64.1
-rw-r--r--. 1 root root 310M Dec 14 16:17 fedora-24.armv7l.1
-rw-r--r--. 1 root root 305M Dec 14 16:35 fedora-24.i686.1
-rw-r--r--. 1 root root 307M Dec 14 17:01 fedora-24.x86_64.1
-rw-r--r--. 1 root root 281M Dec 14 17:23 fedora-25.aarch64.1
-rw-r--r--. 1 root root 258M Dec 14 17:39 fedora-25.armv7l.1
-rw-r--r--. 1 root root 236M Dec 14 17:49 fedora-25.i686.1
-rw-r--r--. 1 root root 322M Dec 14 18:03 fedora-25.ppc64.3
-rw-r--r--. 1 root root 325M Dec 14 18:22 fedora-25.ppc64le.3
-rw-r--r--. 1 root root 322M Dec 14 18:39 fedora-25.x86_64.1
-rw-r--r--. 1 root root 315M Dec 14 19:14 fedora-26.aarch64.2
-rw-r--r--. 1 root root 328M Dec 14 19:29 fedora-26.armv7l.2
-rw-r--r--. 1 root root 331M Dec 14 19:59 fedora-26.i686.2
-rw-r--r--. 1 root root 330M Dec 14 20:25 fedora-26.ppc64.3
-rw-r--r--. 1 root root 329M Dec 14 20:44 fedora-26.ppc64le.3
-rw-r--r--. 1 root root 342M Dec 14 21:02 fedora-26.x86_64.2
-rw-r--r--. 1 root root 319M Dec 14 21:27 fedora-27.aarch64.1
-rw-r--r--. 1 root root 351M Dec 14 21:39 fedora-27.armv7l.1
-rw-r--r--. 1 root root 338M Dec 14 21:56 fedora-27.i686.1
-rw-r--r--. 1 root root 329M Dec 14 22:13 fedora-27.ppc64.1
-rw-r--r--. 1 root root 330M Dec 14 22:34 fedora-27.ppc64le.1
-rw-r--r--. 1 root root 348M Dec 14 22:57 fedora-27.x86_64.1
-rw-r--r--. 1 root root 383M Dec 14 23:19 freebsd-11.1.x86_64.1
-rw-r--r--. 1 root root 322M Dec 14 10:07 opensuse-13.1.x86_64.232
-rw-r--r--. 1 root root 287M Dec 14 10:12 opensuse-13.2.x86_64.262
-rw-r--r--. 1 root root 291M Dec 14 10:16 opensuse-42.1.x86_64.119
-rw-r--r--. 1 root root 356M Dec 14 10:23 opensuse-tumbleweed.x86_64.2351
-rw-r--r--. 1 root root 183M Dec 14 23:25 scientificlinux-6.x86_64.5
-rw-r--r--. 1 root root 143M Dec 14 23:30 ubuntu-10.04.x86_64.1
-rw-r--r--. 1 root root 161M Dec 14 23:37 ubuntu-12.04.x86_64.1
-rw-r--r--. 1 root root 197M Dec 14 23:52 ubuntu-14.04.x86_64.1
-rw-r--r--. 1 root root 223M Dec 15 00:02 ubuntu-16.04.x86_64.1

Same as "virt-builder --list", so verified.

Comment 8 errata-xmlrpc 2018-04-10 09:20:40 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:0677


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