Salt 3005: Can't install Salt via Salt Cloud on CentOS9 due to missing SALTSTACK-GPG-KEY2.pub in repository (wrong location?)
Bootstrap script has this code (in __install_saltstack_rhel_onedir_repository:
base_url="${HTTP_VAL}://${_REPO_URL}/${_ONEDIR_DIR}/${__PY_VERSION_REPO}/redhat/${DISTRO_MAJOR_VERSION}/\$basearch/${ONEDIR_REV}/"
if [ "${DISTRO_MAJOR_VERSION}" -eq 9 ]; then
gpg_key="SALTSTACK-GPG-KEY2.pub"
else
gpg_key="SALTSTACK-GPG-KEY.pub"
fi
But SALTSTACK-GPG-KEY2.pub is is in different location in repo: https://repo.saltproject.io/salt/py3/redhat/9/x86_64/3005/
Bootstrap script tries to download it from https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALTSTACK-GPG-KEY2.pub instead, so there's clear mismatch between where file is located and from where it should be downloaded. This is kinda strange, because it looks like deploy script is looking for correct location, so… what's going on?!
* ERROR: Failed to run install_centos_onedir_deps()!!!
[DEBUG ] * ERROR: https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALTSTACK-GPG-KEY2.pub failed to download to /tmp/salt-gpg-jJ6dLvK9.pub
Looks like this URL bug is only in onedir installation method:
onedir vs standard packages
@morsik Thanks for the report. I believe this one should have been fixed by this PR. https://github.com/saltstack/salt-bootstrap/pull/1863
Closing this one out, if the problem persists please let us know. Thanks!