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

sos report with --all-logs does not collect the rotated/compressed libovsdb log files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.14
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • No
    • None
    • None
    • None
    • SDN Sprint 243, SDN Sprint 244
    • 2
    • None
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      Description of problem:

      sos report with --all-logs does not collect the rotated/compressed libovsdb log files, they should be collected as the OVN-IC TE slide: https://docs.google.com/presentation/d/1HXhY0cK5wiO-xRrbKdATpZ3xRCQPXJy_WRY-Ys9IjcM/edit#slide=id.g275ee0f10c2_0_876 

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

      OCP version: 4.14.0-0.nightly-2023-10-06-234925
      sos report version: sos-4.5.6-1.el9.noarch

      How reproducible:

      always

      Steps to Reproduce:

      1. install 4.14 cluster
      
      
      2. debug into one node, run toolbox
      $ oc debug node/ip-10-0-57-58
      Starting pod/ip-10-0-57-58-debug ...
      To use host binaries, run `chroot /host`
      Pod IP: 10.0.57.58
      If you don't see a command prompt, try pressing enter.
      sh-4.4# chroot /host
      sh-5.1# toolbox
      Trying to pull registry.redhat.io/rhel9/support-tools:latest...
      Getting image source signatures
      Checking if image destination supports signatures
      Copying blob 3b7adf049118 skipped: already exists 
      Copying blob 6846d6b7272b done 
      Copying config 4288d91b2b done 
      Writing manifest to image destination
      Storing signatures
      4288d91b2bfe3f2a5a7c87bc8dbee11d3936e6941120928d00f853162bd14401
      Spawning a container 'toolbox-root' with image 'registry.redhat.io/rhel9/support-tools'
      Detected RUN label in the container image. Using that as the default...
      13be2209e3b7cf9680871f1db9ef55354f605b10660a4b7636928a03fb1156b0
      toolbox-root
      Container started successfully. To exit, type 'exit'.
      [root@ip-10-0-57-58 /]#
      
      
      3. run sos report with --all-logs
      [root@ip-10-0-57-58 /]# sos report --all-logs
      ...
      Your sosreport has been generated and saved in:
      	/host/var/tmp/sosreport-ip-10-0-57-58-2023-10-09-sovjbeq.tar.xz
      ...
      
      
      4. extract and check the collected data

      Actual results:

      there is no rotated/compressed libovsdb log files collected:
      
      % ls -l sosreport-ip-10-0-57-58-2023-10-09-sovjbeq/var/lib/ovn-ic/etc/   
      total 4488
      -rw-r-----  1 qiowang  staff   715044 Oct  9 21:24 ovnnb_db.db
      -rw-r-----  1 qiowang  staff  1579932 Oct  9 21:24 ovnsb_db.db

      Expected results:

      The following files should be collected with --all-logs options
      /var/lib/ovn-ic/etc/libovsdb.log
      /var/lib/ovn-ic/etc/libovsdb*log.gz 

      Additional info:

       

              pepalani@redhat.com Periyasamy Palanisamy
              rh-ee-qiowang Qiong Wang
              None
              None
              Qiong Wang Qiong Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: