Closed baptistegh closed 4 days ago
The "ID" in /etc/os-release is "rhel" for RedHat and not "redhat" so the redhat.yml task in bootstrap-os is not being executed.
cat /etc/os-release ID="rhel" ...
The bootstrap-os tasks are loaded dynamically matching the "ID" field in /etc/os-release but it expects ID to be redhat.
/etc/os-release
redhat
On the previous version of kubespray, we could see that the redhat tasks where loaded with ID=rhel
ID=rhel
- name: Bootstrap RedHat include_tasks: bootstrap-redhat.yml when: '''ID="rhel"'' in os_release.stdout_lines'
bootstrap-os redhat specific tasks being executed
try to install on rhel8.10 nodes
Linux 4.18.0-553.5.1.el8_10.x86_64 x86_64 NAME="Red Hat Enterprise Linux" VERSION="8.10 (Ootpa)" ID="rhel" ID_LIKE="fedora" VERSION_ID="8.10" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux 8.10 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8" BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.10 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
ansible [core 2.16.13]
Python 3.11.10
v2.25.1
calico
not used
ansible-playbook -i inventory/prod --become --become-user root --user ansible cluster.yml
installed correctly but bootstrap-os was not executed
No response
/assign
What happened?
The "ID" in /etc/os-release is "rhel" for RedHat and not "redhat" so the redhat.yml task in bootstrap-os is not being executed.
The bootstrap-os tasks are loaded dynamically matching the "ID" field in
/etc/os-release
but it expects ID to beredhat
.On the previous version of kubespray, we could see that the redhat tasks where loaded with
ID=rhel
What did you expect to happen?
bootstrap-os redhat specific tasks being executed
How can we reproduce it (as minimally and precisely as possible)?
try to install on rhel8.10 nodes
OS
Linux 4.18.0-553.5.1.el8_10.x86_64 x86_64 NAME="Red Hat Enterprise Linux" VERSION="8.10 (Ootpa)" ID="rhel" ID_LIKE="fedora" VERSION_ID="8.10" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux 8.10 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8" BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.10 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
Version of Ansible
ansible [core 2.16.13]
Version of Python
Python 3.11.10
Version of Kubespray (commit)
v2.25.1
Network plugin used
calico
Full inventory with variables
not used
Command used to invoke ansible
ansible-playbook -i inventory/prod --become --become-user root --user ansible cluster.yml
Output of ansible run
installed correctly but bootstrap-os was not executed
Anything else we need to know
No response