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 1724465 - fail to add bond when add and delete repeatedly with nmstatectl
Summary: fail to add bond when add and delete repeatedly with nmstatectl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.2
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-27 07:26 UTC by Jianlin Shi
Modified: 2023-05-27 09:41 UTC (History)
2 users (show)

Fixed In Version: nmstate-0.2.3-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:00:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-583 0 None None None 2023-05-27 09:41:05 UTC
Red Hat Issue Tracker RHELPLAN-37327 0 None None None 2023-05-27 09:39:51 UTC
Red Hat Product Errata RHBA-2020:1696 0 None None None 2020-04-28 16:00:25 UTC

Description Jianlin Shi 2019-06-27 07:26:01 UTC
Description of problem:
fail to add bond when add and delete repeatedly with nmstatectl

Version-Release number of selected component (if applicable):
0.0.7-1

How reproducible:
Always

Steps to Reproduce:
#!/bin/bash

ip netns add server
ip link add veth0_s_p type veth peer name veth0_s netns server
ip link add veth0 type veth peer name veth0_br
ip link add veth1 type veth peer name veth1_br

ip link add br0 type bridge

ip link set veth0_br master br0
ip link set veth1_br master br0
ip link set veth0_s_p master br0

ip link set br0 up
ip link set veth0_br up
ip link set veth1_br up

ip link set veth0_s_p up

ip netns exec server ip link set lo up
ip netns exec server ip link set veth0_s up
ip netns exec server ip addr add 192.168.0.2/24 dev veth0_s

while :
do
cat > bond0_test.yaml << EOF
interfaces:                         
- name: veth0
  type: ethernet
  state: up
  ipv4:
    enabled: false
  ipv6:
    enabled: false
  mtu: 1500
- name: veth1
  type: ethernet
  state: up
  ipv4:
    enabled: false
  ipv6:
    enabled: false
  mtu: 1500
- name: bond0
  type: bond
  state: up
  link-aggregation:
    mode: balance-xor
    slaves:
    - veth0
    - veth1
  ipv4:                                                                                               
    dhcp: false                                                                                       
    enabled: true
    address:
    - ip: 192.168.0.1
      prefix-length: 24
  ipv6:                                                                                               
    dhcp: false                                                                                       
    enabled: true
    address:
    - ip: 2000::1
      prefix-length: 64
  mtu: 1500
EOF
    if ! nmstatectl set bond0_test.yaml
    then
	    break
#    else
#	    sleep 10
    fi

cat > bond0_absent.yaml << EOF
---
interfaces:
- name: veth0
  type: ethernet
  state: down
- name: veth1
  type: ethernet
  state: down
- name: bond0
  type: bond
  state: absent
  link-aggregation:
    mode: balance-rr
    slaves:
    - veth0
    - veth1
  ipv4:
    address:
    - ip: 192.168.0.1
      prefix-length: 24
    enabled: true
    dhcp: false
  ipv6:
    address:
    - ip: 2000::1
      prefix-length: 64
    enabled: true
    dhcp: false
  mtu: 1500
EOF
nmstatectl set bond0_absent.yaml
done

Actual results:
fail to add bond: 
autoconnect_slaves: <enum NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_YES of type NM.SettingConnectionAutoconnectSlaves>                                                                                       
2019-06-27 07:21:48,585 root         DEBUG    Executing NM action: func=add_connection_async                                                                                                                
2019-06-27 07:21:48,638 root         DEBUG    Connection adding succeeded: dev=bond0                                                                                                                        
2019-06-27 07:21:48,638 root         DEBUG    Executing NM action: func=safe_activate_async                                                                         
2019-06-27 07:21:48,668 root         DEBUG    Connection activation initiated: dev=bond0, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
2019-06-27 07:21:48,672 root         DEBUG    Connection activation succeeded: dev=bond0, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATED of type NM.ActiveConnectionState>
2019-06-27 07:21:48,673 root         DEBUG    NM action queue exhausted, quiting mainloop 
2019-06-27 07:21:48,699 root         DEBUG    Editing interfaces: ['veth0', 'veth1']
2019-06-27 07:21:48,699 root         DEBUG    Connection settings for ConnectionSetting.import_by_profile:
id: Wired connection 1                                                                
iface: None                    
uuid: 149485d6-446a-3f40-8f2b-4083b32db0c1                                                  
type: 802-3-ethernet                                                     
autoconnect: True                                                                    
autoconnect_slaves: <enum NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT of type NM.SettingConnectionAutoconnectSlaves>
2019-06-27 07:21:48,700 root         DEBUG    Connection settings for ConnectionSetting.create:     
id: veth1                       
iface: veth1                                                     
uuid: 76d223c7-92b6-418a-8106-a7090605b270
type: 802-3-ethernet                                                                             
autoconnect: True                          
autoconnect_slaves: <enum NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_YES of type NM.SettingConnectionAutoconnectSlaves>
2019-06-27 07:21:48,702 root         DEBUG    Executing NM action: func=commit_changes_async
2019-06-27 07:21:48,706 root         DEBUG    Connection update succeeded: dev=veth0
2019-06-27 07:21:48,706 root         DEBUG    Executing NM action: func=add_connection_async
2019-06-27 07:21:48,726 root         DEBUG    Connection adding succeeded: dev=veth1
2019-06-27 07:21:48,726 root         DEBUG    Executing NM action: func=safe_activate_async
2019-06-27 07:21:48,727 root         DEBUG    Connection activation in progress: dev=veth0, state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>
                                                               
2019-06-27 07:22:08,719 root         WARNING  NM main-loop timed out.
2019-06-27 07:22:08,754 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/550 rollback executed: dbus.Dictionary({dbus.String('/org/freedesktop/NetworkManager/Devices/361'): dbus
.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/364'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/362'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkMan
ager/Devices/363'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/359'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/360'): dbus.UInt32(0), dbus.String('/or
g/freedesktop/NetworkManager/Devices/2'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/1'): dbus.UInt32(0)}, signature=dbus.Signature('su'))
Traceback (most recent call last):            
  File "/usr/bin/nmstatectl", line 11, in <module>
    load_entry_point('nmstate==0.0.7', 'console_scripts', 'nmstatectl')()
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 59, in main
    return args.func(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 187, in apply
    args.timeout)              
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 206, in apply_state
    checkpoint = libnmstate.apply(state, verify_change, commit, timeout) 
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 59, in apply
    state.State(desired_state), verify_change, commit, rollback_timeout) 
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 132, in _apply_ifaces_state
    _edit_interfaces(state2edit)
  File "/usr/lib64/python3.6/contextlib.py", line 88, in __exit__
    next(self.gen)                       
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 184, in _setup_providers
    mainloop.error))
libnmstate.error.NmstateLibnmError: Unexpected failure of libnm when running the mainloop: run timeout

Expected results:
no error, the script doesn't exit

Additional info:


[root@kvm-06-guest02 bond]# rpm -q nmstate
nmstate-0.0.7-1.el8.noarch
[root@kvm-06-guest02 bond]# uname -a
Linux kvm-06-guest02.hv2.lab.eng.bos.redhat.com 4.18.0-107.el8.x86_64 #1 SMP Fri Jun 14 13:46:34 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@kvm-06-guest02 bond]# rpm -q NetworkManager
NetworkManager-1.20.0-0.1.el8.x86_64

Comment 5 errata-xmlrpc 2020-04-28 16:00: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, 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-2020:1696


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