Re: FC31 : won't activate interfaces - "strictly unmanaged"
- From: sean darcy <seandarcy2 gmail com>
- To: networkmanager-list gnome org
- Subject: Re: FC31 : won't activate interfaces - "strictly unmanaged"
- Date: Wed, 29 Jan 2020 21:40:01 -0500
On 1/27/20 3:38 PM, sean darcy via networkmanager-list wrote:
On 1/26/20 3:16 AM, Thomas Haller via networkmanager-list wrote:
On Sat, 2020-01-25 at 14:34 -0500, sean darcy via networkmanager-list
wrote:
Fedora FC31. NetworkManager-1.20.10-1.fc31.x86_64
This a cross post with Fedora user.
On FC31 I can't persistently rename the interfaces, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1777893
I'll give up and use FC31 interface names : enp1s0 and enp0s20u3.
I've used nmtui to set up the interfaces. But NM won't activate them
because they are "strictly unmanaged" !!
Hi,
I think this is a bug.
NetworkManager is running in initrd. Thereby it already activates the
interface. Later, udev wants to rename the interface, but since it's
already up, it fails to do so.
The result is that udev doesn't indicate that the device is
initialized, which causes NM to wait for it (and thus it's unmanaged).
It seems there are several potential issues:
- why does NetworkManager even run in initrd, if you didn't configure
it to do so?
- if NM is running in initrd, should it wait for udev to rename the
device?
- why does udev completely fail in this case?
- maybe NM should after a timeout stop waiting for udev, to mitigate
this issue.
You could look at the logfile to verify that. Enable level=TRACE
logging, but most interesting are also the messages from initrd and
udev.
best,
Thomas
What does that mean and how do I fix it ?
Is there some other way to persistently activate the interface ?
/etc/network/interfaces does not exist.
sean
cat /etc/sysconfig/network-scripts/ifcfg-enp*
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=10.10.11.251
PREFIX=24
DNS1=10.10.11.251
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s20u3
UUID=bf8aa45c-31e4-403a-9c14-c1a59bf0f2b2
ONBOOT=yes
DEVICE=enp0s20u3
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp1s0
UUID=a1b089e9-5a13-4df7-8f09-9f54ebc56cea
DEVICE=enp1s0
ONBOOT=yes
I put net.ifames=0 in the kernel command line. I removed the
/etc/udev/rules/70-persistent-net.rules. I set up
/etc/sysconfig/network-scripts/ifcfg-eth[01].
On reboot, I had eth0 and eth1. eth1 was active. But eth0 was not
active. When I used nmtui to activate eth0. I got the dreaded "strictly
unmanaged" error.
Here's dmesg | grep eth0
:25 lenovo-gateway.riverside kernel: r8169 0000:01:00.0 eth0:
RTL8168gu/8111gu, 50:7b:9d:0b:8a:ab, XID 509, IRQ 44
:25 lenovo-gateway.riverside kernel: r8169 0000:01:00.0 eth0: jumbo
features [frames: 9200 bytes, tx checksumming: ko]
:27 lenovo-gateway.riverside NetworkManager[484]: <info>
[1580149767.5593] manager: (eth0): new Ethernet device
(/org/freedesktop/NetworkManager/Devices/2)
:27 lenovo-gateway.riverside NetworkManager[484]: <info>
[1580149767.5594] device (eth0): state change: unmanaged -> unavailable
(reason 'managed', sys-iface-state: 'external')
:27 lenovo-gateway.riverside kernel: r8169 0000:01:00.0 eth0: Link is Down
:30 lenovo-gateway.riverside kernel: r8169 0000:01:00.0 eth0: Link is Up
- 1Gbps/Full - flow control off
:30 lenovo-gateway.riverside kernel: IPv6: ADDRCONF(NETDEV_CHANGE):
eth0: link becomes ready
:30 lenovo-gateway.riverside NetworkManager[484]: <info>
[1580149770.5499] device (eth0): carrier: link connected
:30 lenovo-gateway.riverside NetworkManager[484]: <info>
[1580149770.5502] device (eth0): state change: unavailable ->
disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
:55 lenovo-gateway.riverside systemd-udevd[695]: eth0: Failed to rename
network interface 2 from 'eth0' to 'external': Device or resource busy
:55 lenovo-gateway.riverside systemd-udevd[695]: eth0: Failed to process
device, ignoring: Device or resource busy
Jan 27 13:30:33 lenovo-gateway.riverside NetworkManager[975]: <info>
[1580149833.3056] device (eth0): carrier: link connected
Jan 27 13:30:33 lenovo-gateway.riverside NetworkManager[975]: <info>
[1580149833.3059] manager: (eth0): new Ethernet device
(/org/freedesktop/NetworkManager/Devices/4)
Note at :55 udev tries to rename the device. But there's NO udev rule to
do so. So where's that from ??
grep -R external /etc/udev/rules.d/*
/etc/udev/rules.d/40-libsane.rules:# If your scanner is supported by
some external backend (brother, epkowa,
/etc/udev/rules.d/S99-2000S1.rules:# If your scanner is supported by
some external backend (brother, epkowa,
It seems udev tries to rename the device, and fails because the
"resource is busy", whatever that means. But then NetworkManager won't
activate it.
I'm surprised this problem hasn't arisen with every multihomed machine,
but there are no posts I've found.
How do I get udev not to try to rename eth0 ? But that's a udev problem.
This is the NetworkManager list. How do I force NetworkManager to
"manage" this interface ?
sean
I've gotten udev to stop trying to rename eth0.
dmesg | grep eth0
[ 3.469113] r8169 0000:01:00.0 eth0: RTL8168gu/8111gu,
50:7b:9d:0b:8a:ab, XID 509, IRQ 44
[ 3.471319] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200
bytes, tx checksumming: ko]
[ 5.830715] r8169 0000:01:00.0 eth0: Link is Down
[ 8.673941] r8169 0000:01:00.0 eth0: Link is Up - 1Gbps/Full - flow
control off
[ 8.674054] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
But NetworkManager won't activate it:
nmcli d
DEVICE TYPE STATE CONNECTION
eth1 ethernet connected eth1
wlan0 wifi unavailable --
eth0 ethernet unmanaged --
lo loopback unmanaged --
[root@lenovo-gateway ~]# nmcli d set eth0 managed on
[root@lenovo-gateway ~]# nmcli d
\DEVICE TYPE STATE CONNECTION
eth1 ethernet connected eth1
wlan0 wifi unavailable --
eth0 ethernet unmanaged --
lo loopback unmanaged --
#nmcli d connect eth0
Error: Failed to add/activate new connection: Connection 'eth0' is not
available on device eth0 because device is strictly unmanaged
Here's syslog with loglevel trace:
NetworkManager[983]: <info> [1580343605.6412] NetworkManager (version
1.20.10-1.fc31) is starting... (after a restart)
NetworkManager[983]: <info> [1580343605.6412] Read config:
/etc/NetworkManager/NetworkManager.conf (etc:
05-manage-enp-devices.conf, 10-dns.conf,
10-globally-managed-devices.conf, 10-manage-eth-devices.conf)
NetworkManager[983]: <debug> [1580343605.6413] CONFIG:
config-data[0x55d3ade6e190]: 4 groups
NetworkManager[983]: <debug> [1580343605.6413] CONFIG:
NetworkManager[983]: <debug> [1580343605.6413] CONFIG: [main]
NetworkManager[983]: <debug> [1580343605.6413] CONFIG: dns=unbound
NetworkManager[983]: <debug> [1580343605.6413] CONFIG:
NetworkManager[983]: <debug> [1580343605.6414] CONFIG: [keyfile]
NetworkManager[983]: <debug> [1580343605.6414] CONFIG:
unmanaged-devices=none
NetworkManager[983]: <debug> [1580343605.6414] CONFIG:
NetworkManager[983]: <debug> [1580343605.6414] CONFIG: [logging]
NetworkManager[983]: <debug> [1580343605.6414] CONFIG: level=TRACE
NetworkManager[983]: <debug> [1580343605.6414] CONFIG: domains=ALL
NetworkManager[983]: <debug> [1580343605.6415] CONFIG:
NetworkManager[983]: <debug> [1580343605.6415] CONFIG: [device]
NetworkManager[983]: <debug> [1580343605.6415] CONFIG:
match-device=interface-name:eth0
NetworkManager[983]: <debug> [1580343605.6415] CONFIG: managed=1
NetworkManager[983]: <debug> [1580343605.6601] config: state:
successfully read state file "/var/lib/NetworkManager/NetworkManager.state"
...........
NetworkManager[983]: <trace> [1580343608.7972] settings:
storage[5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03,71dd34028f47f61f/ifcfg-rh]:
change event with connection "eth0" (file
"/etc/sysconfig/network-scripts/ifcfg-eth0")
..........
NetworkManager[983]: <trace> [1580343619.3273] settings:
update[5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]: adding connection "eth0"
(71dd34028f47f61f/ifcfg-rh)
NetworkManager[983]: <trace> [1580343619.3275]
settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]:
update system secrets: secrets set
NetworkManager[983]: <trace> [1580343619.3277]
settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]:
update agent secrets: secrets set
NetworkManager[983]: <trace> [1580343619.3277]
settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]:
no timestamp from keyfile database "/var/lib/NetworkManager/timestamps"
NetworkManager[983]: <trace> [1580343619.3277]
settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]:
no seen-bssids from keyfile database "/var/lib/NetworkManager/seen-bssids"
NetworkManager[983]: <trace> [1580343619.3278]
settings-connection[3389af911e72c732,5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03]:
update settings-connection flags to visible (was none)
NetworkManager[983]: <trace> [1580343619.3278]
dbus-object[3389af911e72c732]: export:
"/org/freedesktop/NetworkManager/Settings/6"
NetworkManager[983]: <debug> [1580343619.3280] ++ connection 'new
connection' (0x55d3adf05500/NMSimpleConnection/"802-3-ethernet"):
[/org/freedesktop/NetworkManager/Settings/6]
NetworkManager[983]: <debug> [1580343619.3280] ++ connection
[ 0x55d3adf02330 ]
NetworkManager[983]: <debug> [1580343619.3280] ++ connection.id
= 'eth0'
NetworkManager[983]: <debug> [1580343619.3280] ++
connection.interface-name = 'eth0'
NetworkManager[983]: <debug> [1580343619.3280] ++ connection.permissions
= []
NetworkManager[983]: <debug> [1580343619.3281] ++ connection.type
= '802-3-ethernet'
NetworkManager[983]: <debug> [1580343619.3281] ++ connection.uuid
= '5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03'
NetworkManager[983]: <debug> [1580343619.3281] ++ 802-3-ethernet
[ 0x55d3adf04430 ]
NetworkManager[983]: <debug> [1580343619.3281] ++
802-3-ethernet.mac-address-blacklist = []
.............
NetworkManager[983]: <trace> [1580343619.5332] ethtool[2]:
ETHTOOL_GLINK, eth0: success
NetworkManager[983]: <debug> [1580343619.5333] device[0x55d3adf56910]
(eth0): constructed (NMDeviceEthernet)
NetworkManager[983]: <debug> [1580343619.5333] device[0x55d3adf56910]
(eth0): start setup of NMDeviceEthernet, kernel ifindex 2
NetworkManager[983]: <debug> [1580343619.5333] platform-linux: error
reading net:/sys/class/net/eth0/phys_port_id: error reading 4096 bytes fro
m file descriptor: Operation not supported
NetworkManager[983]: <debug> [1580343619.5334] platform-linux: sysctl:
reading 'net:/sys/class/net/eth0/dev_id': '0x0'
NetworkManager[983]: <trace> [1580343619.5334] ethtool[2]:
ETHTOOL_GDRVINFO, eth0: success
NetworkManager[983]: <debug> [1580343619.5335] platform-linux: error
reading net:/sys/class/net/eth0/device/sriov_totalvfs: Failed to open
file "device/sriov_totalvfs" with openat: No such file or directory
NetworkManager[983]: <trace> [1580343619.5335] ethtool[2]:
ETHTOOL_GLINK, eth0: success
NetworkManager[983]: <debug> [1580343619.5336] device[0x55d3adf56910]
(eth0): hw-addr: hardware address now 50:7B:9D:0B:8A:AB
NetworkManager[983]: <debug> [1580343619.5336] device[0x55d3adf56910]
(eth0): hw-addr: update initial MAC address 50:7B:9D:0B:8A:AB
NetworkManager[983]: <info> [1580343619.5336] device (eth0): carrier:
link connected
NetworkManager[983]: <trace> [1580343619.5336] ethtool[2]: ETHTOOL_GSET,
eth0: success
NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910]
(eth0): speed is now 1000 Mb/s
NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910]
(eth0): unmanaged: flags set to
[platform-init,!user-explicit=0x10/0x30/unmanaged/unrealized],
set-managed [user-explicit=0x20])
NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910]
(eth0): unmanaged: flags set to
[platform-init,!by-type,!user-explicit=0x10/0x38/unmanaged/unrealized],
set-managed [by-type=0x8])
NetworkManager[983]: <debug> [1580343619.5337] device[0x55d3adf56910]
(eth0): unmanaged: flags set to
[platform-init,!by-type,!user-explicit,!user-conf=0x10/0x238/unmanaged/unrealized],
set-managed [user-conf=0x200])
NetworkManager[983]: <debug> [1580343619.5338] device[0x55d3adf56910]
(eth0): unmanaged: flags set to
[platform-init,!sleeping,!by-type,!user-explicit,!user-conf=0x10/0x239/unmanaged/unrealized],
set-managed [sleeping=0x1])
NetworkManager[983]: <trace> [1580343619.5338]
dbus-object[2038a3692ce29462]: export:
"/org/freedesktop/NetworkManager/Devices/4"
NetworkManager[983]: <info> [1580343619.5341] manager: (eth0): new
Ethernet device (/org/freedesktop/NetworkManager/Devices/4)
Someone on this list must know why eth0 is "strictly unmanaged". So give
me a hint !!!
sean
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]