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.
DescriptionAlexander Todorov
2011-03-30 13:15:09 UTC
+++ This bug was initially created as a clone of Bug #678580 +++
Created attachment 479513[details]
anaconda.log
Description of problem:
When using https with self-signed certificate one needs to use the --noverifyssl option to the url and repo commands in kickstart. If the user specifies --noverifyssl only for the url command the listed repository is silently accepted although its certificate can't be verified.
Version-Release number of selected component (if applicable):
anaconda-13.21.97-1.el6.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Configure HTTPS with self-signed certificate and put into your ks.cfg:
url --url https://example.com/rhel --noverifyssl
repo --name=LoadBalancer --baseurl=https://example.com/rhel/LoadBalancer/
%packages --ignoremissing
@Core
piranha
%end
Here the repository is loopback mounted DVD under /var/www/html/rhel.
2. Complete the install and reboot.
3.
Actual results:
The repository is silently accepted and the piranha package is installed.
Expected results:
The repository is ignored because its certificate can't be verified (either with an error dialog or silently) and the piranha package is not installed (because of --ignoremissing).
Additional info:
In anaconda.log we find:
14:01:25,571 INFO : anaconda called with cmdline = ['/usr/bin/anaconda', '--stage2', 'https://dell-per810-01.lab.bos.redhat.com/rhel/images/install.img', '--dlabel', '--kickstart', '/tmp/ks.cfg', '--graphical', '--selinux', '--lang', 'en_US.UTF-8', '--keymap', 'us', '--repo', 'https://dell-per810-01.lab.bos.redhat.com/rhel', '--noverifyssl']
Which sounds like --noverifyssl for url acts like a global parameter.
Comment 1Alexander Todorov
2011-03-30 13:17:16 UTC
I believe the original bug against curl has been fixed. With anaconda 13.21.107 the repo wasn't silently accepted but instead a big error message telling me that repo metadata can't be read was shown.
Is it possible to show error message telling the user that the SSL certificate of the repository is not trusted instead of showing a generic read error?
atodorov,
Can you see if RHEL 6.1 GA is still showing this problem?
Comment 7Alexander Todorov
2011-05-27 11:03:17 UTC
Hi David,
6.1 GA no longer silently accepts the repository but issues errors which I'm not sure a bug or not.
Anaconda says unable to read metadata for the repository and when you select to "Continue" it doesn't simply ignore it but shows another error message and the user has to exit the installer. I'm attaching screenshots and a tarball of logs from stage2.
Comment 8Alexander Todorov
2011-05-27 11:03:48 UTC
The exception is raised by yum with the explanatory error message:
"Cannot retrieve repository metadata (repomd.xml) for repository: %s. Please verify its path and try again"
Besides this no indication is given on why exactly the access has failed, therefore Anaconda can not do any better than displaying a generic message that access to the repo has failed and redisplaying whatever yum gave us. Reassigning to yum, yum maintainers please provide a flag in the exception or similar that will allow us to deduce that the call failed because an ssl connection with unverifiable peer certificate has been attempted.
Comment 25Alexander Todorov
2011-09-15 08:10:38 UTC
Given that this likely requires backports for libcurl/pycurl and urlgrabber, and maybe yum. How late it is in RHEL-6, and how little it should happen in real life, I'm going to close this. It should be fixed in RHEL-7.