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

[4.12.z backport][4.8][OVN] RHEL 7.9 DHCP worker ovs-configuration fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.8
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Related to https://bugzilla.redhat.com/show_bug.cgi?id=2060476

      A backport of ovs-configuration introduced the use of ip -j addr show to output JSON for easier parsing.  Unfortunately the iproute2 version on RHEL 7.9 is too old to support the -j JSON option

      configure-ovs.sh[1516]: + extra_if_brex_args=
      configure-ovs.sh[1516]: ++ ip -j a show dev bond0
      configure-ovs.sh[1516]: ++ jq '.[0].addr_info | map(. | select(.family == "inet")) | length'
      configure-ovs.sh[1516]: Option "-j" is unknown, try "ip -help".
      configure-ovs.sh[1516]: + num_ipv4_addrs=
      configure-ovs.sh[1516]: + '[' '' -gt 0 ']'
      configure-ovs.sh[1516]: /usr/local/bin/configure-ovs.sh: line 290: [: : integer expression expected
      

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

      4.8.0-0.nightly-2022-11-02-105425
      

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy OVN cluster
      2. Add RHEL 7.9 DHCP workers
      3. oc adm node-logs $node -u ovs-configuration
       

      Actual results:

      As above

      Option "-j" is unknown, try "ip -help".
      

      Expected results:

      ovs-configuration succeeds

      + extra_if_brex_args=
      ++ ip a show dev bond0
      ++ grep -E '^[[:blank:]]*inet\b'
      ++ wc -l
      + num_ipv4_addrs=1
      + '[' 1 -gt 0 ']'
      + extra_if_brex_args+='ipv4.may-fail no '
      ++ ip a show dev bond0
      ++ grep -E '^[[:blank:]]*inet6\b'
      ++ grep -v '\bscope link\b'
      ++ wc -l
      + num_ip6_addrs=1
      + '[' 1 -gt 0 ']'
      + extra_if_brex_args+='ipv6.may-fail no '
      ++ nmcli --get-values ipv4.dhcp-client-id conn show a7cc816d-3dbd-34c5-9902-d6b2f2956d92
      + dhcp_client_id= + extra_if_brex_args=
      ++ ip a show dev bond0
      ++ grep -E '^[[:blank:]]*inet\b'
      ++ wc -l
      + num_ipv4_addrs=1
      + '[' 1 -gt 0 ']'
      + extra_if_brex_args+='ipv4.may-fail no '
      ++ ip a show dev bond0
      ++ grep -E '^[[:blank:]]*inet6\b'
      ++ grep -v '\bscope link\b'
      ++ wc -l
      + num_ip6_addrs=1
      + '[' 1 -gt 0 ']'
      + extra_if_brex_args+='ipv6.may-fail no '
      ++ nmcli --get-values ipv4.dhcp-client-id conn show a7cc816d-3dbd-34c5-9902-d6b2f2956d92
      + dhcp_client_id=
      

      Additional info:

       

            jcaamano@redhat.com Jaime Caamaño Ruiz
            rbrattai@redhat.com Ross Brattain
            Ross Brattain Ross Brattain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: