mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Timeout on RHEL subscription check (#12115)
subscription-manager status can in some circumstances just never terminates, with nothing indicating the problem from the Ansible playbook log. This makes it difficult to find the hosts misbehaving. Add a timeout to the subscription checks (defaulting to 3 minutes). This should be more than enough for normal circumstances while allowing easier troubleshooting, as the hosts will be FAILED instead of the playbook just waiting indefinitely.
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
## CentOS/RHEL/AlmaLinux specific variables
|
## CentOS/RHEL/AlmaLinux specific variables
|
||||||
# Use the fastestmirror yum plugin
|
# Use the fastestmirror yum plugin
|
||||||
centos_fastestmirror_enabled: false
|
centos_fastestmirror_enabled: false
|
||||||
|
# Timeout (in seconds) for checking RHEL subscription status
|
||||||
|
rh_subscription_check_timeout: 180
|
||||||
|
|
||||||
## Flatcar Container Linux specific variables
|
## Flatcar Container Linux specific variables
|
||||||
# Disable locksmithd or leave it in its current state
|
# Disable locksmithd or leave it in its current state
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
register: rh_subscription_status
|
register: rh_subscription_status
|
||||||
changed_when: "rh_subscription_status.rc != 0"
|
changed_when: "rh_subscription_status.rc != 0"
|
||||||
ignore_errors: true # noqa ignore-errors
|
ignore_errors: true # noqa ignore-errors
|
||||||
|
timeout: "{{ rh_subscription_check_timeout }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: RHEL subscription Organization ID/Activation Key registration
|
- name: RHEL subscription Organization ID/Activation Key registration
|
||||||
|
|||||||
Reference in New Issue
Block a user