mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 18:40:33 +01:00
team: perform cleanup immediately when connecting to teamd fails
When NM fails to connect to teamd during an activation, it sets the device state to FAILED. Eventually the device will become DISCONNECTED and will call the ->deactivate() method that will perform the cleanup of timers, teamd process and teamdctl instance. However, in this way, when the device is DISCONNECTED timers are still armed and can be triggered in the wrong state. Instead, perform the cleanup immediately on failure. https://bugzilla.redhat.com/show_bug.cgi?id=1856723 (cherry picked from commit26e97fcd0d) (cherry picked from commit680c0b8812)
This commit is contained in:
parent
8e4936f0d8
commit
7d4f3298aa
1 changed files with 1 additions and 0 deletions
|
|
@ -371,6 +371,7 @@ teamd_ready (NMDeviceTeam *self)
|
|||
success = teamd_read_config (self);
|
||||
|
||||
if (!success) {
|
||||
teamd_cleanup (self, TRUE);
|
||||
nm_device_state_changed (device, NM_DEVICE_STATE_FAILED, NM_DEVICE_STATE_REASON_TEAMD_CONTROL_FAILED);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue