Bug 1970453
| Summary: | OVS restore flow script specifies OpenFlow14 leading error | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Alexander Constantinescu <aconstan> |
| Component: | Networking | Assignee: | Alexander Constantinescu <aconstan> |
| Networking sub component: | openshift-sdn | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | unspecified | CC: | zzhao |
| Version: | 4.6 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.6.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1970452 | Environment: | |
| Last Closed: | 2021-06-29 06:26:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1970452 | ||
| Bug Blocks: | |||
|
Description
Alexander Constantinescu
2021-06-10 13:47:09 UTC
*** Bug 1970444 has been marked as a duplicate of this bug. *** *** Bug 1970447 has been marked as a duplicate of this bug. *** Verified this bug on 4.6.0-0.nightly-2021-06-19-165544
$ oc get ds ovs -n openshift-sdn -o yaml | grep -i flows.sh
TMPDIR=/var/run/openvswitch /usr/share/openvswitch/scripts/ovs-save save-flows $bridges > /var/run/openvswitch/flows.sh
if [[ -f /var/run/openvswitch/flows.sh ]]; then
# There's a bug in the ovs-save script which causes flows.sh to specify
sed -i 's/OpenFlow[0-9][0-9]/OpenFlow13/g' /var/run/openvswitch/flows.sh
mv /var/run/openvswitch/flows.sh /var/run/openvswitch/flows-old.sh
sh-4.4# cat /var/run/openvswitch/flows.sh
ovs-ofctl add-tlv-map br0 ''
ovs-ofctl -O OpenFlow14 add-groups br0 "/tmp/ovs-save.S8hpVLS3AN/br0.groups.dump" --bundle
ovs-ofctl -O OpenFlow14 replace-flows br0 "/tmp/ovs-save.S8hpVLS3AN/br0.flows.dump" --bundle
rm -rf "/tmp/ovs-save.S8hpVLS3AN"
sh-4.4# sed -i 's/OpenFlow[0-9][0-9]/OpenFlow13/g' /var/run/openvswitch/flows.sh
sh-4.4# cat /var/run/openvswitch/flows.sh
ovs-ofctl add-tlv-map br0 ''
ovs-ofctl -O OpenFlow13 add-groups br0 "/tmp/ovs-save.S8hpVLS3AN/br0.groups.dump" --bundle
ovs-ofctl -O OpenFlow13 replace-flows br0 "/tmp/ovs-save.S8hpVLS3AN/br0.flows.dump" --bundle
rm -rf "/tmp/ovs-save.S8hpVLS3AN"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6.36 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2498 |