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:
Two bugs for the price of one BZ :)
libvirt-client ships the virt-pki-validate script, but this script is useless if certtool is not available. Then the script has improper shell quoting, rendering its output message worthless.
Version-Release number of selected component (if applicable):
libvirt-client-0.8.7-7.el6
How reproducible:
100%
Steps to Reproduce:
1. On a fresh machine, install libvirt-client.
2. Run virt-pki-validate
Actual results:
1. gnutls-utils is not installed, so certtool is missing
2. the script reports "Found ", instead of the intended fall-back error message:
echo "Could not locate the certtool program"
echo "make sure the gnutls-utils (or gnutls-bin) package is installed"
Expected results:
1. gnutls-utils should be installed
2. the script's first output line should be "Found /usr/bin/certtool"
Additional info:
Fixed by two upstream patches:
https://www.redhat.com/archives/libvir-list/2011-February/msg00812.htmlhttps://www.redhat.com/archives/libvir-list/2011-February/msg00910.html
Verified this bug passed with libvirt-0.8.7-8.el6.
# rpm -Uvh libvirt-client-0.8.7-8.el6.x86_64.rpm
error: Failed dependencies:
gnutls-utils is needed by libvirt-client-0.8.7-8.el6.x86_64
# yum -y install libvirt-client-0.8.7-8.el6.x86_64.rpm
Loaded plugins: refresh-packagekit, rhnplugin
Setting up Install Process
Examining libvirt-client-0.8.7-8.el6.x86_64.rpm: libvirt-client-0.8.7-8.el6.x86_64
Marking libvirt-client-0.8.7-8.el6.x86_64.rpm as an update to libvirt-client-0.8.7-7.el6.x86_64
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: libvirt-client = 0.8.7-7.el6 for package: libvirt-python-0.8.7-7.el6.x86_64
--> Processing Dependency: libvirt-client = 0.8.7-7.el6 for package: libvirt-0.8.7-7.el6.x86_64
---> Package libvirt-client.x86_64 0:0.8.7-8.el6 set to be updated
--> Processing Dependency: gnutls-utils for package: libvirt-client-0.8.7-8.el6.x86_64
--> Finished Dependency Resolution
# virt-pki-validate
Found /usr/bin/certtool
the /etc/pki/libvirt directory is missing, it is usually
installed by the libvirt package
as root do: mkdir -m 755 /etc/pki/libvirt ; chown root:root /etc/pki/libvirt
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHBA-2011-0596.html
Description of problem: Two bugs for the price of one BZ :) libvirt-client ships the virt-pki-validate script, but this script is useless if certtool is not available. Then the script has improper shell quoting, rendering its output message worthless. Version-Release number of selected component (if applicable): libvirt-client-0.8.7-7.el6 How reproducible: 100% Steps to Reproduce: 1. On a fresh machine, install libvirt-client. 2. Run virt-pki-validate Actual results: 1. gnutls-utils is not installed, so certtool is missing 2. the script reports "Found ", instead of the intended fall-back error message: echo "Could not locate the certtool program" echo "make sure the gnutls-utils (or gnutls-bin) package is installed" Expected results: 1. gnutls-utils should be installed 2. the script's first output line should be "Found /usr/bin/certtool" Additional info: Fixed by two upstream patches: https://www.redhat.com/archives/libvir-list/2011-February/msg00812.html https://www.redhat.com/archives/libvir-list/2011-February/msg00910.html