Kmesh CNI overwrite cni conflist with empty value
hzxuzhonghu opened this issue · comments
What happened:
After running kmesh for some time, we cannot restart kmesh daemon and also not able to start a new application pod.
By looking into kmesh logs, we do see:
time="2024-03-06T10:06:41Z" level=info msg="Copied /usr/bin/kmesh-cni to /opt/cni/bin." subsys="cni installer"
time="2024-03-06T10:06:41Z" level=info msg="failed to read conflist: /etc/cni/net.d/10-calico.conflist, error parsing configuration list: unexpected end of JSON input" subsys="cni installer"
time="2024-03-06T10:06:41Z" level=error msg="can not found the valid cni config!\n" subsys="cni installer"
time="2024-03-06T10:06:41Z" level=error msg="can not found the valid cni config!\n" subsys=manager
What you expected to happen:
Kmesh should not overwrite invalid conflist
How to reproduce it (as minimally and precisely as possible):
not sure how to reproduce
Anything else we need to know?:
Environment:
- Kmesh version:
- Others: