Bug #5495
closedCannot 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'