Allow dl.suse.com in SMT to make CDN switch to Akami work #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SMT currently does not detect
dl.suse.com
anddl-ipv4.suse.com
as SUSE owned repositories and automatically disables authentication on these repositories (CATALOGTYPE == 'zypp` instead of 'nu').To fix this the hosts need to be added to
NUHOSTS
.How to test this fix:
(first, prepare for impact, grab a coffee)
Run a SMT using Vagrant. Here the vagrant file:
When ready connect via
vagrant ssh
and configure SMT as usual (hint:sudo yast2 smt-wizard
)After that you need a glue with https://github.com/SUSE/happy-customer/pull/7982 applied and configuration updated (you need to point glues
default_url_options
towards the address for the host inside your vagrant container. Probably something along the line192.168.121.1
).Run glue and update
/etc/smt.conf
to point towards your host.Now the switchover:
Update SMT from here: https://download.opensuse.org/repositories/home:/fschnizlein:/branches:/SUSE:/SLE-12-SP1:/Update/SLE_12_SP5/home:fschnizlein:branches:SUSE:SLE-12-SP1:Update.repo
You done it congrats!
Thanks for this review, I know this is not fun