[opensuse-factory] networkmanager and dispatcher.d
Hi,
I use a small dispatcher script to add a link-local route to my machine.
baphomet:/etc/NetworkManager/dispatcher.d # cat z01-link-local
#! /bin/sh
#
# link-local dispatcher script for NetworkManager
#
# Alin M Elena
On Mon, 2011-05-09 at 21:40 +0100, Alin Marin Elena wrote:
this works like a charm on my 11.4 with nm 0.8.2-15.20.1 it gets in trouble on factory with nm 0.8.2-15.20.1
Just for my understanding (and probably for everybody else that tries to reproduce: you have the SAME version on Factory as on 11.4 but get a different result? (Or are we talking about the NM 0.9 on Factory?) Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue 10 May 2011 11:26:37 Dimstar / Dominique Leuenberger wrote:
On Mon, 2011-05-09 at 21:40 +0100, Alin Marin Elena wrote:
this works like a charm on my 11.4 with nm 0.8.2-15.20.1 it gets in trouble on factory with nm 0.8.2-15.20.1
Just for my understanding (and probably for everybody else that tries to reproduce: you have the SAME version on Factory as on 11.4 but get a different result? (Or are we talking about the NM 0.9 on Factory?)
Dominique
on 11.4 I have nm 0.8.2-15.20.1 and it works on factory I have nm 0.8.2-15.20.1 and it does not work... all I found is that on factory $1 gets expanded to empty string. Alin -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, 2011-05-10 at 10:29 +0100, Alin Marin Elena wrote:
on 11.4 I have nm 0.8.2-15.20.1 and it works on factory I have nm 0.8.2-15.20.1 and it does not work...
all I found is that on factory $1 gets expanded to empty string.
This sounds a lot like there is a conflict somewhere (Factory should very likely NOT have the EXACT same version and release as 11.4.. especially on Factory we do not have 3 parts in a release, this indicates a package from the Update channel). Can you please check with: rpm -qa "NetworkManager*" and post the result here? I'm somewhat assuming conflicting panel applet to NM backend. Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue 10 May 2011 11:34:31 Dimstar / Dominique Leuenberger wrote:
On Tue, 2011-05-10 at 10:29 +0100, Alin Marin Elena wrote:
on 11.4 I have nm 0.8.2-15.20.1 and it works on factory I have nm 0.8.2-15.20.1 and it does not work...
all I found is that on factory $1 gets expanded to empty string.
This sounds a lot like there is a conflict somewhere (Factory should very likely NOT have the EXACT same version and release as 11.4.. especially on Factory we do not have 3 parts in a release, this indicates a package from the Update channel).
Can you please check with: rpm -qa "NetworkManager*" and post the result here? I'm somewhat assuming conflicting panel applet to NM backend.
Dominique bloody copy paste.... and my flu and I... here is the correct nm for factory... 0.8.999-106.3
Alin -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Can you please check with: rpm -qa "NetworkManager*" and post the result here? I'm somewhat assuming conflicting panel applet to NM backend.
Dominique
Here is all the output [alin@abbaton:~/src/printers]: zypper se -is plasmoid-netw Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+--------------------------------------+---------+----------------------------+--------+------------ i | plasmoid-networkmanagement | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE i | plasmoid-networkmanagement-debuginfo | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE [alin@abbaton:~/src/printers]: zypper se -is NetworkMana Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+--------------------------------------+---------+----------------------------+--------+------------ i | NetworkManager | package | 0.8.999-106.3 | x86_64 | KDEUNSTABLE i | NetworkManager-debuginfo | package | 0.8.999-106.3 | x86_64 | KDEUNSTABLE i | NetworkManager-glib | package | 0.8.999-106.3 | x86_64 | KDEUNSTABLE i | NetworkManager-glib-debuginfo | package | 0.8.999-106.3 | x86_64 | KDEUNSTABLE i | NetworkManager-kde4-lang | package | 0.9.1.60git.1304938605-1.1 | noarch | KDEUNSTABLE i | NetworkManager-kde4-libs | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE i | NetworkManager-openvpn | package | 0.8.999-41.1 | x86_64 | KDEUNSTABLE i | NetworkManager-openvpn-kde4 | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE i | NetworkManager-pptp | package | 0.8.999-26.1 | x86_64 | KDEUNSTABLE i | NetworkManager-pptp-kde4 | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE i | cnetworkmanager | package | 0.21.1-8.2 | noarch | factory_oss i | libproxy1-networkmanager | package | 0.4.6-9.1 | x86_64 | factory_oss i | plasmoid-networkmanagement | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE i | plasmoid-networkmanagement-debuginfo | package | 0.9.1.60git.1304938605-1.1 | x86_64 | KDEUNSTABLE Alin -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, 2011-05-10 at 13:13 +0100, Alin Marin Elena wrote:
Can you please check with: rpm -qa "NetworkManager*" and post the result here? I'm somewhat assuming conflicting panel applet to NM backend.
Dominique
I see that NM changed apparently a bunch around there and much more information is passed in ENV. Not exactly sure if everything, but it might be worthy to check what all ENV contains while one of those dispatchers run. (much more information can be passed reliably than on command line) I wasn't just able to find some documentation for the dispatcher scripts... they are a little bit hidden magic :) Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, 2011-05-10 at 14:32 +0200, Dimstar / Dominique Leuenberger wrote:
I see that NM changed apparently a bunch around there and much more information is passed in ENV. Not exactly sure if everything, but it might be worthy to check what all ENV contains while one of those dispatchers run.
(much more information can be passed reliably than on command line)
I wasn't just able to find some documentation for the dispatcher scripts... they are a little bit hidden magic :)
I just verified this on my system (with NM 0.8.998 as well on Factory). $1 still refers to the device (eth0) and $2 to the mode (up/down). No changes there. I used this dummy dispatcher script: ### #!/bin/sh while [ ! -z "$1" ]; do echo "Next param: $1" >> /tmp/z01_test shift done echo "*** env ***" >> /tmp/z01_test env >> /tmp/z01_test ### And the log file spits nicely out what it should:
cat z01_test Next param: eth0 [ refers to $1 ] Next param: up [ refers to $2 ] *** env *** IP4_NAMESERVERS=<my name severs> CONNECTION_UUID=f8bf5f9a-ad90-4189-840c-67bc1948dded DHCP4_NETWORK_NUMBER=<netnum> IP4_NUM_ADDRESSES=1 DHCP4_DHCP_SERVER_IDENTIFIER=<dhcpserver> IP4_ADDRESS_0=
<defgw> DHCP4_DHCP_MESSAGE_TYPE=5 DHCP4_BROADCAST_ADDRESS=<bcast address> DHCP4_EXPIRY=1305290562 DHCP4_IP_ADDRESS=<ip address> DHCP4_ROUTERS=<routers> CONNECTION_ID=Auto eth0 PWD=/ IP4_NUM_ROUTES=0 SHLVL=1 DHCP4_DHCP_LEASE_TIME=259200 DHCP4_SUBNET_MASK=255.255.255.0 DHCP4_NDS_TREE_NAME=<tree name> DHCP4_DOMAIN_NAME_SERVERS=<dns server list> _=/usr/bin/env
so NM generally seems to be fine here. Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
and here my results from a similar test [root@abbaton:/home/alin]: cat /tmp/disp.log param 1: --- param 2: up --- ***env*** CONSOLE=/dev/console IP4_NAMESERVERS=137.43.116.19 137.43.116.17 137.43.105.22 DEVICE_IP_IFACE=eth0 CONNECTION_UUID=f1694e62-4da6-4b25-9e4a-e5e18e9cbdee DEVICE_IFACE=eth0 IP4_NUM_ADDRESSES=1 IP4_ADDRESS_0=137.43.151.40/22 137.43.148.1 LC_ALL=POSIX DHCP4_OPTIONS=(null) REDIRECT=/dev/tty7 COLUMNS=156 VPN_IP_IFACE= PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:. CONNECTION_ID=Auto eth0 PWD=/ IP4_NUM_ROUTES=0 LINES=46 VPN_IP4_NUM_ROUTES=0 SHLVL=1 _=/usr/bin/env -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, 2011-05-10 at 15:58 +0100, Alin Marin Elena wrote:
and here my results from a similar test
I was accidentally still running 0.8.998 yesterday. Now I updated to 0.8.999 and as sad as it sounds: this behavior changed indeed. My current output in my tmp file looks like this:
cat /tmp/z01_test *** env *** IP4_NAMESERVERS=<nameservers> DEVICE_IP_IFACE=eth0 CONNECTION_UUID=f8bf5f9a-ad90-4189-840c-67bc1948dded DEVICE_IFACE=eth0 IP4_NUM_ADDRESSES=1 IP4_ADDRESS_0=
<defgw> DHCP4_OPTIONS=(null) VPN_IP_IFACE= CONNECTION_ID=Auto eth0 PWD=/ IP4_NUM_ROUTES=0 VPN_IP4_NUM_ROUTES=0 SHLVL=1 _=/usr/bin/env *** set *** BASH=/bin/sh BASHOPTS=checkwinsize:cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=([0]="2") BASH_ARGV=([0]="up" [1]="") BASH_CMDS=() BASH_LINENO=([0]="0") BASH_SOURCE=([0]="/etc/NetworkManager/dispatcher.d/z01_test") BASH_VERSINFO=([0]="4" [1]="2" [2]="8" [3]="1" [4]="release" [5]="x86_64-suse-linux-gnu") BASH_VERSION='4.2.8(1)-release' CONNECTION_ID='Auto eth0' CONNECTION_UUID=f8bf5f9a-ad90-4189-840c-67bc1948dded DEVICE_IFACE=eth0 DEVICE_IP_IFACE=eth0 DHCP4_OPTIONS='(null)' DIRSTACK=() EUID=0 GROUPS=() HOSTNAME=<hostname> HOSTTYPE=x86_64 IFS=' ' IP4_ADDRESS_0=' <defgw>' IP4_NAMESERVERS='<nameservers>' IP4_NUM_ADDRESSES=1 IP4_NUM_ROUTES=0 MACHTYPE=x86_64-suse-linux-gnu OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:. PIPESTATUS=([0]="0") POSIXLY_CORRECT=y PPID=1253 PS4='+ ' PWD=/ SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments:posix SHLVL=1 TERM=dumb UID=0 VPN_IP4_NUM_ROUTES=0 VPN_IP_IFACE= _='*** set ***'
I'd say this could very well be worthy a bug report against NM upstream directly. (https://bugzilla.gnome.org) Either this is intentional (which sounds weird... but well: the 'info' is still all around in 'some' place.. just not in $*) Dominique PS: a very likely candidate to have changed this behavior is http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=f898dbf... which was huge enough to mess this up and was also just before rc2 release. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (2)
-
Alin Marin Elena
-
Dimstar / Dominique Leuenberger