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

catalog-operator print too many unnecessary logs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.16
    • OLM
    • Low
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      catalog-operator print too many unnecessary logs

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

      xzha@xzha1-mac openshift-tests-private % oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.16.0-0.nightly-2024-02-26-013420   True        False         5h27m   Cluster version is 4.16.0-0.nightly-2024-02-26-013420 

      How reproducible:

          always

      Steps to Reproduce:

          1. check catalog-operator log
      oc logs catalog-operator-5869688998-sfm8f > catalog.416
      
      There are many info logs like bellow.
      
      time="2024-02-29T02:33:58Z" level=info msg="of 1 pods matching label selector, 1 have the correct images and matching hash" catalogsource.name=certified-operators catalogsource.namespace=openshift-marketplace correctHash=true correctImages=true current-pod.name=certified-operators-qnvhw current-pod.namespace=openshift-marketplace id=Kn3Us
      time="2024-02-29T02:33:58Z" level=info msg="ensured registry server" catalogsource.name=certified-operators catalogsource.namespace=openshift-marketplace id=Kn3Us
      time="2024-02-29T02:33:58Z" level=info msg="requeuing registry server sync based on polling interval 10m0s" catalogsource.name=certified-operators catalogsource.namespace=openshift-marketplace id=Kn3Us
      time="2024-02-29T02:33:59Z" level=info msg="syncing catalog source" catalogsource.name=community-operators catalogsource.namespace=openshift-marketplace id=4ARjE
      time="2024-02-29T02:33:59Z" level=info msg="synchronizing registry server" catalogsource.name=community-operators catalogsource.namespace=openshift-marketplace id=4ARjE
      time="2024-02-29T02:33:59Z" level=info msg="searching for current pods" catalogsource.name=community-operators catalogsource.namespace=openshift-marketplace id=4ARjE
      time="2024-02-29T02:33:59Z" level=info msg="evaluating current pod" catalogsource.name=community-operators catalogsource.namespace=openshift-marketplace correctHash=true correctImages=true current-pod.name=community-operators-fn9mj current-pod.namespace=openshift-marketplace id=4ARjE
      
      
      time="2024-02-29T02:32:31Z" level=info msg="checking if subscriptions need update" id=m2ty+ namespace=openshift-apiserver-operator
      time="2024-02-29T02:32:31Z" level=info msg="No subscriptions were found in namespace openshift-apiserver-operator" id=m2ty+ namespace=openshift-apiserver-operator
      time="2024-02-29T02:32:31Z" level=info msg="resolving sources" id=BYGR2 namespace=openshift-authentication
      
      xzha@xzha1-mac openshift-tests-private % cat catalog.416| wc -l
         52574
      
      xzha@xzha1-mac openshift-tests-private % cat catalog.416| grep "of 1 pods matching label selector"| wc -l    
          7872
      
      xzha@xzha1-mac openshift-tests-private % cat catalog.416| grep "checking if subscriptions need update"| wc -l
          2155
      
      
      
          2.
          3.
          

      Actual results:

      Too many useless logs 

      Expected results:

      Those logs should be debug level, not info level.

      Additional info:

          

              krizza@redhat.com Kevin Rizza
              rhn-support-xzha Xia Zhao
              Xia Zhao Xia Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: