Bug 1899746
| Summary: | [ovn] error while waiting on flows for pod: OVS sandbox port is no longer active (probably due to a subsequent CNI ADD) | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ross Brattain <rbrattai> |
| Component: | Networking | Assignee: | Tim Rozet <trozet> |
| Networking sub component: | ovn-kubernetes | QA Contact: | Anurag saxena <anusaxen> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | urgent | ||
| Priority: | high | CC: | aconstan, asood, huirwang, mifiedle, trozet, weliang, zzhao |
| Version: | 4.7 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-24 15:35:02 UTC | Type: | Bug |
| 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: | |||
| Bug Blocks: | 1888827 | ||
|
Description
Ross Brattain
2020-11-19 21:51:27 UTC
For some reason OVS is adding quotes around certain iface-ids:
external_ids : {attached_mac="0a:58:0a:80:02:11", iface-id="9hcck_test-rc-dxrdj", ip_addresses="10.128.2.17/23", sandbox="25367df8807fff0676589c1ce5184c09e9f9976471c59f6327464789f1365f83"}
but when I create a pod with a similar name:
external_ids : {attached_mac="0a:58:0a:80:02:39", iface-id=default_test-rc-dxrdj, ip_addresses="10.128.2.57/23", sandbox=cd0afe17d69b4dffda9210d49750e6076b34e6b1caf5998f720a2c8deaa7c592}
I'm not sure why, but the obvious solution is to just trim out quotes when we run CNI ovs-vsctl commands.
Aniket pointed out that the quotes are added by ovsdb when the value starts with a number :) Verified on 4.7.0-0.nightly-2020-11-22-204912
OVN feature tests passed.
Able to create Pods in a project that starts with a digit.
external_ids : {attached_mac="0a:58:0a:81:02:14", iface-id="1234_test-rc-sxrzm", ip_addresses="10.129.2.20/23", sandbox="3a5bf555f272342f290aa29d4034731302ace5b65ff1ffc58292891321dc2f35"}
external_ids : {attached_mac="0a:58:0a:83:00:06", iface-id="1234_test-rc-nwfjd", ip_addresses="10.131.0.6/23", sandbox="6d89d0a5e45a916bcd5f5ed615e728983690bf929882be3e8782060642651452"}
external_ids : {attached_mac="0a:58:0a:81:02:14", iface-id="1234_test-rc-sxrzm", ip_addresses="10.129.2.20/23", sandbox="3a5bf555f272342f290aa29d4034731302ace5b65ff1ffc58292891321dc2f35"}
QE note:
create a project that starts with a digit, then create pods. Check for iface-id="1234.*" in the iface-id.
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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/RHSA-2020:5633 |