Bug 1782686
| Summary: | Cannot disable IP stack when having on-going DHCP client | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 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: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 8.2 | CC: | atragler, bgalvani, lrintel, rkhan, sukulkar, thaller | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | 8.2 | ||||||||
| 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: | 2019-12-17 06:45:54 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, 1782680 | ||||||||
| Attachments: |
|
||||||||
|
Description
Gris Ge
2019-12-12 06:50:39 UTC
Created attachment 1644311 [details]
System logs with NM trace enabled
Created attachment 1644312 [details]
Reproduce script
The script starts an activation in background and then a new activation of the same connection: sudo nmcli c up eth1 & sleep 1 sudo nmcli c modify eth1 ipv4.method disabled sudo nmcli c up eth1 When the second activation is started, the first one is canceled and gives error DEVICE_DISCONNECTED (which corresponds to the message "The base network connection was interrupted" displayed by the first nmcli instance), while the second activation succeeds. It seems correct to make the first activation fail when there is a new one for the same connection. Note that the end of the script, the interface is properly configured with ipv4.method=disabled, which is the last configuration requested. The update of connection with 'ipv4.method=disabled' doesn't seem to matter, the same behavior is observed without the connection update. (In reply to Beniamino Galvani from comment #3) > The script starts an activation in background and then a new > activation of the same connection: > > sudo nmcli c up eth1 & > sleep 1 > sudo nmcli c modify eth1 ipv4.method disabled > sudo nmcli c up eth1 > > When the second activation is started, the first one is canceled and > gives error DEVICE_DISCONNECTED (which corresponds to the message "The > base network connection was interrupted" displayed by the first nmcli > instance), while the second activation succeeds. In nmstate, the second activation failed. This bug is just demonstration the problem via nmcli. > > It seems correct to make the first activation fail when there is a new > one for the same connection. Note that the end of the script, the > interface is properly configured with ipv4.method=disabled, which is > the last configuration requested. > > The update of connection with 'ipv4.method=disabled' doesn't seem to > matter, the same behavior is observed without the connection update. (In reply to Gris Ge from comment #4) > In nmstate, the second activation failed. This bug is just demonstration > the problem via nmcli. I don't see anything wrong in the log attached, the first activation request is canceled and fails, the second activation succeeds. Can you also share a NM log when using nmstate? Perhaps it is doing something different from nmcli. (In reply to Beniamino Galvani from comment #5) > (In reply to Gris Ge from comment #4) > > In nmstate, the second activation failed. This bug is just demonstration > > the problem via nmcli. > > I don't see anything wrong in the log attached, the first activation > request is canceled and fails, the second activation succeeds. > > Can you also share a NM log when using nmstate? Perhaps it is doing > something different from nmcli. I believe I found the root cause of it. When we noticied a on-going activation, we wait on it instead of submit new activate_async call. Will work in nmstate and close this bug if works. Closing this bug, this is not a issue of NetworkManager and should be fixed by nmstate. |