Bug 1964439

Summary: Using nmstate inside a pod prevents any OVS operation [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.5CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nmstate-1.0.2-8.el8_4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1964342 Environment:
Last Closed: 2021-06-29 16:05:05 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: 1964342    
Bug Blocks:    
Attachments:
Description Flags
verified.log none

Comment 4 Mingyu Shi 2021-06-20 14:01:51 UTC
Verified with versions:
nmstate-1.0.2-11.el8_4.noarch
nispor-1.0.1-4.el8.x86_64
NetworkManager-1.30.0-7.el8.x86_64
openvswitch2.13-2.13.0-105.el8fdp.x86_64

1. Configuring ovs inside a container works.
2. If OVS is unusable(for example, stopping the openvswitch daemon in the host), nmstate will raise an error when trying to update anything of ovs:
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/context.py", line 213, in wait_all_finish
    raise tmp_error
libnmstate.error.NmstateDependencyError: Activate profile uuid:ae19ff6a-2c17-4e0e-a021-3e2f16e3390e iface:ovsbr1 type: ovs-interface failed: failed to communicating with Open vSwitch database, <enum NM_DEVICE_STATE_REASON_OVSDB_FAILED of type NM.DeviceStateReason>
3. Even though openvswitch daemon stopped, the existed ovs interfaces(created by nmstate or NM) still can be shown:

Comment 5 Mingyu Shi 2021-06-20 14:02:17 UTC
Created attachment 1792520 [details]
verified.log

Comment 9 errata-xmlrpc 2021-06-29 16:05:05 UTC
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 (nmstate 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:2589