+++ This bug was initially created as a clone of Bug #692118 +++
Created attachment 479513 [details]
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):
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/
Here the repository is loopback mounted DVD under /var/www/html/rhel.
2. Complete the install and reboot.
The repository is silently accepted and the piranha package is installed.
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).
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.
--- Additional comment from firstname.lastname@example.org on 2011-03-30 09:17:16 EDT ---
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?
--- Additional comment from email@example.com on 2011-05-26 14:54:48 EDT ---
Can you see if RHEL 6.1 GA is still showing this problem?
--- Additional comment from firstname.lastname@example.org on 2011-05-27 07:03:17 EDT ---
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.
--- Additional comment from email@example.com on 2011-05-27 07:03:48 EDT ---
Created attachment 501281 [details]
1st error message
--- Additional comment from firstname.lastname@example.org on 2011-05-27 07:03:59 EDT ---
Created attachment 501282 [details]
2nd error message
--- Additional comment from email@example.com on 2011-05-27 07:04:19 EDT ---
Created attachment 501283 [details]
tarball with logs from stage2
--- Additional comment from firstname.lastname@example.org on 2011-06-27 09:12:51 EDT ---
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.
To sum up. When bug #738566 gets fixed yum needs to pass on the correct error message/error code so that other tools (e.g. anaconda) can interpret it properly.
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.
(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)
More information and reason for this action is here:
This message is a notice that Fedora 19 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 19. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 19 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.