Salt installation fail if base package not installed on rhel #3075
Labels
complexity:medium
Something that requires one or few days to fix
kind:bug
Something isn't working
priority:medium
Medium priority issues, should only be postponed if no other option
topic:deployment
Bugs in or enhancements to deployment stages
Milestone
Component:
'salt', 'deployment'
What happened:
If for whatever reason some Salt dependencies are not installed on the system prior to bootstrap the salt-minion installation failed:
It fail because as part of metalk8s-saltstack we include some "base" dependencies packages signed with CentOS base gpg key and this key is not part of this repo and by default not installed on rhel machines
What was expected:
Working bootstrap even if some "base" dependencies packages are not yet installed (even if the CentOS base gpg key is not accepted yet)
Steps to reproduce
python-kitchen
is not installed on the machineResolution proposal (optional):
First note that those base packages are part of the default saltstack repo in a specific "base" directory with the CentOS gpg key and note also that those package are all available in default base repo of CentOS and RHEL
2 different solutions:
1- We embed the CentOS base gpg key as part of metalk8s-saltstack repo and we add this one in the repo definition
2- We do not embed any base package in metalk8s-saltstack, since MetalK8s rely on base packages to be available on the host before bootstrap, anyway it does not make sense to include those packages also in metalk8s-saltstack
IMHO we should go for 2- it does not make sense to include those base packages as part of our metalk8s-saltstack repo
Workaround:
As a simple workaround
1- either install the dependencies manually from base repository (e.g.: for python-kitchen)
2- either import CentOS base gpg key (e.g. from saltstack repo)
Even if it's may require more manual steps I suggest to use the 1- method as it will install RHEL supported packages
The text was updated successfully, but these errors were encountered: