Your inventory doesn't match the current cluster configuration - Calico checks against inventory does not always work as expected #8119
Labels
kind/bug
Categorizes issue or PR as related to a bug.
ansible --version
): Tested with 2.9.18 and 2.10.12python --version
): 3.9.7Kubespray version (commit) (
git rev-parse --short HEAD
): b83e8b0Tested with v1.15.x and v1.17.x
Network plugin used: Calico
Command used to invoke ansible:
ansible-playbook --become -i myinventory/inventory.ini -Kk cluster.yml -e kube_network_node_prefix=26
Output of ansible run:
Anything else do we need to know:
In our particular scenario, Calico's pool blockSize varies from the default 24. Initially, the playbook fails because of the different values. But as we pass
-e kube_network_node_prefix=26
to the command line, the playbook also fails.Debugging further, I found the assertion being made does not match, even when both values in the boolean equation are 26.
As a downside of Yaml parsing, one these values is a string and the other is an integer. Ansible needs to compare them with equal types. The workaround I found is to change the assertion to
The text was updated successfully, but these errors were encountered: