Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1868574

Summary: Report applied when creating ovs internal interface without ovs bridge
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: low Docs Contact:
Priority: low    
Version: 8.3CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
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-05-18 15:17:12 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:

Description Mingyu Shi 2020-08-13 07:32:58 UTC
Description of problem:
State applied when creating ovs internal interface without ovs bridge, but nothing happened

Version-Release number of selected component (if applicable):
nmstate-0.3.4-10.el8.noarch
NetworkManager-1.26.0-3.el8.x86_64
DISTRO=RHEL-8.3.0-20200808.n.0
Linux dell-per730-01.dell2.lab.eng.bos.redhat.com 4.18.0-229.el8.x86_64 #1 SMP Thu Jul 30 16:19:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
openvswitch-selinux-extra-policy-1.0-19.el8fdp.noarch
openvswitch2.13-2.13.0-39.el8fdp.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create an ovs interface, while ovs bridge doesn't exist
2.
3.

Actual results:
Desired state applied, but nothing in sysfs and ovsdb

Expected results:
A corresponding ovs bridge is needed 

Additional info:
[15:27:57@dell-per730-01 ~]0# nmstatectl set ovs-internal_only.yaml 
2020-08-13 15:28:02,093 root         DEBUG    Async action: Create checkpoint started
2020-08-13 15:28:02,096 root         DEBUG    Checkpoint None created for all devices
2020-08-13 15:28:02,096 root         DEBUG    Async action: Create checkpoint finished
2020-08-13 15:28:02,113 root         DEBUG    Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/1 started
2020-08-13 15:28:02,114 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/1 destroyed
2020-08-13 15:28:02,114 root         DEBUG    Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/1 finished
Desired state applied: 
---
interfaces:
- name: ovs0
  type: ovs-interface
  state: up
[15:28:02@dell-per730-01 ~]0# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether b8:2a:72:de:4b:53 brd ff:ff:ff:ff:ff:ff
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:2a:72:de:4b:54 brd ff:ff:ff:ff:ff:ff
4: eno3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:2a:72:de:4b:55 brd ff:ff:ff:ff:ff:ff
5: enp6s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:f7:70:35:70 brd ff:ff:ff:ff:ff:ff
6: eno4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:2a:72:de:4b:56 brd ff:ff:ff:ff:ff:ff
7: enp6s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:f7:70:35:72 brd ff:ff:ff:ff:ff:ff
8: idrac: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether b0:83:fe:c5:46:8c brd ff:ff:ff:ff:ff:ff
385: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 62:5c:34:08:81:66 brd ff:ff:ff:ff:ff:ff
[15:28:05@dell-per730-01 ~]0# ovs-vsctl show
34427904-6e74-4228-92ce-8e60eb18fa6e
    ovs_version: "2.13.0"

Comment 2 Mingyu Shi 2021-01-18 11:46:53 UTC
Verified with versions:
nmstate-1.0.1-0.20210115115643933056.pr1478.27.gc9b2298.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.5.el8.x86_64

[19:39:59@hp-dl380pg8-11 /mnt/tests/kernel/networking/nmstate/libnmstate]0# echo "---
> interfaces:
> - name: ovs0
>   type: ovs-interface
>   state: up" | nmstatectl set
2021-01-18 19:43:09,106 root         DEBUG    Async action: Retrieve applied config: ethernet eno1 started
2021-01-18 19:43:09,109 root         DEBUG    Async action: Retrieve applied config: ethernet eno1 finished
Traceback (most recent call last):
  File "/usr/bin/nmstatectl", line 11, in <module>
    load_entry_point('nmstate==1.0.1', 'console_scripts', 'nmstatectl')()
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 70, in main
    return args.func(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 291, in apply
    args.save_to_disk,
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 320, in apply_state
    save_to_disk=save_to_disk,
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 69, in apply
    net_state = NetState(desired_state, current_state, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/net_state.py", line 43, in __init__
    save_to_disk,
  File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/ifaces.py", line 157, in __init__
    self._pre_edit_validation_and_cleanup()
  File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/ifaces.py", line 208, in _pre_edit_validation_and_cleanup
    self._mark_orphan_as_absent()
  File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/ifaces.py", line 416, in _mark_orphan_as_absent
    f"Failed to find parent interface for {iface.name}"
libnmstate.error.NmstateValueError: Failed to find parent interface for ovs0

Comment 5 Mingyu Shi 2021-01-20 09:35:32 UTC
Verified with versions:
nmstate-1.0.1-1.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.5.el8.x86_64

Comment 7 errata-xmlrpc 2021-05-18 15:17:12 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 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/RHBA-2021:1748