Re: keyfile plugin initialization and wireless at boot
- From: Brian DeRocher <brian derocher org>
- To: networkmanager-list gnome org
- Subject: Re: keyfile plugin initialization and wireless at boot
- Date: Mon, 19 Apr 2010 20:53:51 -0400
Dan,
Thanks for the great tips.
It would really be nice if there was a debug message explaining why the
"Available to all users" box is disabled. I checked the debian bugs
page [1], but there are no bugs reported... yet.
[1]
http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=network-manager-gnome;dist=unstable
On Sun, 2010-04-18 at 13:30 -0400, Daniel Gnoutcheff wrote:
> On 04/18/2010 10:34 AM, Brian DeRocher wrote:
> > Deciding to skip Dbus / Polkit and all that mess, i though i could place
> > a wireless configuration in /etc/NetworkManager/system-connections/ and
> > it would be loaded at boot. Some of the forums like Ubuntu and ArchLinux
> > have suggested this. I tried to follow the settings spec[1] but i'm not
> > sure i got it right. Using strace ./NetworkManager --no-daemon, i see
> > this system-connections folder is never read!
>
> Hmm, weird, this all works fine for me on Ubuntu.
> Well ... I want to get comfy with this code anyway, so let's see what I
> can figure out.
>
> I'm guessing there's a good chance you've checked this already, but just
> to be sure:
>
> - Are you sure the keyfile plugin is indeed enabled in
> /etc/NetworkManager/NetworkManager.conf
> or, if that doesn't exist, in
> /etc/NetworkManager/nm-system-settings.conf ?
Yes, plugins=ifupdown,keyfile. There is no sub-section for [keyfile].
> - You mention compiling N-M from source -- maybe that means you've
> ended up with a N-M that reads config info from
> /usr/local/etc/NetworkManger/ rather than /etc/NetworkManager/ ?
> (Passing --sysconfdir=/etc to ./configure fixes this.)
Oh excellent idea, but no.
# strace ./NetworkManager --no-daemon 2>&1 | egrep '(Network-manager|nm-system-settings)'
open("/etc/NetworkManager/nm-system-settings.conf", O_RDONLY) = 3
open("/etc/NetworkManager/nm-system-settings.conf", O_RDONLY) = 12
open("/etc/NetworkManager/nm-system-settings.conf", O_RDONLY) = 12
> > NM just hangs here after entering state 3.
>
> Do you mean to say that N-M has actually become unresponsive to D-Bus
> calls and the like, or are you just referring to the fact that N-M is
> not doing anything? It is normal for N-M to be idle if it doesn't see
> any connections to activate (which appears to be our problem). Try
> nm-tool, that's a good smoke-test.
Sorry for the ambiguity. It is probably not a true hang. I don't know now to speak to it
with D-Bus directly, except to use qdbus.
> The N-M output you posted, that's not the full output, right? A full,
> unabbrevated log would be most helpful for figuring out what's up.
You got it... You get the deluxe bcd version ;) Keeping in mind i'm looking add_connection and get_connections.
lt-NetworkManager: <info> starting...
lt-NetworkManager: <info> modem-manager is now available
lt-NetworkManager: <info> bcd nm_sysconfig_settings_new()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd (g_iface) nm-system-config-interface interface_init()
lt-NetworkManager: bcd (g_iface) nm-system-config-interface interface_init()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd start loading a plugin
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_init 1
lt-NetworkManager: bcd nm_system_config_interface_init 2
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_init 3
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: SCPlugin-Ifupdown: init!
lt-NetworkManager: SCPlugin-Ifupdown: update_system_hostname
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet
lt-NetworkManager: SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-687ed5bae28e
lt-NetworkManager: SCPlugin-Ifupdown: autoconnect
lt-NetworkManager: SCPluginIfupdown: management mode: unmanaged
lt-NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:05.0/0000:08:00.0/net/wlan0, iface: wlan0)
lt-NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:05.0/0000:08:00.0/net/wlan0, iface: wlan0): no ifupdown configuration found.
lt-NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:06.0/0000:09:00.0/net/eth0, iface: eth0)
lt-NetworkManager: SCPluginIfupdown: locking wired connection setting
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: Ifupdown: get unmanaged devices count: 1
lt-NetworkManager: <info> bcd load_connections
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: <info> bcd load_connections 1
lt-NetworkManager: bcd nm_system_config_interface_get_connections()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: SCPlugin-Ifupdown: (15807776) ... get_connections.
lt-NetworkManager: SCPlugin-Ifupdown: (15807776) ... get_connections (managed=false): return empty list.
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: Ifupdown: get unmanaged devices count: 1
lt-NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
lt-NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
lt-NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/pan0, iface: pan0)
lt-NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/pan0, iface: pan0): no ifupdown configuration found.
lt-NetworkManager: SCPlugin-Ifupdown: end _init.
lt-NetworkManager: bcd nm_system_config_interface_init 4
lt-NetworkManager: bcd nm_system_config_interface_init 5
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd (g_iface) nm-system-config-interface interface_init()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd start loading a plugin
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_init 1
lt-NetworkManager: bcd nm_system_config_interface_init 2
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_init 5
lt-NetworkManager: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
lt-NetworkManager: <info> Found wlan radio killswitch rfkill0 (at /sys/devices/pci0000:00/0000:00:05.0/0000:08:00.0/ieee80211/phy0/rfkill0) (driver <unknown>)
lt-NetworkManager: <info> WiFi enabled by radio killswitch; enabled by state file
lt-NetworkManager: <info> WWAN enabled by radio killswitch; enabled by state file
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: bcd nm_system_config_interface_get_type()
lt-NetworkManager: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
lt-NetworkManager: <info> bcd (wlan0) manager add_device 1
lt-NetworkManager: <info> bcd (wlan0) manager add_device 2 wifi
lt-NetworkManager: <info> bcd (wlan0) manager add_device 3 wifi
lt-NetworkManager: <info> (wlan0): new 802.11 WiFi device (driver: 'ath9k')
lt-NetworkManager: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/0
lt-NetworkManager: <info> bcd (wlan0) manager add_device 4
lt-NetworkManager: <info> bcd (wlan0) manager add_device 5 can assume connection
lt-NetworkManager: <info> bcd (wlan0) manager add_device 6 can assume connection
lt-NetworkManager: <info> (wlan0): now managed
lt-NetworkManager: <info> (wlan0): device state change: 1 -> 2 (reason 2)
lt-NetworkManager: <info> (wlan0): bringing up device.
lt-NetworkManager: <info> (wlan0): preparing device.
lt-NetworkManager: <info> (wlan0): deactivating device (reason: 2).
lt-NetworkManager: <info> bcd device-wifi real_is_available 3 false
lt-NetworkManager: <info> bcd device-wifi real_is_available 3 false
lt-NetworkManager: <info> bcd (wlan0) manager add_device 7
lt-NetworkManager: <info> bcd (wlan0) manager add_device 7 existing false
lt-NetworkManager: <info> bcd (wlan0) manager add_device 7 managed true
lt-NetworkManager: <info> bcd (wlan0) manager add_device 7 available false
lt-NetworkManager: <info> (eth0): carrier is OFF
lt-NetworkManager: <info> bcd (eth0) manager add_device 1
lt-NetworkManager: <info> (eth0): new Ethernet device (driver: 'r8169')
lt-NetworkManager: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/1
lt-NetworkManager: <info> bcd (eth0) manager add_device 4
lt-NetworkManager: <info> bcd (eth0) manager add_device 5 can assume connection
lt-NetworkManager: <info> bcd (eth0) manager add_device 6 can assume connection
lt-NetworkManager: <info> bcd (eth0) manager add_device 7
lt-NetworkManager: <info> bcd (eth0) manager add_device 7 existing false
lt-NetworkManager: <info> bcd (eth0) manager add_device 7 managed false
lt-NetworkManager: <info> bcd (eth0) manager add_device 7 available false
lt-NetworkManager: <WARN> device_creator(): /sys/devices/virtual/net/pan0: couldn't determine device driver; ignoring...
/sbin/ifup: interface lo already configured
lt-NetworkManager: <WARN> default_adapter_cb(): bluez error getting default adapter: No such adapter
lt-NetworkManager: <info> (eth0): carrier now ON (device state 1)
lt-NetworkManager: <info> (wlan0): supplicant interface state: starting -> ready
lt-NetworkManager: <info> bcd device-wifi real_is_available returning true
lt-NetworkManager: <info> bcd device wifi 1
lt-NetworkManager: <info> (wlan0): device state change: 2 -> 3 (reason 42)
...
lt-NetworkManager: <WARN> nm_signal_handler(): Caught signal 2, shutting down normally.
lt-NetworkManager: <info> (wlan0): taking down device.
lt-NetworkManager: <info> exiting (success)
# cat /etc/NetworkManager/nm-system-settings.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
#[keyfile]
#hostname = seven
# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
--
Brian DeRocher <brian derocher org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]