Bug #5495
Cannot validate ISO content url
Description
Commit f0581b72a63bd9c4aca36f62c59523097fa338b9 added the ability to check if the cdn url for a repo is valid or not, and throw an error if it's not valid. Unfortunately it didn't take into account that some repositories (like ISO repos) do not contain yum repodata, and instead have pulp manifests. This causes the validation of ISO repositories to always fail with errors like so:
CDN: Requesting path https://cdn.redhat.com:443/content/dist/rhel/server/6/6Server/x86_64/iso/repodata
CDN loading error: https://cdn.redhat.com:443/content/dist/rhel/server/6/6Server/x86_64/iso/repodata not found
{"basearch"=>"x86_64", "releasever"=>"6Server"} are not valid substitutions for /content/dist/rhel/server/6/$releasever/$basearch/iso (RuntimeError)
/home/sherr/katello/app/models/katello/candlepin/content.rb:93:in `check_substitutions!'
/home/sherr/katello/app/lib/actions/katello/repository_set/enable_repository.rb:24:in `plan'
Associated revisions
History
#1
Updated by Stephen Herr about 9 years ago
Pull request submitted: https://github.com/Katello/katello/pull/4016
#2
Updated by Stephen Herr about 9 years ago
- Subject changed from Cannot validage ISO content url to Cannot validate ISO content url
#3
Updated by Eric Helms almost 9 years ago
- Triaged changed from No to Yes
#4
Updated by Eric Helms almost 9 years ago
- Legacy Backlogs Release (now unused) set to 13
Fixes #5495 - Validate content urls for ISO repositories