-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unexpected templating type error, coercing to Unicode: need string or buffer #80
Comments
Sounds like one of the |
@drybjed I don't think the issue is related to these variables, they are both explicitly set to a string value: TASK [DEBUG kubernetes_services_net] *******************************************
ok: [nemo] => {
"kubernetes_services_net": "10.0.0.0/16"
}
TASK [DEBUG kubernetes_cluster_domain] *******************************************************************
ok: [nemo] => {
"kubernetes_cluster_domain": "my.cluster"
} |
Can you show the debug value of |
Sure thing: TASK [Print 'custom_pki_realms' on each node] **********************************
ok: [nemo] => {
"custom_pki_realms": [
{
"name": "k8s",
"subject_alt_names": [
"ip:192.168.3.1",
"ip:10.0.0.1",
"dns:kubernetes.default.svc.my.cluster",
"dns:kubernetes.default.svc",
"dns:kubernetes.default",
"dns:kubernetes"
]
},
{
"name": "etcd",
"subject_alt_names": [
"ip:192.168.3.1",
"ip:10.0.0.3",
"dns:etcd.kube-system.svc.my.cluster",
"dns:etcd.kube-system.svc",
"dns:etcd.kube-system",
"dns:etcd"
]
}
]
} |
Well, hmm, they look ok... How about this - can you remove all subject_alt_names that contain any variables and see if the result works? Just to eliminate any other issues elsewhere. |
Done, I left only the 3 last dns: entries, without success. |
It works when |
And the normal If yes then I'm out of ideas... How about this, before that problematic task, add: - name: Show all the things
debug:
msg: '{{ pki_realms + pki_group_realms + pki_host_realms + pki_default_realms + pki_dependent_realms }}' Let's see whats templated just before it. |
Hmm, OK - it might be the same problem that with I guess it's time for a custom lookup for these tasks. |
It also works with multiple entries (see first post) if I call the role as follows: - role: debops.pki
tags: [ 'role::pki' ]
pki_dependent_realms: '{{ custom_pki_realms }}' This definitely reminds me of #78, as you mentioned. The normal The debug you asked me to post, just in case it helps: TASK [Show all the things] *****************************************************
ok: [noah] => {
"msg": [
{
"acme": false,
"name": "domain"
}
]
} |
@antoineco So when you move the |
The execution of the following playbook...
..throws the following error:
The text was updated successfully, but these errors were encountered: