I am trying to kickstart a centos 8. However it fails. It doesn’t seem to find the AppStream repository although it’s configured in the kickstart file.
Foreman and Proxy versions:
Distribution and version:
Other relevant data:
The rendered kickstart template correctly contains the urls:
url --url http://foreman.example.com/pulp/repos/ORG/Production/centos8/custom/centos8/BaseOS_x86_64/
# renamed from "http://foreman.example.com/pulp/repos/ORG/Production/centos8/custom/centos8/AppStream_x86_64/" for CentOS Anaconda to work
repo --name AppStream --baseurl http://foreman.example.com/pulp/repos/ORG/Production/centos8/custom/centos8/AppStream_x86_64/
both URLs are correct and show the corresponding content. It’s also correctly on the kickstarting server at /run/install/ks.cfg.
However the anaconda log shows
ERR payload.manager: PayloadError: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
The httpd access logs on the foreman server shows these accessed URIs:
I was having the same issue with provisioning from Satellite 6.8.2, but only with CentOS 8 Stream. CentOS 8 Linux worked fine. Changing the end of the .treeinfo file referenced above resolved the issue:
id = AppStream
name = AppStream
packages = Packages
repository = .
type = variant
uid = AppStream