HTTP proxy not working on Rocky Linux (& likely other OS) after pull/10983 #11301
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
What happened?
When deploying on Rocky Linux with
http_proxy
set in an internet restricted environment, dnf install get stuck because/etc/dnf/dnf.conf
is not set withproxy
.Before #10983,
proxy
is set in/etc/dnf/dnf.conf
by https://github.com/kubernetes-sigs/kubespray/blob/v2.25.0/roles/bootstrap-os/tasks/centos.yml#L7. But that is NOT executed after #10983 becauseos_release_dict['ID']
isrocky
, but there isn't aroles/bootstrap-os/tasks/rocky.yml
, hence https://github.com/kubernetes-sigs/kubespray/blob/v2.25.0/roles/bootstrap-os/tasks/main.yml#L22 does not include bootstrap-os task for Rocky Linux.Symbolic link
roles/bootstrap-os/tasks/rocky.yml
toroles/bootstrap-os/tasks/centos.yml
fixes the issue.Please note that other operating systems are also likely affected as the changes in #10983 are not "backward compatible":
ol.yml
should symbolic link tocentos.yml
almalinux.yml
should symbolic link tocentos.yml
rocky.yml
should symbolic link tocentos.yml
kylin.yml
should symbolic link tocentos.yml
uos.yml
should symbolic link tocentos.yml
redhat.yml
should rename torhel.yml
clearlinux.yml
should rename toclear-linux-os.yml
What did you expect to happen?
/etc/dnf/dnf.conf
is set withproxy
on Rocky Linux.How can we reproduce it (as minimally and precisely as possible)?
Deploy on Rocky Linux with
http_proxy
set.OS
Rocky Linux 8.9
Version of Ansible
ansible==9.5.1
ansible-core==2.16.7
Version of Python
3.12
Version of Kubespray (commit)
v2.25.0
Network plugin used
flannel
Full inventory with variables
Command used to invoke ansible
Output of ansible run
Anything else we need to know
No response
The text was updated successfully, but these errors were encountered: