Can not change the calico node log level
hrj713 opened this issue · 2 comments
After edit the configmap's log_level
to error
and set FELIX_LOGSEVERITYSYS
pod environment variable as error
, I can still see lots of INFO
level logs when attach the canal pod
2018-08-10 07:32:28.642 [INFO][34] health.go 150: Overall health summary=&health.HealthReport{Live:true, Ready:true}
2018-08-10 07:32:30.177 [INFO][34] health.go 150: Overall health summary=&health.HealthReport{Live:true, Ready:true}
2018-08-10 07:32:31.022 [INFO][34] int_dataplane.go 733: Applying dataplane updates
2018-08-10 07:32:31.022 [INFO][34] ipsets.go 222: Asked to resync with the dataplane on next update. family="inet"
2018-08-10 07:32:31.022 [INFO][34] ipsets.go 253: Resyncing ipsets with dataplane. family="inet"
2018-08-10 07:32:31.026 [INFO][34] ipsets.go 295: Finished resync family="inet" numInconsistenciesFound=0 resyncDuration=3.923535ms
2018-08-10 07:32:31.026 [INFO][34] int_dataplane.go 747: Finished applying updates to dataplane. msecToApply=4.3865680000000005
2018-08-10 07:32:31.623 [INFO][34] int_dataplane.go 733: Applying dataplane updates
Expected Behavior
Only error level logs are output
Current Behavior
Can not find a way to change the log level
Steps to Reproduce (for bugs)
- edit the configmap, set
log_level
aserror
- edit the daemonset, set the
FELIX_LOGSEVERITYSYS
aserror
- kubectl attach calico-pod -n kube-system -c calico-node
Context
Did I miss anything or this is not the right way to config the log level?
Your Environment
- Calico version: v3.1.3
- Flannel version: v0.9.1
- kubernetes version: v1.11.0
- Operating System and version: ubuntu16.04
I think that is the wrong env var to set in the daemonset. I think you should use FELIX_LOGSEVERITYSCREEN
, that one you edited is for sending logs to syslog. I think that manifest needs to be fixed, I just checked and if you look at https://docs.projectcalico.org/v3.1/getting-started/kubernetes/installation/hosted/calico.yaml you'll see it uses the env var I suggested.
I've put up projectcalico/calico#2116 to fix the docs(manifests).