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.
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 2Richard 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 3Richard W.M. Jones
2014-11-17 11:30:33 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