Summary: | etcnet brings an iface correctly up; but then NetworkManager brings it down | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Branch p6 | Reporter: | Ivan Zakharyaschev <imz> | ||||||
Component: | NetworkManager | Assignee: | Andrey Cherepanov <cas> | ||||||
Status: | CLOSED WORKSFORME | QA Contact: | QA p6 <qa-p6> | ||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | imz, nekapitan2009, sem | ||||||
Version: | не указана | ||||||||
Hardware: | x86 | ||||||||
OS: | Linux | ||||||||
Bug Depends on: | 18138 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Ivan Zakharyaschev
2013-01-22 16:15:08 MSK
Может, мне попробовать поставить NetworkManager (я на p6) из Sisyphus? > Может, мне попробовать поставить NetworkManager (я на p6) из Sisyphus?
Нет, этого делать точно не надо.
NM_CONTROLLED=no
Проверьте, нет ли в этой строчке лишних пробелов в конце.
(В ответ на комментарий №2) > > Может, мне попробовать поставить NetworkManager (я на p6) из Sisyphus? > > Нет, этого делать точно не надо. > > NM_CONTROLLED=no > Проверьте, нет ли в этой строчке лишних пробелов в конце. Нет, насколько я вижу: /sudo:root@linux.local:/etc/net/ifaces/eth0 $ hexdump options 0000000 4f42 544f 5250 544f 3d4f 7473 7461 6369 0000010 540a 5059 3d45 7465 0a68 4d4e 435f 4e4f 0000020 5254 4c4f 454c 3d44 6f6e 440a 5349 4241 0000030 454c 3d44 6f6e 000a 0000037 /sudo:root@linux.local:/etc/net/ifaces/eth0 $ hexdump -C options 00000000 42 4f 4f 54 50 52 4f 54 4f 3d 73 74 61 74 69 63 |BOOTPROTO=static| 00000010 0a 54 59 50 45 3d 65 74 68 0a 4e 4d 5f 43 4f 4e |.TYPE=eth.NM_CON| 00000020 54 52 4f 4c 4c 45 44 3d 6e 6f 0a 44 49 53 41 42 |TROLLED=no.DISAB| 00000030 4c 45 44 3d 6e 6f 0a |LED=no.| 00000037 /sudo:root@linux.local:/etc/net/ifaces/eth0 $ hexdump -c options 0000000 B O O T P R O T O = s t a t i c 0000010 \n T Y P E = e t h \n N M _ C O N 0000020 T R O L L E D = n o \n D I S A B 0000030 L E D = n o \n 0000037 /sudo:root@linux.local:/etc/net/ifaces/eth0 $ У меня не получается это воспроизвести. Покажите /etc/NetworkManager/NetworkManager.conf. Также попробуйте закомментировать строчку с NM_CONTROLLED, записать файл, потом опять расскоментрировать и записать. Покажите что при этом NM пишет в /var/log/messages и вывод nmcli dev. (В ответ на комментарий №4) > У меня не получается это воспроизвести. > Покажите /etc/NetworkManager/NetworkManager.conf. ~ $ cat /etc/NetworkManager/NetworkManager.conf [main] plugins=etcnet-alt,keyfile dhcp=dhcpcd ~ $ > Также попробуйте закомментировать строчку с NM_CONTROLLED, записать файл, потом > опять расскоментрировать и записать. > Покажите что при этом NM пишет в /var/log/messages и вывод nmcli dev. сейчас попробую (В ответ на комментарий №4) > Также попробуйте закомментировать строчку с NM_CONTROLLED, записать файл, потом > опять расскоментрировать и записать. > Покажите что при этом NM пишет в /var/log/messages и вывод nmcli dev. Сначала строчка была как я показывал, потом я её закомментировал и сохранил, потом раскомментировал и сохранил. Вот: ~ $ nmcli dev УСТРОЙСТВО ТИП СТАТУС eth0 802-3-ethernet подключен ~ $ sudo tail -f /var/log/messages Jan 22 20:26:40 linux blueman-mechanism: Starting blueman-mechanism Jan 22 20:26:40 linux dbus[4037]: [system] Successfully activated service 'org.blueman.Mechanism' Jan 22 20:26:40 linux blueman-mechanism: reload 0 0 Jan 22 20:26:56 linux nmbd[5964]: [2013/01/22 20:26:56.850314, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) Jan 22 20:26:56 linux nmbd[5964]: ***** Jan 22 20:26:56 linux nmbd[5964]: Jan 22 20:26:56 linux nmbd[5964]: Samba name server LINUX is now a local master browser for workgroup WORKGROUP on subnet 10.11.7.106 Jan 22 20:26:56 linux nmbd[5964]: Jan 22 20:26:56 linux nmbd[5964]: ***** Jan 22 20:27:10 linux blueman-mechanism: Exiting Jan 22 20:37:11 linux NetworkManager[4375]: etcnet-alt: eth0: Readed connection "System eth0" Jan 22 20:37:11 linux last message repeated 2 times Jan 22 20:37:17 linux modem-manager[4453]: <info> (ttyACM0) opening serial port... Jan 22 20:37:19 linux modem-manager[4453]: <info> (ttyACM0) closing serial port... Jan 22 20:37:19 linux modem-manager[4453]: <info> (ttyACM0) serial port closed завершено ~ $ nmcli dev УСТРОЙСТВО ТИП СТАТУС eth0 802-3-ethernet подключен ~ $ sudo tail -f /var/log/messages Jan 22 20:26:56 linux nmbd[5964]: Jan 22 20:26:56 linux nmbd[5964]: Samba name server LINUX is now a local master browser for workgroup WORKGROUP on subnet 10.11.7.106 Jan 22 20:26:56 linux nmbd[5964]: Jan 22 20:26:56 linux nmbd[5964]: ***** Jan 22 20:27:10 linux blueman-mechanism: Exiting Jan 22 20:37:11 linux NetworkManager[4375]: etcnet-alt: eth0: Readed connection "System eth0" Jan 22 20:37:11 linux last message repeated 2 times Jan 22 20:37:17 linux modem-manager[4453]: <info> (ttyACM0) opening serial port... Jan 22 20:37:19 linux modem-manager[4453]: <info> (ttyACM0) closing serial port... Jan 22 20:37:19 linux modem-manager[4453]: <info> (ttyACM0) serial port closed завершено ~ $ nmcli dev УСТРОЙСТВО ТИП СТАТУС eth0 802-3-ethernet подключен ~ $ В общем, после раскомментирования NM ничего не писал в /var/log/messages. На другой системе NetworkManager-0.8.6-alt1.M60P.2 и такого не наблюдается. Может быть, ошибка от этого зависит? Вот changelog с тех пор: * Пнд Июл 16 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt3.M60P.1 - Rollback to 0.8.6 release again (closes: #27362). - Add patches from upstream git: + ppp: change handling of lcp-echo-failure and lcp-echo-interval (bgo #663970). + core: check the iface index correctly. + core: handle N900 USB network interface again. * Чтв Апр 05 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt2.git20120208.M60P.1 - upstream git snapshot (NM_0_8 branch): Bugfixes and improvements, including: + handle N900 USB network interface again (closes: #27160). * Чтв Мар 01 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt1.M60P.3 - Don't try to unmount network filesystems (closes: #27013). * Птн Фев 24 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt1.M60P.2 - netfs hook: Fix typo in service name. (В ответ на комментарий №7) > На другой системе NetworkManager-0.8.6-alt1.M60P.2 и такого не наблюдается. > > Может быть, ошибка от этого зависит? > > Вот changelog с тех пор: > > * Пнд Июл 16 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt3.M60P.1 > - Rollback to 0.8.6 release again (closes: #27362). > - Add patches from upstream git: > + ppp: change handling of lcp-echo-failure and lcp-echo-interval > (bgo #663970). > + core: check the iface index correctly. > + core: handle N900 USB network interface again. > * Чтв Апр 05 2012 Mikhail Efremov <sem@altlinux.org> > 0.8.6-alt2.git20120208.M60P.1 > - upstream git snapshot (NM_0_8 branch): > Bugfixes and improvements, including: > + handle N900 USB network interface again (closes: #27160). > * Чтв Мар 01 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt1.M60P.3 > - Don't try to unmount network filesystems (closes: #27013). > * Птн Фев 24 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt1.M60P.2 > - netfs hook: Fix typo in service name. $ git --no-pager diff 0.8.6-alt1.M60P.2..0.8.6-alt3.M60P.1 diff --git a/10-netfs b/10-netfs index 30c38df..c3ec515 100644 --- a/10-netfs +++ b/10-netfs @@ -11,8 +11,13 @@ case "$2" in $SERVICE netfs reload >/dev/null 2>&1 ||: ;; down) - [ $($IP route show | wc -l) -eq 0 ] && - $SERVICE netfs status >/dev/null 2>&1 && - $SERVICE netfs stop >/dev/null 2>&1 ||: +# "down" action runs when interface already down, +# so it is too late to unmount network filesystems at that time. +# And there is no "pre-down" action yet. +# See ALT bug #27013. + +# [ $($IP route show | wc -l) -eq 0 ] && +# $SERVICE netfs status >/dev/null 2>&1 && +# $SERVICE netfs stop >/dev/null 2>&1 ||: ;; esac diff --git a/NetworkManager.spec b/NetworkManager.spec index c3f243c..537d315 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -1,4 +1,4 @@ -#define git_date .git20110415 +#define git_date .git20120208 %define git_date %nil %define dbus_version 1.2.12-alt2 @@ -12,7 +12,7 @@ Name: NetworkManager Version: 0.8.6 -Release: alt1%git_date.M60P.2 +Release: alt3%git_date.M60P.1 License: %gpl2plus Group: System/Configuration/Networking Summary: Network Link Manager and User Applications @@ -274,6 +274,22 @@ fi %exclude %_libdir/pppd/%ppp_version/*.la %changelog +* Mon Jul 16 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt3.M60P.1 +- Rollback to 0.8.6 release again (closes: #27362). +- Add patches from upstream git: + + ppp: change handling of lcp-echo-failure and lcp-echo-interval + (bgo #663970). + + core: check the iface index correctly. + + core: handle N900 USB network interface again. + +* Thu Apr 05 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt2.git20120208.M60P.1 +- upstream git snapshot (NM_0_8 branch): + Bugfixes and improvements, including: + + handle N900 USB network interface again (closes: #27160). + +* Thu Mar 01 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt1.M60P.3 +- Don't try to unmount network filesystems (closes: #27013). + * Fri Feb 24 2012 Mikhail Efremov <sem@altlinux.org> 0.8.6-alt1.M60P.2 - netfs hook: Fix typo in service name. diff --git a/NetworkManager/src/nm-device.c b/NetworkManager/src/nm-device.c index 02c2aaf..1754fe2 100644 --- a/NetworkManager/src/nm-device.c +++ b/NetworkManager/src/nm-device.c @@ -408,7 +408,7 @@ nm_device_set_ip_iface (NMDevice *self, const char *iface) priv->ip_iface = g_strdup (iface); if (priv->ip_iface) { priv->ip_ifindex = nm_netlink_iface_to_index (priv->ip_iface); - if (!priv->ip_ifindex) { + if (priv->ip_ifindex < 0) { nm_log_warn (LOGD_HW, "(%s): failed to look up interface index", iface); } } diff --git a/NetworkManager/src/nm-udev-manager.c b/NetworkManager/src/nm-udev-manager.c index 260703d..1b44294 100644 --- a/NetworkManager/src/nm-udev-manager.c +++ b/NetworkManager/src/nm-udev-manager.c @@ -447,18 +447,6 @@ net_add (NMUdevManager *self, GUdevDevice *device) return; } - /* Ignore Nokia cdc-ether interfaces in PC-Suite mode since we need to - * talk phonet to use them, which ModemManager doesn't do yet. - */ - tmp = g_udev_device_get_property (device, "ID_VENDOR_ID"); - if (g_strcmp0 (tmp, "0421") == 0) { /* Nokia vendor ID */ - tmp = g_udev_device_get_property (device, "ID_MODEL"); - if (tmp && (strstr (tmp, "PC-Suite") || strstr (tmp, "PC Suite"))) { - nm_log_dbg (LOGD_HW, "ignoring Nokia PC-Suite ethernet interface"); - return; - } - } - g_signal_emit (self, signals[DEVICE_ADDED], 0, device, device_creator); } diff --git a/NetworkManager/src/ppp-manager/nm-ppp-manager.c b/NetworkManager/src/ppp-manager/nm-ppp-manager.c index 6a3af64..13e79f6 100644 --- a/NetworkManager/src/ppp-manager/nm-ppp-manager.c +++ b/NetworkManager/src/ppp-manager/nm-ppp-manager.c @@ -16,7 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Copyright (C) 2008 Novell, Inc. - * Copyright (C) 2008 - 2010 Red Hat, Inc. + * Copyright (C) 2008 - 2011 Red Hat, Inc. */ #include <config.h> @@ -871,12 +871,6 @@ pppoe_fill_defaults (NMSettingPPP *setting) if (!nm_setting_ppp_get_mru (setting)) g_object_set (setting, NM_SETTING_PPP_MRU, (guint32) 1492, NULL); - if (!nm_setting_ppp_get_lcp_echo_interval (setting)) - g_object_set (setting, NM_SETTING_PPP_LCP_ECHO_INTERVAL, (guint32) 20, NULL); - - if (!nm_setting_ppp_get_lcp_echo_failure (setting)) - g_object_set (setting, NM_SETTING_PPP_LCP_ECHO_FAILURE, (guint32) 3, NULL); - g_object_set (setting, NM_SETTING_PPP_NOAUTH, TRUE, NM_SETTING_PPP_NODEFLATE, TRUE, $ Выглядит почти неподозрительно. Попробую, может, ещё обновить NetworkManager и в этой системе. (В ответ на комментарий №8) > (В ответ на комментарий №7) > > На другой системе NetworkManager-0.8.6-alt1.M60P.2 и такого не наблюдается. > Попробую, может, ещё обновить NetworkManager и в этой системе. Нет, на другой системе не воспроизвелось... > В общем, после раскомментирования NM ничего не писал в /var/log/messages. Это странно, плагин должен следить за файлом и реагировать на любое его изменение. Причем судя по > Jan 22 20:37:11 linux NetworkManager[4375]: etcnet-alt: eth0: Readed > connection "System eth0" настройки из etcnet читаются (и NM должен сразу подключаться в соответствии с ними если в options нет ONBOOT=no). Попробуйте вообще поизменять файлы в /etc/net/ifaces/eth0, например указать BOOOTPROTO=dhcp, смотря в /var/log/messages (или остановить NM и запустить его руками на другой консоли как NetworkManager --no-daemon). Должна быть реакция на изменение файла options как минимум (только не забывайте его сохранять). Если реакции нет, то пробуйте перезапустить NM и посмотреть, будет ли реакция на измененный файл в этом случае (например, будет ли попытка подключения по dhcp при BOOTPROTO=dhcp). Также посмотрите на всякий случай не завалялся ли в /etc/NetworkManager/nm-system-settings.conf. У меня пока нет внятных мыслей из-за чего это все может быть и что еще посмотреть кроме как gdb. Подумаю. (В ответ на комментарий №10) > Попробуйте вообще поизменять файлы в /etc/net/ifaces/eth0, например указать > BOOOTPROTO=dhcp, смотря в /var/log/messages (или остановить NM и запустить его > руками на другой консоли как NetworkManager --no-daemon). > Должна быть реакция на изменение файла options как минимум (только не забывайте > его сохранять). Запустил NetworkManager, потом поменял BOOTPROTO, сохранил -- реакции не было (это место отмечено пустой строчкой). Потом уже прервал NetworkManager: [root@linux ifaces]# NetworkManager --no-daemon NetworkManager[19223]: <info> NetworkManager (version 0.8.6) is starting... NetworkManager[19223]: <info> Read config file /etc/NetworkManager/NetworkManager.conf NetworkManager[19223]: <info> VPN: loaded org.freedesktop.NetworkManager.l2tp NetworkManager[19223]: <info> VPN: loaded org.freedesktop.NetworkManager.pptp NetworkManager[19223]: <info> VPN: loaded org.freedesktop.NetworkManager.vpnc NetworkManager[19223]: <info> VPN: loaded org.freedesktop.NetworkManager.openvpn NetworkManager[19223]: <info> modem-manager is now available NetworkManager[19223]: <info> monitoring kernel firmware directory '/lib/firmware'. NetworkManager[19223]: etcnet-alt: Current network profile: (none) NetworkManager[19223]: <info> Loaded plugin etcnet-alt: (c) 2008 Mikhail Efremov <sem@altlinux.org>. NetworkManager[19223]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc. To report bugs please use the NetworkManager mailing list. NetworkManager[19223]: etcnet-alt: Couldn't access iface directory /etc/net/ifaces/eth2 . NetworkManager[19223]: etcnet-alt: eth2: Readed connection "System eth2" NetworkManager[19223]: <info> WiFi enabled by radio killswitch; enabled by state file NetworkManager[19223]: <info> WWAN enabled by radio killswitch; enabled by state file NetworkManager[19223]: <info> WiMAX enabled by radio killswitch; enabled by state file NetworkManager[19223]: <info> Networking is enabled by state file NetworkManager[19223]: <info> (eth2): carrier is OFF NetworkManager[19223]: <info> (eth2): new Ethernet device (driver: 'forcedeth' ifindex: 2) NetworkManager[19223]: <info> (eth2): exported as /org/freedesktop/NetworkManager/Devices/0 NetworkManager[19223]: <info> (eth2): now managed NetworkManager[19223]: <info> (eth2): device state change: 1 -> 2 (reason 2) NetworkManager[19223]: <info> (eth2): bringing up device. NetworkManager[19223]: <info> (eth2): preparing device. NetworkManager[19223]: <info> (eth2): deactivating device (reason: 2). NetworkManager[19223]: <info> (eth1): carrier is ON NetworkManager[19223]: <info> (eth1): new Ethernet device (driver: '8139too' ifindex: 3) NetworkManager[19223]: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/1 NetworkManager[19223]: <info> (eth1): now managed NetworkManager[19223]: <info> (eth1): device state change: 1 -> 2 (reason 2) NetworkManager[19223]: <info> (eth1): preparing device. NetworkManager[19223]: <info> (eth1): deactivating device (reason: 2). NetworkManager[19223]: <warn> bluez error getting default adapter: No such adapter NetworkManager[19223]: <info> (eth1): device state change: 2 -> 3 (reason 0) ^CNetworkManager[19223]: <info> caught signal 2, shutting down normally. NetworkManager[19223]: <warn> quit request received, terminating... NetworkManager[19223]: <info> (eth2): now unmanaged NetworkManager[19223]: <info> (eth2): device state change: 2 -> 1 (reason 36) NetworkManager[19223]: <info> (eth2): cleaning up... NetworkManager[19223]: <info> (eth2): taking down device. NetworkManager[19223]: <info> (eth1): now unmanaged NetworkManager[19223]: <info> (eth1): device state change: 3 -> 1 (reason 36) NetworkManager[19223]: <info> (eth1): cleaning up... NetworkManager[19223]: <info> (eth1): taking down device. NetworkManager[19223]: <info> ((null)): removing resolv.conf from /sbin/resolvconf NetworkManager[19223]: <info> exiting (success) [root@linux ifaces]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 link/ether 00:13:d4:cf:e8:53 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 link/ether 00:0d:0f:10:1a:bc brd ff:ff:ff:ff:ff:ff [root@linux ifaces]# > Если реакции нет, то пробуйте перезапустить NM и посмотреть, будет ли реакция > на измененный файл в этом случае (например, будет ли попытка подключения по > dhcp при BOOTPROTO=dhcp). Запустил заново. Нет попыток DHCP. (Потом уже дал команду service network restart): [root@linux ifaces]# NetworkManager --no-daemon NetworkManager[19479]: <info> NetworkManager (version 0.8.6) is starting... NetworkManager[19479]: <info> Read config file /etc/NetworkManager/NetworkManager.conf NetworkManager[19479]: <info> VPN: loaded org.freedesktop.NetworkManager.l2tp NetworkManager[19479]: <info> VPN: loaded org.freedesktop.NetworkManager.pptp NetworkManager[19479]: <info> VPN: loaded org.freedesktop.NetworkManager.vpnc NetworkManager[19479]: <info> VPN: loaded org.freedesktop.NetworkManager.openvpn NetworkManager[19479]: <info> modem-manager is now available NetworkManager[19479]: <info> monitoring kernel firmware directory '/lib/firmware'. NetworkManager[19479]: etcnet-alt: Current network profile: (none) NetworkManager[19479]: <info> Loaded plugin etcnet-alt: (c) 2008 Mikhail Efremov <sem@altlinux.org>. NetworkManager[19479]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc. To report bugs please use the NetworkManager mailing list. NetworkManager[19479]: etcnet-alt: Couldn't access iface directory /etc/net/ifaces/eth2 . NetworkManager[19479]: etcnet-alt: eth2: Readed connection "System eth2" NetworkManager[19479]: <info> WiFi enabled by radio killswitch; enabled by state file NetworkManager[19479]: <info> WWAN enabled by radio killswitch; enabled by state file NetworkManager[19479]: <info> WiMAX enabled by radio killswitch; enabled by state file NetworkManager[19479]: <info> Networking is enabled by state file NetworkManager[19479]: <info> (eth2): carrier is OFF NetworkManager[19479]: <info> (eth2): new Ethernet device (driver: 'forcedeth' ifindex: 2) NetworkManager[19479]: <info> (eth2): exported as /org/freedesktop/NetworkManager/Devices/0 NetworkManager[19479]: <info> (eth2): now managed NetworkManager[19479]: <info> (eth2): device state change: 1 -> 2 (reason 2) NetworkManager[19479]: <info> (eth2): bringing up device. NetworkManager[19479]: <info> (eth2): preparing device. NetworkManager[19479]: <info> (eth2): deactivating device (reason: 2). NetworkManager[19479]: <info> (eth1): carrier is OFF NetworkManager[19479]: <info> (eth1): new Ethernet device (driver: '8139too' ifindex: 3) NetworkManager[19479]: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/1 NetworkManager[19479]: <info> (eth1): now managed NetworkManager[19479]: <info> (eth1): device state change: 1 -> 2 (reason 2) NetworkManager[19479]: <info> (eth1): bringing up device. NetworkManager[19479]: <info> (eth1): preparing device. NetworkManager[19479]: <info> (eth1): deactivating device (reason: 2). NetworkManager[19479]: <info> (eth1): carrier now ON (device state 2) NetworkManager[19479]: <info> (eth1): device state change: 2 -> 3 (reason 40) NetworkManager[19479]: <warn> bluez error getting default adapter: No such adapter ^CNetworkManager[19479]: <info> caught signal 2, shutting down normally. NetworkManager[19479]: <warn> quit request received, terminating... NetworkManager[19479]: <info> (eth2): now unmanaged NetworkManager[19479]: <info> (eth2): device state change: 2 -> 1 (reason 36) NetworkManager[19479]: <info> (eth2): cleaning up... NetworkManager[19479]: <info> (eth2): taking down device. NetworkManager[19479]: <info> (eth1): now unmanaged NetworkManager[19479]: <info> (eth1): device state change: 3 -> 1 (reason 36) NetworkManager[19479]: <info> (eth1): cleaning up... NetworkManager[19479]: <info> (eth1): taking down device. NetworkManager[19479]: <info> ((null)): removing resolv.conf from /sbin/resolvconf NetworkManager[19479]: <info> exiting (success) [root@linux ifaces]# service network restart Computing interface groups: ... 3 interfaces found Processing /etc/net/vlantab: empty. Stopping group 1/realphys (2 interfaces) Stopping eth0: OK Stopping eth1: RTNETLINK answers: No such process ....OK Stopping group 0/virtual (1 interfaces) Stopping lo: .OK Computing interface groups: ... 3 interfaces found Starting group 0/virtual (1 interfaces) Starting lo: ....OK Starting group 1/realphys (2 interfaces) Starting eth0: Cannot find device "eth0" !FAILED Starting eth1: .....eth1: dhcpcd 4.0.15 starting eth1: hardware address = 00:0d:0f:10:1a:bc eth1: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT eth1: broadcasting for a lease eth1: sending DHCP_DISCOVER with xid 0xfa54bd4, next in 4.48 seconds eth1: sending DHCP_DISCOVER with xid 0xfa54bd4, next in 7.81 seconds ^Ceth1: received SIGINT, stopping !.^C [root@linux ifaces]# (В этот раз -- когда я пишу этот комментарий -- у меня уже устройство не eth0, а eth1. Потому что физически поменялась карта. Но на это ошибочное поведение это никак не отражается.) > Также посмотрите на всякий случай не завалялся ли в > /etc/NetworkManager/nm-system-settings.conf. Нет. Created attachment 5806 [details] strace NetworkManager Забыли ещё об одной возможности хоть как-то заглянуть, что происходит (помимо gdb) -- strace. В приложении результат strace -fF -e trace=file NetworkManager --no-daemon 2> nm-strace Что там может быть интересного... [new@linux ~]$ egrep '(etc|dev| exec)' nm-strace access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/libgudev-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3 open("/lib/libudev.so.0", O_RDONLY|O_CLOEXEC) = 3 access("/etc/NetworkManager/nm-system-settings.conf", F_OK) = -1 ENOENT (No such file or directory) access("/etc/NetworkManager/NetworkManager.conf", F_OK) = 0 open("/etc/NetworkManager/NetworkManager.conf", O_RDONLY|O_LARGEFILE) = 3 open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 6 NetworkManager[9338]: <info> Read config file /etc/NetworkManager/NetworkManager.conf open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 10 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 10 openat(AT_FDCWD, "/etc/NetworkManager/VPN", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 11 open("/etc/NetworkManager/VPN/nm-l2tp-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-l2tp-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-pptp-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-pptp-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-vpnc-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-vpnc-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-openvpn-service.name", O_RDONLY|O_LARGEFILE) = 12 open("/etc/NetworkManager/VPN/nm-openvpn-service.name", O_RDONLY|O_LARGEFILE) = 12 [pid 9338] stat64("/usr/lib/NetworkManager/libnm-settings-plugin-etcnet-alt.so", {st_mode=S_IFREG|0644, st_size=105300, ...}) = 0 [pid 9338] open("/usr/lib/NetworkManager/libnm-settings-plugin-etcnet-alt.so", O_RDONLY|O_CLOEXEC) = 14 [pid 9338] open("/etc/udev/udev.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 14 [pid 9338] lstat64("/etc/net/ifaces", {st_mode=S_IFDIR|0755, st_size=56, ...}) = 0 [pid 9338] open("/etc/sysconfig/network", O_RDONLY) = 15 [pid 9338] lstat64("/etc/sysconfig/network", {st_mode=S_IFREG|0644, st_size=427, ...}) = 0 NetworkManager[9338]: etcnet-alt: Current network profile: (none) NetworkManager[9338]: <info> Loaded plugin etcnet-alt: (c) 2008 Mikhail Efremov <sem@altlinux.org>. [pid 9338] access("/etc/NetworkManager/NetworkManager.conf", F_OK) = 0 [pid 9338] open("/etc/NetworkManager/NetworkManager.conf", O_RDONLY|O_LARGEFILE) = 15 [pid 9338] open("/etc/NetworkManager/NetworkManager.conf", O_RDONLY|O_LARGEFILE) = 15 [pid 9338] readlink("/sys/class/net/lo", "../../devices/virtual/net/lo", 1024) = 28 [pid 9338] stat64("/sys/devices/virtual/net/lo/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/class/net/eth2", "../../devices/pci0000:00/0000:00"..., 1024) = 46 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/class/net/eth1", "../../devices/pci0000:00/0000:00"..., 1024) = 59 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/net/eth2", 0xbfbcd22c, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1", 0xbfbcd22c, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/virtual/net/lo", 0xbfbcd22c, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/virtual/net/lo/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/address", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/address", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 15 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/type", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/type", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 15 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/phy80211", 0xbfbcdcc0) = -1 ENOENT (No such file or directory) [pid 9338] lstat64("/etc/net/ifaces/eth2", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0 [pid 9338] stat64("/etc/net/ifaces/eth2", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0 [pid 9338] open("/etc/net/ifaces/eth2/wpa_supplicant.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) [pid 9338] open("/etc/net/ifaces/eth2/options", O_RDONLY) = 15 [pid 9338] open("/etc/net/ifaces/default/options-eth", O_RDONLY) = 15 [pid 9338] open("/etc/net/ifaces/default/options", O_RDONLY) = 15 [pid 9338] openat(AT_FDCWD, "/etc/net/ifaces/eth2", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 15 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/address", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/address", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 16 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/type", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/type", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 16 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/phy80211", 0xbfbcdcc0) = -1 ENOENT (No such file or directory) [pid 9338] lstat64("/etc/net/ifaces/eth1", {st_mode=S_IFLNK|0777, st_size=4, ...}) = 0 [pid 9338] stat64("/etc/net/ifaces/eth1", {st_mode=S_IFDIR|0755, st_size=118, ...}) = 0 [pid 9338] readlink("/etc/net/ifaces/eth1", "eth0", 256) = 4 [pid 9338] stat64("/etc/net/ifaces/eth1", {st_mode=S_IFDIR|0755, st_size=118, ...}) = 0 [pid 9338] open("/etc/net/ifaces/eth1/wpa_supplicant.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) [pid 9338] open("/etc/net/ifaces/eth1/options", O_RDONLY) = 16 [pid 9338] open("/etc/net/ifaces/default/options-eth", O_RDONLY) = 16 [pid 9338] open("/etc/net/ifaces/default/options", O_RDONLY) = 16 [pid 9338] openat(AT_FDCWD, "/etc/net/ifaces/eth1", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 16 [pid 9338] lstat64("/sys/devices/virtual/net/lo/address", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/virtual/net/lo/address", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 17 [pid 9338] lstat64("/sys/devices/virtual/net/lo/type", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/virtual/net/lo/type", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 17 [pid 9338] openat(AT_FDCWD, "/etc/NetworkManager/system-connections", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 17 [pid 9338] open("/etc/NetworkManager/NetworkManager.conf", O_RDONLY|O_LARGEFILE) = 17 [pid 9338] open("/etc/udev/udev.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 17 [pid 9338] open("/etc/hosts", O_RDONLY|O_LARGEFILE) = 18 [pid 9340] open("/dev/null", O_RDONLY|O_LARGEFILE) = 18 [pid 9340] open("/dev/null", O_WRONLY|O_LARGEFILE) = 18 [pid 9340] open("/dev/null", O_WRONLY|O_LARGEFILE) = 18 [pid 9340] execve("/bin/pidof", ["/bin/pidof", "-s", "X", "Xorg"], [/* 36 vars */]) = 0 [pid 9340] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) [pid 9340] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 [pid 9340] readlink("/proc/2200/exe", "/sbin/udevd", 4096) = 11 [pid 9340] readlink("/proc/7854/exe", "/sbin/udevd", 4096) = 11 [pid 9340] readlink("/proc/7856/exe", "/sbin/udevd", 4096) = 11 [pid 9338] readlink("/sys/class/net/lo", "../../devices/virtual/net/lo", 1024) = 28 [pid 9338] stat64("/sys/devices/virtual/net/lo/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/class/net/eth2", "../../devices/pci0000:00/0000:00"..., 1024) = 46 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/class/net/eth1", "../../devices/pci0000:00/0000:00"..., 1024) = 59 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/net/eth2", 0xbfbcd90c, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1", 0xbfbcd90c, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/virtual/net/lo", 0xbfbcd90c, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/virtual/net/lo/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/type", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/type", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] open("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/uevent", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/subsystem", "../../../../../class/net", 1024) = 24 [pid 9338] access("/run/udev", F_OK) = 0 [pid 9338] open("/run/udev/data/n3", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/driver", 0xbfbcd7bc, 1024) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/net", 0xbfbcd0ec, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/uevent", 0xbfbcd54c) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0", 0xbfbcd0ec, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/driver", "../../../bus/pci/drivers/forcede"..., 1024) = 34 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/ifindex", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/ifindex", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/phy80211", 0xbfbce000) = -1 ENOENT (No such file or directory) [pid 9338] open("/etc/udev/udev.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] stat64("/sys/subsystem/net/devices/eth2", 0xbfbcd898) = -1 ENOENT (No such file or directory) [pid 9338] stat64("/sys/bus/net/devices/eth2", 0xbfbcd898) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/class/net/eth2", "../../devices/pci0000:00/0000:00"..., 1024) = 46 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/eth2/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/net", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/net/uevent", 0xbfbcd21c) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:05.0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:05.0/subsystem", "../../../bus/pci", 1024) = 16 [pid 9338] readlink("/sys/devices/pci0000:00", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/subsystem", 0xbfbcd47c, 1024) = -1 ENOENT (No such file or directory) NetworkManager[9338]: <info> (eth2): new Ethernet device (driver: 'forcedeth' ifindex: 3) [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/type", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/type", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] open("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/uevent", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/subsystem", "../../../../../../class/net", 1024) = 27 [pid 9338] open("/run/udev/data/n2", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/driver", 0xbfbcd7bc, 1024) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net", 0xbfbcd0ec, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/uevent", 0xbfbcd54c) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0", 0xbfbcd0ec, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/driver", "../../../../bus/pci/drivers/8139"..., 1024) = 35 [pid 9338] lstat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/ifindex", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/ifindex", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/phy80211", 0xbfbce000) = -1 ENOENT (No such file or directory) [pid 9338] open("/etc/udev/udev.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 [pid 9338] stat64("/sys/subsystem/net/devices/eth1", 0xbfbcd898) = -1 ENOENT (No such file or directory) [pid 9338] stat64("/sys/bus/net/devices/eth1", 0xbfbcd898) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/class/net/eth1", "../../devices/pci0000:00/0000:00"..., 1024) = 59 [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/eth1/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/net/uevent", 0xbfbcd21c) = -1 ENOENT (No such file or directory) [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/0000:02:07.0/subsystem", "../../../../bus/pci", 1024) = 19 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/0000:00:0e.0/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/0000:00:0e.0/subsystem", "../../../bus/pci", 1024) = 16 [pid 9338] readlink("/sys/devices/pci0000:00", 0xbfbccdbc, 1024) = -1 EINVAL (Invalid argument) [pid 9338] stat64("/sys/devices/pci0000:00/uevent", {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 [pid 9338] readlink("/sys/devices/pci0000:00/subsystem", 0xbfbcd47c, 1024) = -1 ENOENT (No such file or directory) NetworkManager[9338]: <info> (eth1): new Ethernet device (driver: '8139too' ifindex: 2) NetworkManager[9338]: <info> (eth1): device state change: 1 -> 2 (reason 2) NetworkManager[9338]: <info> (eth1): preparing device. NetworkManager[9338]: <info> (eth1): deactivating device (reason: 2). [pid 9341] execve("/bin/sh", ["sh", "-c", "/sbin/ip route | wc -l"], [/* 36 vars */]) = 0 [pid 9341] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) [pid 9341] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5 [pid 9341] open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 5 [pid 9343] execve("/bin/wc", ["wc", "-l"], [/* 36 vars */]Process 9342 attached [pid 9343] access("/etc/ld.so.preload", R_OK <unfinished ...> [pid 9342] execve("/sbin/ip", ["/sbin/ip", "route"], [/* 36 vars */] <unfinished ...> [pid 9343] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5 [pid 9342] <... execve resumed> ) = 0 [pid 9342] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) [pid 9342] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5 [pid 9338] open("/etc/NetworkManager/NetworkManager.conf", O_RDONLY|O_LARGEFILE) = 18 [pid 9338] lstat64("/sys/devices/virtual/net/lo/type", {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 [pid 9338] open("/sys/devices/virtual/net/lo/type", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 18 NetworkManager[9338]: <info> (eth1): device state change: 2 -> 3 (reason 0) [pid 9344] execve("/bin/sh", ["sh", "-c", "/sbin/ip route | wc -l"], [/* 36 vars */]) = 0 [pid 9344] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) [pid 9344] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5 [pid 9344] open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 5 [pid 9346] execve("/bin/wc", ["wc", "-l"], [/* 36 vars */]Process 9345 attached [pid 9346] access("/etc/ld.so.preload", R_OK <unfinished ...> [pid 9345] execve("/sbin/ip", ["/sbin/ip", "route"], [/* 36 vars */] <unfinished ...> [pid 9346] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5 [pid 9345] <... execve resumed> ) = 0 [pid 9345] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) [pid 9345] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5 [pid 9347] open("/dev/null", O_RDONLY|O_LARGEFILE) = 18 [pid 9347] open("/dev/null", O_WRONLY|O_LARGEFILE) = 18 [pid 9347] open("/dev/null", O_WRONLY|O_LARGEFILE) = 18 [pid 9347] execve("/bin/pidof", ["/bin/pidof", "-s", "X", "Xorg"], [/* 36 vars */]) = 0 [pid 9347] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) [pid 9347] open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 [pid 9347] readlink("/proc/2200/exe", "/sbin/udevd", 4096) = 11 [pid 9347] readlink("/proc/7854/exe", "/sbin/udevd", 4096) = 11 [pid 9347] readlink("/proc/7856/exe", "/sbin/udevd", 4096) = 11 NetworkManager[9338]: <info> (eth1): device state change: 3 -> 1 (reason 36) NetworkManager[9338]: <info> (eth1): taking down device. Правильная конфигурация etcnet такая (которую портить запуск сервиса NetworkManager): [new@linux ~]$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:0d:0f:10:1a:bc brd ff:ff:ff:ff:ff:ff inet 10.11.7.106/24 brd 10.11.7.255 scope global eth1 3: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:13:d4:cf:e8:53 brd ff:ff:ff:ff:ff:ff [new@linux ~]$ Created attachment 5807 [details]
strace -fF -e trace=all NetworkManager --no-daemon 2> nm-strace2
С trace=all, может, что-то будет понятнее...
А не может быть дело в том, что /etc/net/ifaces/default/options-eth (в котором стоит NM_CONTROLLED=yes) читается после /etc/net/ifaces/eth1/options : [pid 11001] lstat64("/etc/net/ifaces/eth1", {st_mode=S_IFLNK|0777, st_size=4, ...}) = 0 [pid 11001] stat64("/etc/net/ifaces/eth1", {st_mode=S_IFDIR|0755, st_size=118, ...}) = 0 [pid 11001] readlink("/etc/net/ifaces/eth1", "eth0", 256) = 4 [pid 11001] inotify_add_watch(10, "/etc/net/ifaces/eth1", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = 6 [pid 11001] stat64("/etc/net/ifaces/eth1", {st_mode=S_IFDIR|0755, st_size=118, ...}) = 0 [pid 11001] open("/etc/net/ifaces/eth1/wpa_supplicant.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) [pid 11001] open("/etc/net/ifaces/eth1/options", O_RDONLY) = 16 [pid 11001] fstat64(16, {st_mode=S_IFREG|0644, st_size=55, ...}) = 0 [pid 11001] read(16, "BOOTPROTO=static\nTYPE=eth\nNM_CON"..., 55) = 55 [pid 11001] close(16) = 0 [pid 11001] open("/etc/net/ifaces/default/options-eth", O_RDONLY) = 16 [pid 11001] fstat64(16, {st_mode=S_IFREG|0644, st_size=365, ...}) = 0 [pid 11001] read(16, "# This file doesn't contain comm"..., 365) = 365 [pid 11001] close(16) = 0 [pid 11001] open("/etc/net/ifaces/default/options", O_RDONLY) = 16 [pid 11001] fstat64(16, {st_mode=S_IFREG|0644, st_size=396, ...}) = 0 [pid 11001] read(16, "# This file doesn't contain comm"..., 396) = 396 [pid 11001] close(16) = 0 [pid 11001] openat(AT_FDCWD, "/etc/net/ifaces/eth1", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 16 Насколько я понимаю семантику etcnet, опции default не должны перекрывать опции конкретный интерфейсов, но, может быть, NetworkManager не следует этому принципу, когда разбирает конфигурацию etcnet? (В ответ на комментарий №14) > Насколько я понимаю семантику etcnet, опции default не должны перекрывать опции > конкретный интерфейсов, но, может быть, NetworkManager не следует этому > принципу, когда разбирает конфигурацию etcnet? LC_ALL=C man etcnet (ключевые слова initial и default) default This is really not an interface, but interface template. 'default' interface forms initial set of options for all interfaces and it doesn't belong to any interface group. This interface allows placing an additional options file into configuration directory: options-<TYPE>. This optional file has effect ONLY for 'default' interface, it allows to override default options with type-specific options. It is not recommended to change options for 'default' interface. Each interface can add extra options or override existing options, if needed. (В ответ на комментарий №14) > А не может быть дело в том, что /etc/net/ifaces/default/options-eth (в котором > стоит NM_CONTROLLED=yes) читается после /etc/net/ifaces/eth1/options : Нет, вписывание NM_CONTROLLED=no в /etc/net/ifaces/default/options-eth не меняет плохое поведение!.. (В ответ на комментарий №10) > Это странно, плагин должен следить за файлом и реагировать на любое его > изменение. > Причем судя по > > Jan 22 20:37:11 linux NetworkManager[4375]: etcnet-alt: eth0: Readed > > connection "System eth0" > настройки из etcnet читаются (и NM должен сразу подключаться в соответствии с > ними если в options нет ONBOOT=no). Сейчас я подумал, что я не проследил, что там с ONBOOT=no -- в /etc/net/ifaces/eth1/options вообще не прописан ONBOOT (как видно из Description здесь): BOOTPROTO=static TYPE=eth NM_CONTROLLED=no DISABLED=no а вот что нет ли ONBOOT=no в /etc/net/ifaces/default/options и /etc/net/ifaces/default/options-eth я не посмотрел. Когда доберусь опять жо этой системы, посмотрю. Хотя вряд ли... -- ведь сама etcnet нормально его поднимает при загрузке. Должно быть, нет там мешающего ONBOOT=no. Вопрос к знакомым с внутренностями NM: А при каких условиях NetworkManager опускает интерфейс "по причине 2" (как в моём случае): NetworkManager[5590]: <info> (eth0): deactivating device (reason: 2) (В ответ на комментарий №18) > А при каких условиях NetworkManager опускает интерфейс "по причине 2" (как в > моём случае): > > NetworkManager[5590]: <info> (eth0): deactivating device > (reason: 2) Из NetworkManager.h: /* Device is now managed */ NM_DEVICE_STATE_REASON_NOW_MANAGED = 2, А у меня ощущение, что сие говно гонит именно avahi-daemon: Jun 19 09:14:58 pc00447 avahi-daemon[9166]: Interface enp0s20u7.IPv4 no longer relevant for mDNS. Jun 19 09:14:58 pc00447 avahi-daemon[9166]: Leaving mDNS multicast group on interface enp0s20u7.IPv4 with address 192.168.137.1. Jun 19 09:14:58 pc00447 avahi-daemon[9166]: Withdrawing address record for fe80::b877:22ff:fe02:9e6a on enp0s20u7. Jun 19 09:14:58 pc00447 avahi-daemon[9166]: Withdrawing address record for 192.168.137.1 on enp0s20u7. Jun 19 09:14:58 pc00447 avahi-daemon[9166]: Withdrawing workstation service for enp0s20u7. Адреса слетают и после этого интерфейс идёт в down, хотя в таблице интерфейсов есть. Видно через ip address и ip link. В любом случае p6 уже не поддерживается. |