This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2180346 - Rollback deactivated some ovs interfaces
Summary: Rollback deactivated some ovs interfaces
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-21 09:02 UTC by Mingyu Shi
Modified: 2023-08-17 09:59 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-17 09:59:23 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
nmstate.log (15.09 KB, text/plain)
2023-03-21 09:02 UTC, Mingyu Shi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-716 0 None None None 2023-08-17 08:25:15 UTC
Red Hat Issue Tracker   RHEL-1408 0 None None None 2023-08-17 09:59:22 UTC
Red Hat Issue Tracker RHELPLAN-165726 0 None None None 2023-08-14 10:06:30 UTC

Description Mingyu Shi 2023-03-21 09:02:30 UTC
Created attachment 1952292 [details]
nmstate.log

Description of problem:
Applied a state without commit, after rollback on timeout,some ovs interfaces were deactivated.


Version-Release number of selected component (if applicable):
nmstate-2.2.8-0.bz2156386.el9_2.x86_64
nispor-1.2.10-1.el9.x86_64
NetworkManager-1.42.2-1.el9.x86_64
openvswitch2.15-2.15.0-81.el9fdp.x86_64
DISTRO=RHEL-9.2.0-20230319.13


How reproducible:
100%

Steps to Reproduce:
echo "
interfaces:
- name: ovsbr0
  type: ovs-bridge
  state: up
  bridge:
    options:
      datapath: netdev
    port:
    - name: ovs0
    - name: dpdkbond0
      link-aggregation:
        mode: balance-slb
        port:
        - name: dpdk0
        - name: dpdk1
- name: dpdk0
  type: ovs-interface
  state: up
  dpdk:
    devargs: 0000:3b:00.0
    n_rxq: 100
    n_rxq_desc: 1024
    n_txq_desc: 2048
  mtu: 3000
- name: dpdk1
  type: ovs-interface
  state: up
  dpdk:
    devargs: 0000:3b:00.1
    rx-queue: 100
    n_rxq_desc: 1024
    n_txq_desc: 2048
  mtu: 3000
- name: ovs0
  type: ovs-interface
  state: up
" | nmstatectl apply

# change mtu to 2000 with --no-commit
echo "
---
interfaces:
- name: ovsbr0
  type: ovs-bridge
  state: up
  bridge:
    options:
      datapath: netdev
    port:
    - name: ovs0
    - name: dpdkbond0
      link-aggregation:
        mode: balance-slb
        port:
        - name: dpdk0
        - name: dpdk1
- name: dpdk0
  type: ovs-interface
  state: up
  dpdk:
    devargs: 0000:3b:00.0
    n_rxq: 100
    n_rxq_desc: 1024
    n_txq_desc: 2048
  mtu: 2000
- name: dpdk1
  type: ovs-interface
  state: up
  dpdk:
    devargs: 0000:3b:00.1
    rx-queue: 100
    n_rxq_desc: 1024
    n_txq_desc: 2048
  mtu: 2000
- name: ovs0
  type: ovs-interface
  state: up
" | nmstatectl apply --no-commit --timeout 10
sleep 15
ovs-vsctl show
nmcli con

Actual results:
Some ovs interfaces were removed after rollback
According to my test, the rollback result may vary, sometimes partially and sometimes all removed. In this attachment, it removed all

Expected results:
Rollback to the previous state without any changes

Additional info:
Test with i40e card on dell-per740-80.rhts.eng.pek2.redhat.com


Note You need to log in before you can comment on or make changes to this bug.