-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.8
-
None
-
Moderate
-
None
-
False
-
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:
- clones
-
OCPBUGS-3192 [4.8][OVN] RHEL 7.9 DHCP worker ovs-configuration fails
- Closed
- depends on
-
OCPBUGS-3192 [4.8][OVN] RHEL 7.9 DHCP worker ovs-configuration fails
- Closed
- is cloned by
-
OCPBUGS-3197 [4.11.z backport][4.8][OVN] RHEL 7.9 DHCP worker ovs-configuration fails
- Closed
- is depended on by
-
OCPBUGS-3197 [4.11.z backport][4.8][OVN] RHEL 7.9 DHCP worker ovs-configuration fails
- Closed