Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235330 - NetworkManager 0.7 version bump
Summary: NetworkManager 0.7 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Robert Buchholz (RETIRED)
URL:
Whiteboard:
Keywords:
: 246283 (view as bug list)
Depends on: 212724 214801 244226
Blocks:
  Show dependency tree
 
Reported: 2008-08-21 02:18 UTC by Robert Buchholz (RETIRED)
Modified: 2010-01-06 18:35 UTC (History)
30 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
networkmanager-20081005.ebuild (networkmanager-20081005.ebuild,2.34 KB, text/plain)
2008-10-05 17:21 UTC, Frederic LIETART
Details
nm-applet-20081005.ebuild (nm-applet-20081005.ebuild,1.64 KB, text/plain)
2008-10-05 17:22 UTC, Frederic LIETART
Details
nm-applet-changeconf.patch (nm-applet-changeconf.patch,744 bytes, patch)
2008-10-05 17:22 UTC, Frederic LIETART
Details | Diff
buid log (build.log,179.58 KB, text/plain)
2008-10-11 11:13 UTC, wd
Details
networkmanager-9999.ebuild (SVN version) (networkmanager-9999.ebuild,2.32 KB, text/plain)
2008-10-28 09:14 UTC, Alexandre Ghisoli
Details
nm-applet-9999 (SVN version) (nm-applet-9999.ebuild,1.73 KB, text/plain)
2008-10-28 09:15 UTC, Alexandre Ghisoli
Details
Defaults hostname to /etc/conf.d/hostname content (fix_system_hostname.patch,2.38 KB, patch)
2008-11-20 11:24 UTC, Marco Gulino
Details | Diff
build for nm-applet (nm-applet-0.7.0_rc2.ebuild,1.71 KB, text/plain)
2008-11-24 19:44 UTC, Gene Imes
Details
buildlog for failed nm-applet emerge (gnome-extra:nm-applet-0.7.0_rc2:20081126-200244.log,17.63 KB, text/plain)
2008-11-26 20:06 UTC, Gene Imes
Details
policykit-gnome-0.9.2.ebuild (policykit-gnome-0.9.2.ebuild,825 bytes, text/plain)
2008-12-01 19:06 UTC, Bernard Cafarelli
Details
screenshot of what appears in nm-applet (Screenshot-Network Connections.png,19.34 KB, image/png)
2008-12-02 16:38 UTC, Gene Imes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2008-08-21 02:18:37 UTC
We're currently working to get a snapshot of NetworkManager 0.7 into the tree. This should includes:
* NetworkManager
* nm-applet
* knetworkmanager
* the vpn plugins

For anyone willing to test, run
# layman -a gnome
# layman -a rbu
Comment 1 Roeland Douma 2008-09-09 12:07:06 UTC
knetworkmanger-0.7_pre0 is not available in those overlays...
could you add it so I can test it :D
Comment 2 Frederic LIETART 2008-10-05 14:06:21 UTC
Snapshot Networkmanager 0.7

layman -o http://thelinux.googlecode.com/files/layman.xml -f -a thelinux

Need test ;)
Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2008-10-05 14:29:13 UTC
Frederic, we're actively working on ebuilds in my overlay. If you want to contribute to our efforts, please report bugs, comments or patches here, or I can give you write access to the repository.
Browsing through another repository and figuring out the adjustments you made is just increasing workload for dagger and me.
Comment 4 Frederic LIETART 2008-10-05 17:21:45 UTC
Created attachment 167334 [details]
networkmanager-20081005.ebuild
Comment 5 Frederic LIETART 2008-10-05 17:22:22 UTC
Created attachment 167336 [details]
nm-applet-20081005.ebuild
Comment 6 Frederic LIETART 2008-10-05 17:22:39 UTC
Created attachment 167337 [details, diff]
nm-applet-changeconf.patch
Comment 7 Frederic LIETART 2008-10-05 17:23:53 UTC
My SVN http://code.google.com/p/thelinux/source/browse/trunk
Comment 8 Frederic LIETART 2008-10-05 18:59:24 UTC
I noted some problems:

In /etc/dbus/system.d/NetworkManager.conf and other nm-*.conf must change the groups to "plugdev"(See my patches). With this change it remains for me an error on wifi:

$ nm-applet --sm-disable
** (nm-applet:12843): WARNING **: Could not retrieve dbus connections: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success.
Comment 9 Frederic LIETART 2008-10-05 19:01:36 UTC
Otherwise I will be happy to help you;)
Comment 10 Robert Piasek (RETIRED) gentoo-dev 2008-10-06 15:19:14 UTC
Hi Lietart,

(In reply to comment #8)
> I noted some problems:
> 
> In /etc/dbus/system.d/NetworkManager.conf and other nm-*.conf must change the
> groups to "plugdev"(See my patches). With this change it remains for me an
> error on wifi:
> 
> $ nm-applet --sm-disable
> ** (nm-applet:12843): WARNING **: Could not retrieve dbus connections: Failed
> to execute program /usr/libexec/dbus-daemon-launch-helper: Success.
> 

I haven't seen this error before (although I haven't tried the most recent snapshot yet - only 15.09).

Usually you get the "Could not retrieve dbus connections" error message when you install NM for the first time and you don't reload dbus service.

PS rbu, have you experienced this problem with overwriting hostname with localhost.localdomain (was thread on mailing list few days ago)?
Comment 11 Edward Oubrayrie 2008-10-10 02:18:46 UTC
Can you post here the status of the build ? Is it usable ? Did you agree on one ebuild instead of two ?
Also, is the knetworkmanager the same as in ubuntu untrepid beta ? (I don't like not having the available networks list like in the 0.6 one)
Thanks a lot !
Comment 12 Robert Buchholz (RETIRED) gentoo-dev 2008-10-10 09:41:55 UTC
(In reply to comment #11)
> Can you post here the status of the build ? Is it usable ? Did you agree on one
> ebuild instead of two ?

It is building and it is usable (for me, and some others). I would be lying if I said that I have not heard problem reports yet. Please try it for yourself and let us know if it breaks.


> Also, is the knetworkmanager the same as in ubuntu untrepid beta ? (I don't
> like not having the available networks list like in the 0.6 one)

Please raise that issue upstream, it is the same knm as ubuntu will have, and it has the list of available networks in an extra window, yes.
Comment 13 wd 2008-10-11 11:13:04 UTC
Created attachment 168000 [details]
buid log

Got an error when emerge knetworkmanager with vpnc use.
Comment 14 Alexandre Ghisoli 2008-10-28 09:14:38 UTC
Created attachment 170069 [details]
networkmanager-9999.ebuild (SVN version)

For the braves, the SVN version of this ebuild.
Please note that you need gnome-extra/policykit-gnome-0.9
Comment 15 Alexandre Ghisoli 2008-10-28 09:15:29 UTC
Created attachment 170071 [details]
nm-applet-9999 (SVN version)

SVN version of nm-applet to run with networkmanager-9999
Comment 16 Alexandre Ghisoli 2008-10-28 09:19:27 UTC
I've got a lot of troubles with the hostname change of NM.

If no network, it changes my hostname to localhost.localdomain

If I've a network, NM tries to do a DNS reverse lookup on the IP address and then set the hostname with the lookup result.

This makes my X session unusable since X didnt accept new connexion because hostname change.

More details on this case at LP : 
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/276253
Comment 17 Steev Klimaszewski (RETIRED) gentoo-dev 2008-10-29 12:40:23 UTC
Please read the einfo that is posted at the end of compiling/emerging NetworkManager - it is explained there what you need to do.
Comment 18 Robert Piasek (RETIRED) gentoo-dev 2008-10-29 13:20:00 UTC
I've bumped the revision of NM, nm-applet, vpn plugins and knetworkmanager in the overlay yesterday.

NM - 4230
applet - 968

(also checked knetworkmanager and it compiles with all VPN plugins)

Comment 19 Robert Piasek (RETIRED) gentoo-dev 2008-10-29 13:24:20 UTC
(In reply to comment #15)
> Created an attachment (id=170071) [edit]
> nm-applet-9999 (SVN version)
> 
> SVN version of nm-applet to run with networkmanager-9999
> 

Hi Alexandre,

Thanks for your ebuilds. They seems to be based on 0.6.6 and some dependencies are a bit outdated. Please feel free to try 9999 ebuilds from rbu overlay.

Rob
Comment 20 Alexandre Ghisoli 2008-10-29 13:44:13 UTC
(In reply to comment #17)
> Please read the einfo that is posted at the end of compiling/emerging
> NetworkManager - it is explained there what you need to do.
> 

Hi, 

I've setup the DHCP trick, but there is a change in the NM code that do a reverse DNS lookup and it didn't use the forced hostname.

So it's a change and maybe need to be patched for Gentoo, I think.
Comment 21 Gene Imes 2008-11-06 22:41:08 UTC
Anyone know how I can get rid of this:

cc1: warnings being treated as errors
applet-device-gsm.c: In function ‘gsm_get_secrets’:
applet-device-gsm.c:476: warning: ‘w’ may be used uninitialized in this function
applet-device-gsm.c:476: note: ‘w’ was declared here
make[3]: *** [nm_applet-applet-device-gsm.o] Error 1

I also have the localhost.localdomain problem.

Thanks,

Gene
Comment 22 Robert Piasek (RETIRED) gentoo-dev 2008-11-07 21:46:32 UTC
Hi,

What version of NM are you using? For the best results I suggest using 0.7.0_rc1 from the overlay.

(In reply to comment #21)
> Anyone know how I can get rid of this:
> 
> cc1: warnings being treated as errors
> applet-device-gsm.c: In function ‘gsm_get_secrets’:
> applet-device-gsm.c:476: warning: ‘w’ may be used uninitialized in this
> function
> applet-device-gsm.c:476: note: ‘w’ was declared here
> make[3]: *** [nm_applet-applet-device-gsm.o] Error 1

Can you please do the following:
1) stop NetworkManager
2) run "NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon"
3) attach the output to this bug
4) provide more info about the hardware you're using - if that's usb modem/phone provide model, attach lsusb, or lshal | grep gsm -A20 -B20 (anything what might be useful)

> I also have the localhost.localdomain problem.
> 
> Thanks,
> 
> Gene
> 

Thanks
Rob
Comment 23 Robert Buchholz (RETIRED) gentoo-dev 2008-11-10 17:12:11 UTC
*** Bug 246283 has been marked as a duplicate of this bug. ***
Comment 24 Gene Imes 2008-11-10 21:44:22 UTC
(In reply to comment #22)
> Hi,
> 
> What version of NM are you using? For the best results I suggest using
> 0.7.0_rc1 from the overlay.

I was using nm-applet-9999 for the day of the original post.

> 
> (In reply to comment #21)
> > Anyone know how I can get rid of this:
> > 
> > cc1: warnings being treated as errors
> > applet-device-gsm.c: In function ‘gsm_get_secrets’:
> > applet-device-gsm.c:476: warning: ‘w’ may be used uninitialized in this
> > function
> > applet-device-gsm.c:476: note: ‘w’ was declared here
> > make[3]: *** [nm_applet-applet-device-gsm.o] Error 1

This is a compile time error.

> 
> Can you please do the following:
> 1) stop NetworkManager
> 2) run "NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon"

go ~ # "NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon"
bash: NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon: No such file or directory

> 3) attach the output to this bug

This bug is graphviz or some such.

> 4) provide more info about the hardware you're using - if that's usb
> modem/phone provide model, attach lsusb, or lshal | grep gsm -A20 -B20
> (anything what might be useful)

This is a sony tz series laptop with the intel 4965 chip using the iwlagn driver out of the kernel. I also have the some sort of cellular modem which runs with the kernel module 'option' I would like to use with NetworkManager but that functionality doesn't seem to be there yet.

I had a version of NetworkManager that worked ok I thinks it was 0.7. I have been trying -9999 without much success. I could get and IP but not a static IP.

The einfo stuff did not fix the localhost.localdomain problem.

What else can I say?

Thanks for your help. If I can figure out the overlay stuff I will try the rbu stuff.


> 
> > I also have the localhost.localdomain problem.
> > 
> > Thanks,
> > 
> > Gene
> > 
> 
> Thanks
> Rob
> 

Gene
Comment 25 Robert Piasek (RETIRED) gentoo-dev 2008-11-10 22:22:00 UTC
Hi Gene,
(In reply to comment #24)
> > > cc1: warnings being treated as errors
> > > applet-device-gsm.c: In function ‘gsm_get_secrets’:
> > > applet-device-gsm.c:476: warning: ‘w’ may be used uninitialized in this
> > > function
> > > applet-device-gsm.c:476: note: ‘w’ was declared here
> > > make[3]: *** [nm_applet-applet-device-gsm.o] Error 1
> 
> This is a compile time error.
> 
Sorry I didn't spot it was compiler error. 

If you are using version -9999 you should always expects such problems, especially for _pre packages. The API might change at any point and not all the files are updated at the same time. Errors like this are completely our of our control, and usually they are fixed within few hours (or days). That's one of the main reasons you can't find 9999 ebuilds in the official portage tree. Even if you manage to find some, they will be mostly hard masked and without any keywords.
It's always safer to use snapshot versions (like _pre20081010 or _beta _rc etc). That means devs tested it, made sure it compiles fine and doesn't break other stuff.

> I had a version of NetworkManager that worked ok I thinks it was 0.7. I have
> been trying -9999 without much success. I could get and IP but not a static IP.

The static IP is configured in nm-applet (right click on the icon, that edit connections, go to wireless tab, select your network name and click edit. You should find 3 tabs there - one of them will be called "IPv4 Settings". You can change the default DHCP method to manual, and specify static IP address you desire).

> Thanks for your help. If I can figure out the overlay stuff I will try the rbu
> stuff.

I would highly recommend stuff from overlay, as it's tested and compiles fine (does it work fine? - I hope you can help us testing it, so we can upload ebuild to the tree when 0.7 final will be released).

I hope that helps,
Rob
Comment 26 Richard Hering 2008-11-12 20:15:48 UTC
Two bugs:

first: networkmanager doen't start wpa_supplicant: http://bugs.gentoo.org/show_bug.cgi?id=246026

second: networkmanager changes hostname, my /etc/dhcp/dhclient.conf is correct
Comment 27 Robert Piasek (RETIRED) gentoo-dev 2008-11-13 13:40:02 UTC
(In reply to comment #26)
> Two bugs:
> 
> first: networkmanager doen't start wpa_supplicant:
> http://bugs.gentoo.org/show_bug.cgi?id=246026
I think you're taking about bug http://bugs.gentoo.org/show_bug.cgi?id=212724
What version of wpa_supplicant are you using?

> second: networkmanager changes hostname, my /etc/dhcp/dhclient.conf is correct
> 
I assume you're using dhclient as your dhcp client. Would you mind trying with dhcpcd and report your results?
Also does your machine has a valid revDNS?
Comment 28 Richard Hering 2008-11-13 14:16:24 UTC
Sorry I've & pasted a false link, correct link for first bug is http://bugzilla.gnome.org/show_bug.cgi?id=560334
 I'm using version 0.6.4.

With dhcpd Networkmanager is setting hostname too:

Nov 13 15:02:06 [NetworkManager] <info>  Setting system hostname to 'wlan0593.rz.uni-leipzig.de' (from address lookup)

Where should I configure revDNS on my laptop? Gentoo handbook don't know something about revDNS.
Comment 29 Robert Piasek (RETIRED) gentoo-dev 2008-11-13 14:24:04 UTC
What version of NM are you using? Is it 0.7_rc1?

Can you try:
/etc/init.d/NetworkManager stop
than
/usr/sbin/NetworkManager --no-daemon

and post the results?

> 
> Where should I configure revDNS on my laptop? Gentoo handbook don't know
> something about revDNS.
> 
If you don't know where to find it, it probably means you don't have it set up. It's the setting you set up on your DNS server. As far as I remember NM will check revDNS and will assign you corresponding name. If it won't find it - it will use localhost.localhomain.

Could you also post your /etc/conf.d/hostname and /etc/hosts?

btw did you manage to test it with dhcpcd?

Thanks
Rob
Comment 30 Richard Hering 2008-11-13 17:52:35 UTC
You're right, I've no DNS-Server running. We've at home a DSL-Router from Zyxel, nothing more. The problem with changing hostname exists also on university network or at friends. Now, I'm logging in Gnome and start NetworkManager manually. When I'm online and NM changed hostname I do manuelly /etc/init.d/hostname restart to be able to use X :)

# cat /etc/hosts
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for 
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be 
# consulted at all; see /etc/host.conf for the resolution order.
#
127.0.0.1	dhcppc0	localhost.localdomain	localhost

# IPv4 and IPv6 localhost aliases
127.0.0.1	localhost
::1		localhost

# cat /etc/conf.d/hostname 
# Set to the hostname of this machine
hostname="jacktop"

# emerge -pv networkmanager

These are the packages that would be merged, in order:

Calculating dependencies                                  ... done!   
[ebuild   R   ] net-misc/networkmanager-0.7.0_rc1  USE="dhcpcd gnome -dhclient -doc -gnutls -nss -resolvconf" 0 kB [1]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/rbu

# /usr/sbin/NetworkManager --no-daemon
http://rafb.net/p/sJ0ylx39.html
Comment 31 Robert Piasek (RETIRED) gentoo-dev 2008-11-14 22:26:28 UTC
Can you adjust your hosts file to reflect your hostname?

something along the lines:

# cat /etc/hosts
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for 
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be 
# consulted at all; see /etc/host.conf for the resolution order.
#
127.0.0.1       dhcppc0 jacktop.local   jacktop

# IPv4 and IPv6 localhost aliases
127.0.0.1       jacktop
::1             jacktop

(instead of local you can use any other domain).
Comment 32 Richard Hering 2008-11-15 13:35:16 UTC
no change, networkmanager continue changing hostname
Comment 33 Richard Hering 2008-11-15 20:12:27 UTC
In http://bugs.gentoo.org/show_bug.cgi?id=212724 I noticed that NetworkManager don't start nm-system-settings too. Running it manually, the NetworkManager don't change hostname. So, Networkmanager can't start nm-system-settings an wpa_supplicant. 
Comment 34 Robert Piasek (RETIRED) gentoo-dev 2008-11-16 01:39:58 UTC
(In reply to comment #33)
> In http://bugs.gentoo.org/show_bug.cgi?id=212724 I noticed that NetworkManager
> don't start nm-system-settings too. Running it manually, the NetworkManager
> don't change hostname. So, Networkmanager can't start nm-system-settings an
> wpa_supplicant. 
> 

So it looks like a dbus problem. NM starts both of these services over dbus call. What version of dbus are you running?
Comment 35 Richard Hering 2008-11-17 09:23:45 UTC
[ebuild   R   ] sys-apps/dbus-1.2.3-r1  USE="X -debug -doc (-selinux)" 0 kB
Comment 36 Robert Piasek (RETIRED) gentoo-dev 2008-11-17 21:35:36 UTC
(In reply to comment #35)
> [ebuild   R   ] sys-apps/dbus-1.2.3-r1  USE="X -debug -doc (-selinux)" 0 kB
> 

I'm still looking for potential problems with wpa_supplicant, but so far let's take a look on localhost.localdomain problem again.

I've checked the code when networkmanager sets hostname=localhost.localdomain with your error message and it looks like either of these:

1) no hostname is defined
2) no connection can be used by networkmanager

Could you please post the results of:
1) ls -las /etc/init.d/net*
2) cat /etc/conf.d/hostname && hostname && /etc/init.d/hostname status
3) cat /etc/conf.d/net
4) rc-config list

Thanks,
Rob
Comment 37 Alexandre Ghisoli 2008-11-17 22:25:20 UTC
Since I'm also affected by the localhost.localdomain, let's go on this ...

(In reply to comment #36)
> I've checked the code when networkmanager sets hostname=localhost.localdomain
> with your error message and it looks like either of these:
> 
> 1) no hostname is defined
> 2) no connection can be used by networkmanager

I've also digged into the source code, but for some reason, NM is not looking for /etc/conf.d/hostname.

> Could you please post the results of:
> 1) ls -las /etc/init.d/net*

 0 lrwxrwxrwx 1 root root     6 oct 25 14:21 /etc/init.d/net.ath0 -> net.lo
16 -rwxr-xr-x 1 root root 14682 oct  8 23:34 /etc/init.d/net.lo
 4 -rwxr-xr-x 1 root root  2074 oct  8 23:34 /etc/init.d/netmount

net.ath0 is not used as startup, it's only used if I didnt not use gnome to manually start the WiFi link.

Except net.lo, all other interfaces are blocked (in /etc/rc.conf, I'm using OpenRC)
rc_plug_services="net.lo !net.*"

> 2) cat /etc/conf.d/hostname && hostname && /etc/init.d/hostname status

cat /etc/conf.d/hostname && hostname && /etc/init.d/hostname status
# Set to the hostname of this machine
HOSTNAME="nb05-x40"
localhost.localdomain
hostname           | * status: started

And my /etc/hosts (you cannot setup hostname without corresponding line in hosts file)
127.0.0.1       localhost.localdomain   localhost
127.0.0.1       nb05-x40.local  nb05-x40

# IPv4 and IPv6 localhost aliases
127.0.0.1       localhost
::1             localhost

> 3) cat /etc/conf.d/net

modules=( "wpa_supplicant" )
essid_ath0="xxx"
config_xxx=( "dhcp" )

Relevant WPA configuration is in /etc/wpa_supplicant/wpa_supplicant.conf.

> 4) rc-config list

I've a little cleaned the list.

Available init scripts
  acpid                     default gnome
  alsasound                 boot
  apmiser                   
  avahi-daemon              
  avahi-dnsconfd            
  bluetooth                 
  bootmisc                  boot
  consolefont               boot
  consolekit                
  crypto-loop               
  cupsd                     
  dbus                      
  device-mapper             boot
  dhcdbd                    
  dhcpd                     
  dhcrelay                  
  distccd                   
  dmcrypt                   boot
  dmeventd                  
  esound                    
  fsck                      boot
  git-daemon                
  gpm                       default
  hald                      default gnome
  hdparm                    
  hibernate-cleanup         default gnome
  hostname                  boot
  hwclock                   boot
  ip6tables                 
  ipsec                     
  iptables                  
  kerneloops                
  keymaps                   boot
  laptop_mode               default gnome
  local                     default gnome nonetwork
  localmount                boot
  lvm                             
  modules                   boot
  mtab                      boot
  net.ath0                  
  net.lo                    boot
  netmount                  default gnome
  NetworkManager            default gnome
  nfs                       
  nfsmount                  
  nscd                      
  ntp-client                
  ntpd                      
  numlock                   
  pciparm                   
  pcscd                     
  pe-format                 
  portmap                   
  procfs                    boot
  pwcheck                   
  root                      boot
  rpc.gssd                  
  rpc.idmapd                
  rpc.statd                 
  rpc.svcgssd               
  rsyncd                    
  sendmail                                    
  sshd                      
  swap                      boot
  sysctl                    boot
  syslog-ng                 default gnome
  termencoding              boot
  udev                      
  udev-postmount            
  urandom                   boot
  vixie-cron                default gnome
  xdm                       gnome

Thanks for trying to fix the naming issue.
 

Comment 38 Alexandre Ghisoli 2008-11-17 22:36:54 UTC
Oh, and I forgot to mention; NM is setting the machine hostname to the reverse DNS mapping when IP is given via DHCP.
The configuration in /etc/dhcp/dhclient.conf is not used by NM :

send host-name "nb05-x40";
supersede host-name "nb05-x40";
Comment 39 Richard Hering 2008-11-18 00:32:22 UTC
(In reply to comment #36)
> (In reply to comment #35)
> > [ebuild   R   ] sys-apps/dbus-1.2.3-r1  USE="X -debug -doc (-selinux)" 0 kB
> > 
> 
> I'm still looking for potential problems with wpa_supplicant, but so far let's
> take a look on localhost.localdomain problem again.
> 
> I've checked the code when networkmanager sets hostname=localhost.localdomain
> with your error message and it looks like either of these:
> 
> 1) no hostname is defined
> 2) no connection can be used by networkmanager
> 
> Could you please post the results of:
> 1) ls -las /etc/init.d/net*
> 2) cat /etc/conf.d/hostname && hostname && /etc/init.d/hostname status
> 3) cat /etc/conf.d/net
> 4) rc-config list
> 
> Thanks,
> Rob
> 

this problem is gone, when I start nm-system-settings manually (see comment #33). should I post this informations anyway?

My only problem is, that NM can't start nm-system-settings and wpa_supplicant over dbus. I start both manually and all is working fine.
Comment 40 Marco Gulino 2008-11-20 11:24:11 UTC
Created attachment 172452 [details, diff]
Defaults hostname to /etc/conf.d/hostname content

I had issues for the hostname being set at localhost.localdomain, and even setting send-hostname directive in /etc/dhcp/dhclient.conf it didn't change at all.
Then googling i found out that it's a common issue, and that ubuntu solved it by adding a "default hostname" switch that takes the hostname from /etc/hostname.
I just adapted that patch to gentoo, the result is the attachment.
It was a bit complicated, since /etc/conf.d/hostname it's shell-like, with the format VARIABLE="value", so i had to do some little parsing.
Feedback?
Comment 41 Gene Imes 2008-11-22 00:28:53 UTC
(In reply to comment #25)

> 
> I would highly recommend stuff from overlay, as it's tested and compiles fine
> (does it work fine? - I hope you can help us testing it, so we can upload
> ebuild to the tree when 0.7 final will be released).
> 
> I hope that helps,
> Rob
> 

Hey, Rob, I finally figured out the overlay stuff and while compiling nm-applet I got this error:

utils.c: In function 'utils_fill_connection_certs':
utils.c:232: error: too many arguments to function 'nm_setting_802_1x_set_ca_cert_from_file'
utils.c:239: error: too many arguments to function 'nm_setting_802_1x_set_client_cert_from_file'
utils.c:246: error: too many arguments to function 'nm_setting_802_1x_set_phase2_ca_cert_from_file'
utils.c:253: error: too many arguments to function 'nm_setting_802_1x_set_phase2_client_cert_from_file'
make[3]: *** [libutils_la-utils.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/libutils_la-gnome-keyring-md5.Tpo .deps/libutils_la-gnome-keyring-md5.Plo
make[3]: Leaving directory `/var/tmp/portage/gnome-extra/nm-applet-0.7.0_rc2/work/nm-applet-0.7.0/src/utils'

This is from nm-applet-0.7.0_rc2 from the rbu overlay.

Do you know how to fix this?

Thanks,

Gene
Comment 42 Robert Piasek (RETIRED) gentoo-dev 2008-11-22 05:39:41 UTC
Hmm.. Honestly I have never seen this error before. Would you mind attaching your build log?

What use flags are you using? gnutls or nss?
Comment 43 Gene Imes 2008-11-24 19:37:05 UTC
(In reply to comment #42)
> Hmm.. Honestly I have never seen this error before. Would you mind attaching
> your build log?
> 
> What use flags are you using? gnutls or nss?
> 

Thanks Rob.

[ebuild  N    ] gnome-extra/nm-applet-0.7.0_rc2  USE="-debug" 0 kB [1]

Comment 44 Gene Imes 2008-11-24 19:44:48 UTC
Created attachment 173256 [details]
build for nm-applet
Comment 45 Robert Piasek (RETIRED) gentoo-dev 2008-11-24 19:48:03 UTC
(In reply to comment #44)
> Created an attachment (id=173256) [edit]
> build for nm-applet
> 

Sorry, I'm blind. You said nm-applet, and I'm asking about NM itself :)

Anyway, could you please attach the build log (not the ebuild).

Thanks,
Rob
Comment 46 Richard Hering 2008-11-25 15:06:40 UTC
net-misc/networkmanager-openvpn-0.7.0_pre20081028 fails: http://rafb.net/p/rYS6tk83.html
net-misc/networkmanager-vpnc-0.7.0_pre20081028 fails: http://rafb.net/p/TbqH6S60.html

What about fix the dbus problem?
Comment 47 Robert Piasek (RETIRED) gentoo-dev 2008-11-25 21:33:35 UTC
(In reply to comment #46)
> net-misc/networkmanager-openvpn-0.7.0_pre20081028 fails:
> http://rafb.net/p/rYS6tk83.html
> net-misc/networkmanager-vpnc-0.7.0_pre20081028 fails:
> http://rafb.net/p/TbqH6S60.html
> 
> What about fix the dbus problem?
> 

They fail against NM_rc2 as they are _pre. We're now waiting for final release (any day now) and we will update all VPN plugins.
Comment 48 Gene Imes 2008-11-26 20:06:06 UTC
Created attachment 173505 [details]
buildlog for failed nm-applet emerge

Sorry, Rob thought I had posted this last time.

Thanks,


Gene
Comment 49 Robert Piasek (RETIRED) gentoo-dev 2008-11-26 20:56:51 UTC
Hi Gene,

(In reply to comment #48)
> Created an attachment (id=173505) [edit]
> buildlog for failed nm-applet emerge
> 
> Sorry, Rob thought I had posted this last time.
> 
> Thanks,
> 
> 
> Gene
> 

Ok, now it makes better sense. Could you please:

1) sync overlay
2) emerge -C networkmanager nm-applet
3) rm -rf /usr/include/NetworkManager
4) emerge nm-applet

That should hopefully solve it.
Comment 50 Loki 2008-11-27 11:54:18 UTC
They fired NetworkManager-0.7.0 :)
Cheers!
Comment 51 Robert Piasek (RETIRED) gentoo-dev 2008-11-30 18:55:35 UTC
I've bumped all NetworkManager, nm-applet and all VPN plugins to 0.7.0 final.

Gnome client (nm-applet) is ready.

kde-3.5 client still needs some updates, and I will bump the revision as soon as it's compatible with 0.7.0 (final)

kde-4.1 does not support NetworkManager 0.7.0 (solid's part wasn't ready for 4.1). You can use nm-applet

kde-4.2 (currently beta1) has full NetworkManager support (in solid) and mostly working applet (remember it's still BETA software). All available under kde-crazy overlay.

I've tested all VPN plugins and they seems to work well. Please test it and provide feedback, so it can be moved to the tree (hard masked).

Rob
Comment 52 Maciej Piechotka 2008-11-30 23:06:22 UTC
Is not requiring nm-applet intended? If yes could 'gnome' 'kde' flags be added?
Comment 53 Robert Piasek (RETIRED) gentoo-dev 2008-12-01 00:02:23 UTC
(In reply to comment #52)
> Is not requiring nm-applet intended?
Yes it is. NetworkManager is a system wide network daemon and it's not directly linked with any window manager.

>If yes could 'gnome' 'kde' flags be added?
See above. Personally I think it should be done the other way around. Window managers should pull appropriate client if networkmanager flag is specified (at least that's how kde's networkmanager support in solid works).
Comment 54 Bernard Cafarelli gentoo-dev 2008-12-01 19:04:32 UTC
Tested on gnome ~amd64 laptop (with nm-applet), with a WPA2 AP and a hidden unencrypted AP, both connect fine, and apparently policykit did not kill my laptop

I had to update policykit-gnome ebuild though, as it wanted gtk-doc inconditionally (updated ebuild with doc USE-flag follows)
Comment 55 Bernard Cafarelli gentoo-dev 2008-12-01 19:06:22 UTC
Created attachment 173993 [details]
policykit-gnome-0.9.2.ebuild

policykit-gnome ebuild with conditional gtk-doc depend
Comment 56 Gene Imes 2008-12-02 16:38:15 UTC
Created attachment 174080 [details]
screenshot of what appears in nm-applet

This is all I get to appear to connect to in nm-applet. Notice that the 'wireless' in under 'wired'. None of my 'wireless' connections appear althought I have several. I can't discover where this information is stored. Perhaps there is some way to delete all connections and repopulate the connection list. I also have A 'Mobile Broadband' connection which does not show up.

Thanks for any help. I hope that attaching a screenshot is not against policy, if so I apologize now.

Thanks again,

Gene
Comment 57 Robert Piasek (RETIRED) gentoo-dev 2008-12-03 23:52:16 UTC
Hi Gene,

(In reply to comment #56)
> Created an attachment (id=174080) [edit]
> screenshot of what appears in nm-applet
> 
> This is all I get to appear to connect to in nm-applet. Notice that the
> 'wireless' in under 'wired'. None of my 'wireless' connections appear althought
> I have several. I can't discover where this information is stored. Perhaps
> there is some way to delete all connections and repopulate the connection list.

NetworkManager gets all the information about the network cards from HAL. Use lshal | grep 802.3 for ethernet cards and lahal | grep 80211 for wireless cards (you might need to add -A5 to grep to see better output). Hal on the other hand reports what drivers have to say. So the best way is to update hal and kernel to the newest possible.
> I also have A 'Mobile Broadband' connection which does not show up.
> 
Similar story here. NM asks hal what mobile broadband devices are available. The only difference here is, that Gentoo by default does not import hal's policies. To get it to work try:
cp /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi /etc/hal/fdi/information/

That should solve problems wit _most_ mobile broadband connections. Just restart hal after coping and remove and plug in the device. If your mobile broadband modem is not detected, please provide me with device details and lsusb output and I can try to fix a hal policy file for you.

> Thanks for any help. I hope that attaching a screenshot is not against policy,
> if so I apologize now.
> 
> Thanks again,
> 
> Gene
> 

Rob
Comment 58 Robert Piasek (RETIRED) gentoo-dev 2008-12-03 23:55:45 UTC
(In reply to comment #55)
> Created an attachment (id=173993) [edit]
> policykit-gnome-0.9.2.ebuild
> 
> policykit-gnome ebuild with conditional gtk-doc depend
> 

Thanks for report! It seems eva bumped version in portage tree ^^

*policykit-gnome-0.9.2 (01 Dec 2008)

  01 Dec 2008; Gilles Dartiguelongue <eva@gentoo.org>
  +policykit-gnome-0.9.2.ebuild:
Comment 59 Tomáš Chvátal (RETIRED) gentoo-dev 2008-12-05 13:14:44 UTC
Already in the tree. Enjoy :]
Comment 60 Robert Buchholz (RETIRED) gentoo-dev 2008-12-05 13:19:42 UTC
Ohh.. and nm-applet was missing. Thanks to everyone involved.
Comment 61 Ricardo Salveti 2008-12-17 03:04:02 UTC
(In reply to comment #56)
> Created an attachment (id=174080) [edit]
> screenshot of what appears in nm-applet
> 
> This is all I get to appear to connect to in nm-applet. Notice that the
> 'wireless' in under 'wired'. None of my 'wireless' connections appear althought
> I have several. I can't discover where this information is stored. Perhaps
> there is some way to delete all connections and repopulate the connection list.
> I also have A 'Mobile Broadband' connection which does not show up.
> 
> Thanks for any help. I hope that attaching a screenshot is not against policy,
> if so I apologize now.

Maybe this is related with bug 246026, where hal is showing incorrectly the wireless device as a wired one.
Comment 62 Jory A. Pratt gentoo-dev 2008-12-23 06:53:03 UTC
For everyone with problems with dbus not launching properly downgrade to dbus-1.2.1 restart dbus then update it again. I do not know why but it has worked on every install I have done.
Comment 63 Julio Missao 2009-01-02 11:01:17 UTC
(In reply to comment #62)
> For everyone with problems with dbus not launching properly downgrade to
> dbus-1.2.1 restart dbus then update it again. I do not know why but it has
> worked on every install I have done.
> 
Indeed I tried this as a last resort and it worked.

I was first having that hostname issue, which was solved using an attached patch.

Then I had that problem where NM fails to find any wireless APs.
Downgrading then upgrading dbus solved it.
Comment 64 Alexandre Ghisoli 2009-01-03 15:40:40 UTC
(In reply to comment #63)

> I was first having that hostname issue, which was solved using an attached
> patch.

The NM version 0.7.0 gives the keyfile plugins witch let you define your hostname (because it doesnt detect the /etc/conf.d/hostname). :


/etc/NetworkManager/nm-system-settings.conf  :

[main]
plugins=keyfile

[keyfile]
hostname=the-hostname

Comment 65 Julio Missao 2009-01-03 17:34:11 UTC
(In reply to comment #64)
> (In reply to comment #63)
> 
> > I was first having that hostname issue, which was solved using an attached
> > patch.
> 
> The NM version 0.7.0 gives the keyfile plugins witch let you define your
> hostname (because it doesnt detect the /etc/conf.d/hostname). :
> 
> 
> /etc/NetworkManager/nm-system-settings.conf  :
> 
> [main]
> plugins=keyfile
> 
> [keyfile]
> hostname=the-hostname
> 

I had already tried that. For some strange reason it wasn't working.
Comment 66 Christoph Brill (egore) (RESIGNED) 2009-06-01 01:27:16 UTC
I'm not sure what exaclty is wrong but here is my analysis of horrible "localhost.localdomain" problems. I tried everything but as soon as I started NetworkManager it broke my /etc/hosts and sysctl kernel.hostname.

I tried all the nice stuff from pkg_postinst and what I found in the gentoo wiki and what I found in this bug. The solution is:

/etc/init.d/NetworkManager forks of nm-system-settings. It is supposed to read /etc/NetworkManager/nm-system-settings.conf... but it isn't. No idea why. It just ignores it. Launching "nm-system-settings --plugings=keyfile" manually causes NetworkManager not to fork nm-system-settings and uses the one running ... which then works totally fine!

I hacked the init.d script to launch "nm-system-settings --plugings=keyfile &" before the start-stop-daemon stuff and now it works.

Man, NetworkManager has nothing to do with "network made easy". Every time I get in touch with networkmanager I get into deep deep trouble.
Comment 67 Jesse Tijnagel 2009-11-26 22:01:01 UTC
Thanks very much Christoph Brill, your hack:
> I hacked the init.d script to launch "nm-system-settings --plugings=keyfile &"
but with 1 "g" in "plugins" fixes the localhost.localdomain problem for me to!

I think your last opinion:
> Man, NetworkManager has nothing to do with "network made easy".
is putting things very polite compared to the frustration this issue spreads all over the planet.

But thank you again Christoph Brill, you've saved the day with your solution! 

By the way, it's not really necessary to hack the init script, i've seen that when you run nm-system-settings after NetworkManager has started, the issue is fixed as well...
Comment 68 Jacob Godserv 2009-12-10 06:21:42 UTC
I hate to be a trouble-maker, but I just got bit by several bugs mentioned in this singular bug report.

There are two unresolved issues:
1) hostname change
2) NetworkManager cannot start wpa_supplicant (not sure about nm-system-settings)

The second one I managed to figure out: http://bugs.gentoo.org/296367

The first one I'm still scratching my head about. Why is this bug marked fixed if NM is still failing to properly look up the system's configured hostname? (Honest question, not an accusation. Am I missing something?)
Comment 69 Ejner Fergo 2010-01-06 18:35:58 UTC
Have been fighting with this for a week now. I thought installing Gentoo on an EEE-901 would be fairly straight forward today (new kernel, nm, etc) but boy was I wrong... Why is this marked as "RESOLVED FIXED"? It's not...

Hit by both:
1) Hostname change
2) NetworkManager not using wpa_supplicant

First issue got fixed by re-emerging dbus (1.2.3-r1) so '/usr/libexec/dbus-daemon-launch-helper' was root:messagebus instead of root:root

Second issue I can't figure out (NetworkManager is really complicated! Together with hal & dbus it's almost enough to turn me off completely!)

This was with a new "stable/unmasked" gentoo install, except I have to use Kernel 2.6.32-r1 (rt2860sta not working with current stable gentoo-sources). I tried updating NM + nm-applet to 0.7.2 but still not working.

emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 06 Jan 2010 16:15:02 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en da"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl alsa bash-completion berkdb bzip2 cli consolekit cracklib crypt cxx dbus dri exif fam flac fortran gdbm gpm gtk hal iconv jpeg lcms mmx mmxext modules mp3 mudflap ncurses nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png policykit pppd python readline reflection sdl session spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb v4l2 vim-syntax vorbis x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en da" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY