Uploaded image for project: 'Use OCPBUGS now'
  1. Use OCPBUGS now
  2. GRPA-4595

Silence ovnkube-lib.sh to avoid mass of logs to collectors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • openshift-4.16
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      • Deploy OpenShift 4.14+
      • check the ovnkube-node pods logs  
      $ oc -n openshift-ovn-kubernetes logs $(oc -n openshift-ovn-kubernetes get po -l app=ovnkube-node -oname | head -1) ovn-acl-logging | wc -l
       
      Show
      Deploy OpenShift 4.14+ check the ovnkube-node pods logs   $ oc -n openshift-ovn-kubernetes logs $(oc -n openshift-ovn-kubernetes get po -l app=ovnkube-node -oname | head -1) ovn-acl-logging | wc -l
    • 0

      silenced default output of ovnkube-lib.sh and made it ENV dependning instead

      on ~12 days running pods the amount of logs procuded is fairly high

      $ oc -n openshift-ovn-kubernetes get po -l app=ovnkube-node 
      NAME                 READY   STATUS    RESTARTS      AGE
      ovnkube-node-464zd   8/8     Running   8             12d
      ovnkube-node-9rrtb   8/8     Running   8             12d
      ...
      $ oc -n openshift-ovn-kubernetes logs $(oc -n openshift-ovn-kubernetes get po -l app=ovnkube-node -oname | head -1) ovn-acl-logging | wc -l
      431762

      unfortunately those logs are not helpful as they are bash's Print a trace of simple commands output only.
      With cloning the set -x behavior form ovnkube.sh the PR makes the output ENV controll able reducing logs in the default setup.

              anbhat Aniket Bhat
              rhn-support-milang Michaela Lang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: