[Bug 2088459] [NEW] Problems with NetworkManager and merging of existing configuration
Danilo Egea Gondolfo
2088459 at bugs.launchpad.net
Mon Nov 18 13:54:27 UTC 2024
Public bug reported:
Merging existing configuration with newly created connections can lead
to problems.
See the scenario below:
Existing configuration:
# cat /etc/netplan/10-dummy.yaml
network:
dummy-devices:
dummy0:
renderer: NetworkManager
addresses:
- 192.168.0.1/24
Adding a connection through nmcli for the same interface:
# nmcli con add type dummy ifname dummy0
Error: Failed to add 'dummy-dummy0' connection: Message recipient disconnected from message bus without replying
Error:
Nov 18 13:42:06 plucky-nm generate[8830]: Permissions for /etc/netplan/10-dummy.yaml are too open. Netplan configuration should NOT be accessible by others.
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: <error> [1731937327.2073] BUG: the profile cannot be stored in keyfile format without becoming unusable: invalid connection: ipv4.addresses: this property is not allowed for 'method=disabled'
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: **
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: Bail out! nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:42:07 plucky-nm systemd[1]: NetworkManager.service: Main process exited, code=dumped, status=6/ABRT
Nov 18 13:42:07 plucky-nm systemd[1]: NetworkManager.service: Failed with result 'core-dump'.
Nov 18 13:42:07 plucky-nm systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 1.
Nov 18 13:42:07 plucky-nm systemd[1]: Starting NetworkManager.service - Network Manager...
Trying to cope with the existing configuration doesn't help a lot:
# nmcli con add type dummy ifname dummy0 ipv4.method manual ipv4.address 192.168.0.1/24
Error: Failed to add 'dummy-dummy0' connection: Message recipient disconnected from message bus without replying
In this case the error is not even clear:
Nov 18 13:49:59 plucky-nm generate[1156]: Permissions for /etc/netplan/10-dummy.yaml are too open. Netplan configuration should NOT be accessible by others.
Nov 18 13:49:59 plucky-nm NetworkManager[810]: **
Nov 18 13:49:59 plucky-nm NetworkManager[810]: nm:ERROR:../src/core/settings/nm-settings-utils.c:103:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:49:59 plucky-nm NetworkManager[810]: Bail out! nm:ERROR:../src/core/settings/nm-settings-utils.c:103:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:49:59 plucky-nm systemd[1]: NetworkManager.service: Main process exited, code=dumped, status=6/ABRT
Nov 18 13:49:59 plucky-nm systemd[1]: NetworkManager.service: Failed with result 'core-dump'.
Nov 18 13:49:59 plucky-nm systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 1.
Nov 18 13:49:59 plucky-nm systemd[1]: Starting NetworkManager.service - Network Manager...
Applying the configuration works anyway:
root at plucky-nm:~# netplan apply
root at plucky-nm:~# nmcli con show
NAME UUID TYPE DEVICE
Wired connection 1 65bff577-bc73-38c1-8b95-e0acf92e0913 ethernet enp5s0
dummy-dummy0 354ebe07-b386-42fb-ab8b-ee8c3486d033 dummy dummy0
lo 9b307900-2954-4e7c-b63e-c7246d1cecfc loopback lo
root at plucky-nm:~# netplan get
network:
version: 2
dummy-devices:
dummy0:
renderer: NetworkManager
addresses:
- "192.168.0.1/24"
networkmanager:
uuid: "354ebe07-b386-42fb-ab8b-ee8c3486d033"
name: "dummy-dummy0"
passthrough:
proxy: {}
ipv6:
addr-gen-mode: "default"
method: "disabled"
ip6-privacy: "-1"
dummy: {}
** Affects: netplan.io (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2088459
Title:
Problems with NetworkManager and merging of existing configuration
Status in netplan.io package in Ubuntu:
New
Bug description:
Merging existing configuration with newly created connections can lead
to problems.
See the scenario below:
Existing configuration:
# cat /etc/netplan/10-dummy.yaml
network:
dummy-devices:
dummy0:
renderer: NetworkManager
addresses:
- 192.168.0.1/24
Adding a connection through nmcli for the same interface:
# nmcli con add type dummy ifname dummy0
Error: Failed to add 'dummy-dummy0' connection: Message recipient disconnected from message bus without replying
Error:
Nov 18 13:42:06 plucky-nm generate[8830]: Permissions for /etc/netplan/10-dummy.yaml are too open. Netplan configuration should NOT be accessible by others.
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: <error> [1731937327.2073] BUG: the profile cannot be stored in keyfile format without becoming unusable: invalid connection: ipv4.addresses: this property is not allowed for 'method=disabled'
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: **
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:42:07 plucky-nm NetworkManager[8623]: Bail out! nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:42:07 plucky-nm systemd[1]: NetworkManager.service: Main process exited, code=dumped, status=6/ABRT
Nov 18 13:42:07 plucky-nm systemd[1]: NetworkManager.service: Failed with result 'core-dump'.
Nov 18 13:42:07 plucky-nm systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 1.
Nov 18 13:42:07 plucky-nm systemd[1]: Starting NetworkManager.service - Network Manager...
Trying to cope with the existing configuration doesn't help a lot:
# nmcli con add type dummy ifname dummy0 ipv4.method manual ipv4.address 192.168.0.1/24
Error: Failed to add 'dummy-dummy0' connection: Message recipient disconnected from message bus without replying
In this case the error is not even clear:
Nov 18 13:49:59 plucky-nm generate[1156]: Permissions for /etc/netplan/10-dummy.yaml are too open. Netplan configuration should NOT be accessible by others.
Nov 18 13:49:59 plucky-nm NetworkManager[810]: **
Nov 18 13:49:59 plucky-nm NetworkManager[810]: nm:ERROR:../src/core/settings/nm-settings-utils.c:103:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:49:59 plucky-nm NetworkManager[810]: Bail out! nm:ERROR:../src/core/settings/nm-settings-utils.c:103:<unknown-fcn>: assertion failed: (<dropped>)
Nov 18 13:49:59 plucky-nm systemd[1]: NetworkManager.service: Main process exited, code=dumped, status=6/ABRT
Nov 18 13:49:59 plucky-nm systemd[1]: NetworkManager.service: Failed with result 'core-dump'.
Nov 18 13:49:59 plucky-nm systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 1.
Nov 18 13:49:59 plucky-nm systemd[1]: Starting NetworkManager.service - Network Manager...
Applying the configuration works anyway:
root at plucky-nm:~# netplan apply
root at plucky-nm:~# nmcli con show
NAME UUID TYPE DEVICE
Wired connection 1 65bff577-bc73-38c1-8b95-e0acf92e0913 ethernet enp5s0
dummy-dummy0 354ebe07-b386-42fb-ab8b-ee8c3486d033 dummy dummy0
lo 9b307900-2954-4e7c-b63e-c7246d1cecfc loopback lo
root at plucky-nm:~# netplan get
network:
version: 2
dummy-devices:
dummy0:
renderer: NetworkManager
addresses:
- "192.168.0.1/24"
networkmanager:
uuid: "354ebe07-b386-42fb-ab8b-ee8c3486d033"
name: "dummy-dummy0"
passthrough:
proxy: {}
ipv6:
addr-gen-mode: "default"
method: "disabled"
ip6-privacy: "-1"
dummy: {}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2088459/+subscriptions
More information about the foundations-bugs
mailing list