Open
Description
What happened?
Install new cluster.
Run playbook cluster.yml
What did you expect to happen?
No error.
How can we reproduce it (as minimally and precisely as possible)?
error if use calico_advertise_cluster_ips: true
OS
Ubuntu 22
Version of Ansible
9.13.0
Version of Python
3.10
Version of Kubespray (commit)
v2.28.0
Network plugin used
calico
Full inventory with variables
...
calico_advertise_cluster_ips: true
...
Command used to invoke ansible
ansible-playbook cluster.yml
Output of ansible run
cmd:
- /usr/local/bin/calicoctl.sh
- apply
- -f
- '-'
msg: non-zero return code
rc: 1
stderr: 'Failed to execute command: error parsing document: yaml: line 11: found character that cannot start any token'
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
Anything else we need to know
debug out:
_bgp_config is string | ternary(_bgp_config, _bgp_config | to_json): |-
{
"kind": "BGPConfiguration",
"apiVersion": "projectcalico.org/v3",
"metadata": {
"name": "default",
},
"spec": {
"listenPort": 179,
"logSeverityScreen": "Info",
"asNumber": 64502, "nodeToNodeMeshEnabled": true ,
"serviceClusterIPs": >-
[{"cidr": "10.0.228.0/22"}], "serviceExternalIPs": []
}
}
this line create not valid json