2019-09-10 16:05:08 |
Takeo Komiyama |
description |
Brief Description
-----------------
When run ansible-playbook for bootstrap, in /var/log/daemon.log, it says,
2019-09-06T17:07:29.779 localhost kubelet[851987]: info W0906 17:07:29.779351 851987 cni.go:149] Error loading CNI config list file /etc/cni/net.d/10-calico.conflist: error parsing configuration list: invalid character '"' after object key:value pair
In role template,
/usr/share/ansible/stx-ansible/playbooks/bootstrap/roles/bringup-essential-services/templates/calico-cni.yaml.j2
It seems that "}," are missing at
cni_network_config: |-
{
"name": "k8s-pod-network",
"cniVersion": "0.3.0",
"plugins": [
{
"type": "calico",
"log_level": "info",
"datastore_type": "kubernetes",
"nodename": "__KUBERNETES_NODE_NAME__",
"mtu": __CNI_MTU__,
"ipam": {
"type": "calico-ipam",
"assign_ipv4": "{{ "true" if cluster_network_ipv4 else "false" }}",
"assign_ipv6": "{{ "true" if cluster_network_ipv6 else "false" }}" <-- Here
"policy": {
"type": "k8s"
},
Should be
"assign_ipv4": "{{ "true" if cluster_network_ipv4 else "false" }}",
"assign_ipv6": "{{ "true" if cluster_network_ipv6 else "false" }}"
},
"policy": {
"type": "k8s"
},
Severity
--------
Major
Steps to Reproduce
------------------
Step1: Install STX2.0
Step2: Prepare localhost.yml
Step3: Run ansible-playbook
Step4: See /var/log/daemon.log <-- Show error
Expected Behavior
------------------
No error in kubelet.
Actual Behavior
----------------
Error from kublet
Reproducibility
---------------
Reproducible
System Configuration
---------------
One node system
Branch/Pull Time/Commit
-----------------------
Last Pass
---------
Timestamp/Logs
--------------
Test Activity
-------------
Evaluation |
Brief Description
-----------------
When run ansible-playbook for bootstrap, in /var/log/daemon.log, it says,
2019-09-06T17:07:29.779 localhost kubelet[851987]: info W0906 17:07:29.779351 851987 cni.go:149] Error loading CNI config list file /etc/cni/net.d/10-calico.conflist: error parsing configuration list: invalid character '"' after object key:value pair
In role template,
/usr/share/ansible/stx-ansible/playbooks/bootstrap/roles/bringup-essential-services/templates/calico-cni.yaml.j2
It seems that "}," are missing at
cni_network_config: |-
{
"name": "k8s-pod-network",
"cniVersion": "0.3.0",
"plugins": [
{
"type": "calico",
"log_level": "info",
"datastore_type": "kubernetes",
"nodename": "__KUBERNETES_NODE_NAME__",
"mtu": __CNI_MTU__,
"ipam": {
"type": "calico-ipam",
"assign_ipv4": "{{ "true" if cluster_network_ipv4 else "false" }}",
"assign_ipv6": "{{ "true" if cluster_network_ipv6 else "false" }}" <-- Here
"policy": {
"type": "k8s"
},
Should be
"assign_ipv4": "{{ "true" if cluster_network_ipv4 else "false" }}",
"assign_ipv6": "{{ "true" if cluster_network_ipv6 else "false" }}"
},
"policy": {
"type": "k8s"
},
Severity
--------
Major
Steps to Reproduce
------------------
Step1: Install STX2.0
Step2: Prepare localhost.yml
Step3: Run ansible-playbook
Step4: See /var/log/daemon.log <-- Show error
Expected Behavior
------------------
No error in kubelet.
Actual Behavior
----------------
Error from kublet
Reproducibility
---------------
Reproducible
System Configuration
---------------
One node system
Branch/Pull Time/Commit
-----------------------
Last Pass
---------
Timestamp/Logs
--------------
Attached localhost.yml
Test Activity
-------------
Evaluation |
|