Bug 1867016
Summary: | Got no callback for `NM.ActiveConnection.deactivate_connection_async()` when deactivating 100 profiles at once | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Gris Ge <fge> | ||||||||
Component: | NetworkManager | Assignee: | Beniamino Galvani <bgalvani> | ||||||||
Status: | CLOSED NOTABUG | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 8.3 | CC: | acardace, atragler, bgalvani, lrintel, rkhan, sukulkar, thaller, till | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | 8.4 | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2020-09-01 14:55:43 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: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 1738136 | ||||||||||
Attachments: |
|
Description
Gris Ge
2020-08-07 07:10:39 UTC
Created attachment 1710746 [details]
300.yml
Created attachment 1710747 [details]
300_absent.yml
The script `gen_state.py` in https://bugzilla.redhat.com/show_bug.cgi?id=1866269 could be used to generate yml file for nmstatectl to set. Created attachment 1710756 [details]
System logs with NM trace enabled
The error for above logs is: libnmstate.error.NmstateTimeoutError: Action {'Deactivate profile: dummy0.279'} timeout I have added a debug print in nmstate before calling client.deactivate_connection_async() and one in the callback. I see them both in the output, meaning that the callback was invoked: 2020-08-07 13:27:23,081 root DEBUG #### deactivate_connection_async: dummy0.279 ... 2020-08-07 13:27:23,186 root DEBUG Async queue(100) full, waiting all existing actions to be finished before registering more async action 2020-08-07 13:27:25,410 root DEBUG #### callback: dummy0.279 2020-08-07 13:27:25,410 root DEBUG Connection is not active on dummy0.279, no need to deactivate Then nmstate fails with: libnmstate.error.NmstateTimeoutError: Action {'Deactivate profile: dummy0.279'} timeout I think NM is behaving correctly in this case and perhaps nmstate is forgetting to cancel the timer for dummy0.279? Confirmed. Not a bug of NM. Nmstate is ignoring that callback. Sorry for the troubles. |