Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP proxy not working on Rocky Linux (& likely other OS) after pull/10983 #11301

Open
snowmansora opened this issue Jun 17, 2024 · 1 comment
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.

Comments

@snowmansora
Copy link

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 with proxy.

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 because os_release_dict['ID'] is rocky, but there isn't a roles/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 to roles/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 to centos.yml
  • almalinux.yml should symbolic link to centos.yml
  • rocky.yml should symbolic link to centos.yml
  • kylin.yml should symbolic link to centos.yml
  • uos.yml should symbolic link to centos.yml
  • redhat.yml should rename to rhel.yml
  • clearlinux.yml should rename to clear-linux-os.yml

What did you expect to happen?

/etc/dnf/dnf.conf is set with proxy 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

@snowmansora snowmansora added the kind/bug Categorizes issue or PR as related to a bug. label Jun 17, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants