-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
playbook fails when ShutdownGracePeriod and ShutdownGracePeriodCriticalPods are set #7991
Comments
Set kubelet_shutdown_grace_period_critical_pods to 180s |
Still fails with |
Was on my phone, this is kubespray assertion failing, would need to convert the duration to something we can compare, so I think we should just remove this assertion |
The defaults are:
So it is kind of strange why the issue does not show up for the defaults. If indeed ansible does string comparison then that would explain it and we need to fix it. A simple check would seem to confirm this:
I'll push a patch tomorrow as it's a bit late in the evening for me right now. |
…belet_shutdown_grace_period_critical_pods are compared as integers
Turns out the fix is rather simple... |
…belet_shutdown_grace_period_critical_pods are compared as integers
Environment:
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Linux 3.10.0-514.26.2.el7.x86_64 x86_64
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
ansible --version
):ansible 2.10.11
config file = /workspace/ansible.cfg
configured module search path = ['/workspace/library', '/workspace/kubespray/library']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0]
python --version
):Python 3.8.5
Kubespray version (commit) (
git rev-parse --short HEAD
): v2.17.0Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):Output of ansible run:
The text was updated successfully, but these errors were encountered: