Bug 1216298

Summary: 'inspect-get-icon' fails to get the icon form the rhel7.1 image
Product: Red Hat Enterprise Linux 6 Reporter: Hu Zhang <huzhan>
Component: libguestfsAssignee: Pino Toscano <ptoscano>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7CC: leiwang, linl, ptoscano, rjones, tlavigne, wshi, xchen
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.20.11-16.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 19:55:44 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:
Bug Depends On: 1164619    
Bug Blocks: 1301844    

Description Hu Zhang 2015-04-29 04:33:44 UTC
Description of problem:
'inspect-get-icon' fails to get the icon corresponding to rhel7.1 image. This works well on rhel7.1 host.


Version-Release number of selected component (if applicable):
libguestfs-1.20.11-14.el6.x86_64
libguestfs-tools-c-1.20.11-14.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Get a rhel7.1 raw image.

2. # guestfish -a $rhel7.1-img
><fs> run
><fs> inspect-os
/dev/rhel_dhcp-11-144/root
><fs> mount /dev/rhel_dhcp-11-144/root /
><fs> inspect-get-icon /dev/VolGroup/lv_root favicon:true highquality:true | tee icon.png

3. Check the icon.png
# file -b icon.png

Actual results:
Step 2, nothing returned.
Step 3,
# file -b icon.png
empty                                                                                      

Expected results:
'inspect-get-icon' gets the icon form the rhel7.1 image successfully.

Additional info:

Comment 2 Pino Toscano 2015-04-29 17:25:59 UTC
This has been fixed upstream and in RHEL 7.1, see bug #1164619.

Should be easy enough to backport the two commits.

Comment 4 Xianghua Chen 2015-12-02 06:18:25 UTC
Verified with the packages:
libguestfs-1.20.11-16.el6.x86_64
libguestfs-tools-c-1.20.11-16.el6.x86_64


Verify steps:
1. Get a rhel7.1 raw image:RHEL-Server-7.1-64-hvm.raw

2. # guestfish -a RHEL-Server-7.1-64-hvm.raw
><fs> run
 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ --:--
><fs> inspect-os
/dev/rhel/root
><fs> mount /dev/rhel/root  /
><fs> inspect-get-icon /dev/rhel/root favicon:true highquality:true | tee icon.png

3. Check the icon.png
# file -b icon.png
PNG image data, 128 x 128, 16-bit/color RGBA, non-interlaced


So verified.

Comment 6 errata-xmlrpc 2016-05-10 19:55:44 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://rhn.redhat.com/errata/RHBA-2016-0762.html