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

network-tools needs to be updated to give ovn-k master leader info

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.13.z
    • None
    • None
    • SDN Sprint 231, SDN Sprint 232
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      network-tools stopped giving ovn-k master leader info in 4.13, the tool needs to use the lease instead of the configmap for ovn-master.

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

      4.13

      How reproducible:

       

      Steps to Reproduce:

      1.
      
      $ IMG='quay.io/ffernand/network-tools-test:latest'
      
      $ oc adm must-gather --image=${IMG} -- network-tools ovn-get leaders 2>/dev/null | grep leader
      [must-gather-b78wd] POD 2023-02-06T19:42:07.242285507Z ovn-k master leader 
      [must-gather-b78wd] POD 2023-02-06T19:42:07.669951803Z nbdb leader ovnkube-master-7cdlc
      [must-gather-b78wd] POD 2023-02-06T19:42:08.113287051Z sbdb leader ovnkube-master-7cdlc 
      
      ovn-k master leader info is missing
      2.
      3.
      

      Actual results:

       

      Expected results:

      it should give ovn-k master leader info similar to what it gives in prior-4.13 version, for example in this 4.11 version:
      
      [ff@sdn-12 ~]$ oc adm must-gather --image=${IMG} -- network-tools ovn-get leaders 2>/dev/null | grep leader
      [must-gather-l727d] POD 2023-02-06T19:39:31.135487892Z ovn-k master leader ovnkube-master-rqsqn              <===== here!
      [must-gather-l727d] POD 2023-02-06T19:39:31.758928575Z nbdb leader ovnkube-master-rqsqn
      [must-gather-l727d] POD 2023-02-06T19:39:32.067661600Z sbdb leader ovnkube-master-d4txs

      Additional info:

       

            pdiak@redhat.com Patryk Diak
            jechen@redhat.com Jean Chen
            Jean Chen Jean Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: