Bug 1966478
| Summary: | cannot apply current state when interfaces are attached to ovs | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Mingyu Shi <mshi> | ||||||
| Component: | nmstate | Assignee: | Gris Ge <fge> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Mingyu Shi <mshi> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 8.5 | CC: | ferferna, jiji, jishi, network-qe, sfaye, till | ||||||
| Target Milestone: | beta | Keywords: | Triaged | ||||||
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2022-07-20 09:15:00 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: | |||||||||
| Attachments: |
|
||||||||
Created attachment 1788444 [details]
error in nmstate.log
Hi Mingyu, I am using all the components that you described and I am not able to reproduce this. These were my steps: 1. Apply the state that you attached (nmstatectl apply ovs+dummy.yaml) 2. Run the following command: nmstatectl show | nmstatectl apply 3. Run this in a loop. Am I missing any step? Thank you! Hi Fernando
I reproduced it for about 6 of 10 times, with nmstate-1.1.0-0.3.alpha3.el8.noarch, please check the NM_trace.log
The timeline:
20:28:45 nmstatectl set ovs+dummy.yaml
20:32:22 nmstatectl show g0dum* > current.yaml
20:32:28 nmstatectl set current.yaml
2021-06-22 20:32:29,495 root ERROR Rollback failed with error Activate profile uuid:ff3f9871-b12e-42c3-97ea-1b1d86dea3cd iface:g0dummy31 type: dummy failed: reason=<enum NM_ACTIVE_CONNECTION_STATE_REASON_UNKNOWN of type NM.ActiveConnectionStateReason><enum NM_DEVICE_STATE_REASON_REMOVED of type NM.DeviceStateReason>
Traceback (most recent call last):
File "/usr/bin/nmstatectl", line 11, in <module>
load_entry_point('nmstate==1.1.0', 'console_scripts', 'nmstatectl')()
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 73, in main
return args.func(args)
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 326, in set
return apply(args)
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 343, in apply
args.save_to_disk,
File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 407, in apply_state
save_to_disk=save_to_disk,
File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 81, in apply
_apply_ifaces_state(plugins, net_state, verify_change, save_to_disk)
File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 114, in _apply_ifaces_state
plugin.apply_changes(net_state, save_to_disk)
File "/usr/lib/python3.6/site-packages/libnmstate/nm/plugin.py", line 201, in apply_changes
NmProfiles(self.context).apply_config(net_state, save_to_disk)
File "/usr/lib/python3.6/site-packages/libnmstate/nm/profiles.py", line 95, in apply_config
self._ctx.wait_all_finish()
File "/usr/lib/python3.6/site-packages/libnmstate/nm/context.py", line 213, in wait_all_finish
raise tmp_error
libnmstate.error.NmstateLibnmError: Activate profile uuid:d7339e0f-5359-4159-8b3e-e79f82237004 iface:g0dummy30 type: dummy failed: reason=<enum NM_ACTIVE_CONNECTION_STATE_REASON_UNKNOWN of type NM.ActiveConnectionStateReason><enum NM_DEVICE_STATE_REASON_REMOVED of type NM.DeviceStateReason>
This is fixed by bug 2005240 *** This bug has been marked as a duplicate of bug 2005240 *** |
Created attachment 1788443 [details] reproducer.sh Description of problem: Cannot apply current state when interfaces are attached to ovs Version-Release number of selected component (if applicable): nmstate-1.1.0-0.1.el8.noarch nispor-1.1.0-1.el8.x86_64 NetworkManager-1.32.0-0.4.el8.x86_64 Linux dell-per740-79.rhts.eng.pek2.redhat.com 4.18.0-305.7.el8.kpq1.x86_64 #1 SMP Mon May 17 13:36:02 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux openvswitch2.13-2.13.0-105.el8fdp.x86_64 nmstate-plugin-ovsdb-1.1.0-0.1.el8.noarch How reproducible: Nearly 100%, only 1 success during my test Steps to Reproduce: Run the reproducer in the attachment Actual results: Failed Expected results: No failure Additional info: According to my test so far, to reproduce we need: 1. Many interfaces 2. Some interfaces are attached to ovs