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 1164619 - Inspect-get-icon failed on RHEL7 guest
Summary: Inspect-get-icon failed on RHEL7 guest
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1216298
TreeView+ depends on / blocked
 
Reported: 2014-11-17 02:23 UTC by yuliu
Modified: 2015-04-29 17:25 UTC (History)
5 users (show)

Fixed In Version: libguestfs-1.28.1-1.11.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:47:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0303 0 normal SHIPPED_LIVE libguestfs bug fix and enhancement update 2015-03-05 17:34:44 UTC

Description yuliu 2014-11-17 02:23:10 UTC
Description of problem:
Execute inspect-get-icon failed on RHEL7 guest. Others okay.

How reproducible:
100%

Steps to Reproduce:
><fs> list-filesystems
/dev/sda1: xfs
/dev/rhel_dhcp-11-144/root: xfs
/dev/rhel_dhcp-11-144/swap: swap
><fs> inspect-os
/dev/rhel_dhcp-11-144/root
><fs> mount /dev/rhel_dhcp-11-144/root /
><fs> df
Filesystem                          1K-blocks    Used Available Use% Mounted on
tmpfs                                   97876     120     97756   1% /run
/dev                                   242296       0    242296   0% /dev
/dev/mapper/rhel_dhcp--11--144-root   7022592 3996264   3026328  57% /sysroot
><fs> trace 1
><fs> inspect-get-icon /dev/rhel_dhcp-11-144/root
libguestfs: trace: inspect_get_icon "/dev/rhel_dhcp-11-144/root"
libguestfs: trace: is_file "/etc/favicon.png" "followsymlinks:true"
libguestfs: trace: is_file = 1
libguestfs: trace: file "/etc/favicon.png"
libguestfs: trace: file = "symbolic link"
libguestfs: trace: is_file "/usr/share/pixmaps/redhat/shadowman-transparent.png" "followsymlinks:true"
libguestfs: trace: is_file = 0
libguestfs: trace: inspect_get_icon = ""


Actual results:
Failed.

Expected results:
Should pass.

Additional info:
inspect-get-icon get file /etc/favicon.png and /usr/share/pixmaps/redhat/shadowman-transparent.png from the guest as the icon of the guest operating system, but in rhel7 there is no /usr/share/pixmaps/redhat/shadowman-transparent.png, so from the trace you can see:
libguestfs: trace: is_file "/usr/share/pixmaps/redhat/shadowman-transparent.png" "followsymlinks:true"
libguestfs: trace: is_file = 0

due to this guestfish failed to get the icon. But when ' /usr/share/pixmaps/redhat/shadowman-transparent.png' is not available it should choose /etc/favicon.png as the icon. (See 'help inspect-get-icon')

Also you can display the icon by this way:
# yum install -y ImageMagick

In guestfish:
><fs> inspect-get-icon /dev/VolGroup/lv_root | display -

Comment 2 Richard W.M. Jones 2014-11-17 09:43:38 UTC
There are two bugs here:

(1) For RHEL 7 we've assumed there will be a shadowman icon
in /sysroot/usr/share/pixmaps/redhat/shadowman-transparent.png
but this is not present in RHEL 7 (or possibly requires extra
packages -- still investigating).

(2) When we request a favicon, /etc/favicon.png isn't being read,
even though it's a valid symlink pointing to a png file.

Comment 5 yuliu 2014-11-18 06:27:55 UTC
><fs> inspect-get-icon /dev/rhel_dhcp-11-144/root 
�PNG

�����9��:�Ӣ���{�s�s9We��@3�/m3��d��TG�!3p�+m^L��)�j�@ڤ��"p�u.C�w�)k�MJ��V���UԢ �MQ-CqԅJ
                                                                                   p������MD;0������v�A�Cx��x�X�
                                                                                                                   |O��:d��c@v8q*�Q���AHk��������h�zX9����y��f�e�t�
>�:�����<\u�l&JE��,�u�J�z�M�$����                                                                                                                                    ��^���cνH#0Rtp89骧��b��2��p�Zc<kU�g
                                       ���z�}ڑ�7��n�[�vn����o��V�C����������si��EJT�$i�<ʦy�S��LY[��L׃#-������X,&
                                                                                                                     �K'��|�B��ŕ��P��)4�J�z�@"��h��d��EDZD�(5d۶�����ƆLOM-�A�T��}�˓8\��o"� ���I����Ȉgc}}*>;�-_BD�����BDd6�8t����vBD���F�ʀ2䮈X��l����|D�����
                     m�~`	x,���k�K�!K��G�>IEND�B`�><fs>

Verified as above.

Comment 7 errata-xmlrpc 2015-03-05 13:47:19 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-2015-0303.html


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