Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-43677

OVN_LOG_LEVEL=err is not reflecting for ovnkube-controller container

XMLWordPrintable

    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None
    • 11/04 confirmed that log_level=4 turns of debug even in ovnkube-controller pod; pxe_input

      Description of problem:

      The requirement is to configure `ovnkube-controller` POD to generate less logs. As per the documentation applied the following settings. 

       

       

      $oc get cm env-overrides -o yaml
      apiVersion: v1
      data:
        master1: |
          OVN_KUBE_LOG_LEVEL=2
          OVN_LOG_LEVEL=err
        master2: |
          OVN_KUBE_LOG_LEVEL=2
          OVN_LOG_LEVEL=err
        master3: |
          OVN_KUBE_LOG_LEVEL=2
          OVN_LOG_LEVEL=err
      .....
      ......
       
      $ oc logs -c ovnkube-controller ovnkube-node-xsgvm |grep -i level +++ OVN_KUBE_LOG_LEVEL=2 +++ OVN_LOG_LEVEL=err + local log_level=2 + exec /usr/bin/ovnkube --init-ovnkube-controller master-1 --init-node master-1 --config-file=/run/ovnkube-config/ovnkube.conf --ovn-empty-lb-events --loglevel 2 --inactivity-probe=180000 --gateway-mode local --gateway-interface br-ex --metrics-bind-address 127.0.0.1:29103 --ovn-metrics-bind-address 127.0.0.1:29105 --metrics-enable-pprof --metrics-enable-config-duration --export-ovs-metrics --disable-snat-multiple-gws --enable-multi-network --enable-multi-networkpolicy --enable-admin-network-policy --enable-multicast --zone master-1 --enable-interconnect --acl-logging-rate-limit 20 --bootstrap-kubeconfig=/var/lib/kubelet/kubeconfig --cert-dir=/etc/ovn/ovnkube-node-certs --cert-duration=24h
       
      

       

      But ovnkube-controller container still generates unnecessary debug/verbose logs. 

       

      Version-Release number of selected component (if applicable):

      4.14

      4.15

      4.16

      How reproducible:

      • Refer to the steps given in the document,]]. 
      • Use the following  configmap 
      $oc get cm env-overrides -o yaml
      apiVersion: v1
      data:
        master1: |
          OVN_KUBE_LOG_LEVEL=2
          OVN_LOG_LEVEL=err
        master2: |
          OVN_KUBE_LOG_LEVEL=2
          OVN_LOG_LEVEL=err
        master3: |
          OVN_KUBE_LOG_LEVEL=2
          OVN_LOG_LEVEL=err
      • Restart ovn-kube PODs and check the logs 

              sdn-team-bot sdn-team bot
              rhn-support-rsahoo Ramesh Sahoo
              Anurag Saxena Anurag Saxena
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: