Bug 134590 - network does not start on Pegasos
Summary: network does not start on Pegasos
Status: VERIFIED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Alpha 3
Hardware: PowerPC Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Peter Poeml
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-20 19:56 UTC by peter czanik
Modified: 2006-01-09 09:18 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
YaST2 logs (189.03 KB, application/x-compressed)
2005-11-20 19:57 UTC, peter czanik
Details
/var/log/messages (78.51 KB, application/x-gzip)
2005-11-20 19:57 UTC, peter czanik
Details
NetworkManager log (4.63 KB, application/octet-stream)
2005-11-23 09:45 UTC, peter czanik
Details
ps aux after NetworkManager is stopped (2.18 KB, text/plain)
2005-11-23 09:48 UTC, peter czanik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description peter czanik 2005-11-20 19:56:46 UTC
Networking does not seem to start correctly on Pegasos. NetworkManager, dhcpcd, etc are running, but the machine does not get an IP address. (DHCP works if 10.0 is booted on the same machine)
Comment 1 peter czanik 2005-11-20 19:57:19 UTC
Created attachment 57811 [details]
YaST2 logs
Comment 2 peter czanik 2005-11-20 19:57:51 UTC
Created attachment 57812 [details]
/var/log/messages
Comment 3 Dr. Werner Fink 2005-11-21 10:49:19 UTC
You can use dhcp or NetworkManager but AFAIK not both.
Comment 4 peter czanik 2005-11-21 16:37:38 UTC
I did not change any network related settings during installation...
Comment 5 Timo Hoenig 2005-11-22 09:08:01 UTC
Peter, does it work for you if you switch the network interface(s) to "Managed by NetworkManager"?
Comment 6 peter czanik 2005-11-23 06:52:03 UTC
No, it did not work.
But when I followed the suggestion from http://lists.opensuse.org/archive/opensuse-factory/2005-Nov/0031.html and deleted NetworkManager, then all of my networking troubles were solved.
Comment 7 Timo Hoenig 2005-11-23 07:59:00 UTC
Please be a little more verbose and explain "no did not work".
Comment 8 peter czanik 2005-11-23 08:52:16 UTC
Did not work := eth0 did not get an IP address, gw, DNS, etc.
After deleting networkmanager, everything was OK, and worked as expected.
Comment 9 Timo Hoenig 2005-11-23 08:55:14 UTC
Would you mind giving it a second run?

* Install NM
* Set interfaces to 'managed'
* rcnetwork stop
* rcnetwokmanager restart

I never have seen one with a network device which NM could not configure using DHCP.
Comment 10 peter czanik 2005-11-23 09:07:23 UTC
I did it now, and it still does not work.
What logs should I send? YaST2 + /var/log/messages?

BTW: if I set it to 'managed', how can I set a static IP?
Comment 11 Timo Hoenig 2005-11-23 09:18:13 UTC
> What logs should I send? YaST2 + /var/log/messages?

Could you please stop NM and afterwards attach the output of

   $ NetworkManager --no-daemon

to this bug.  Thanks.

> BTW: if I set it to 'managed', how can I set a static IP?

Static configurations are set using YaST (as before).  The device should _not_ set to "manageed".  Once NM is started, it is taking such configurations into account and does _not_ try to configure the device using DHCP but is setting the static configuration.
Comment 12 peter czanik 2005-11-23 09:45:14 UTC
Created attachment 58367 [details]
NetworkManager log

It does not get an IP address, so it assigns something random, as I see. It should receive: 192.168.2.193 from an SMC broadband router, and it works correctly if NetworkManager is deleted.
Comment 13 peter czanik 2005-11-23 09:48:25 UTC
Created attachment 58368 [details]
ps aux after NetworkManager is stopped

This is a ps aux after NetworkManager is stopped. The interesting thing is: the dhcp clients, which were started by NetworkManager are still running. On the next run of NM, it posts an error message about it each second.
Comment 14 peter czanik 2005-11-23 09:52:26 UTC
One more remark. You asked me to 'rcnetwork stop'. I thought, that 'insserv -r network' and I dont' have to stop it any more. But it seems to be a hard coded dependency for a lot of packages:

insserv: Service network has to be enabled for service syslog
insserv: Service network has to be enabled for service smbfs
insserv: Service network has to be enabled for service nfs
insserv: Service network has to be enabled for service portmap
insserv: Service network has to be enabled for service sendmail
insserv: Service network has to be enabled for service postfix
insserv: Service network has to be enabled for service nfsboot
insserv: Service network has to be enabled for service sshd
insserv: Service network has to be enabled for service rendezvous
insserv: exiting now!
Comment 15 Timo Hoenig 2005-11-23 10:02:34 UTC
(In reply to comment #12)
 
> It does not get an IP address, so it assigns something random,

NM is falling back to zeroconf since the DHCP transaction takes too long.

> as I see. It
> should receive: 192.168.2.193 from an SMC broadband router, and it works
> correctly if NetworkManager is deleted.

Does your DHCP server of the SMC router provide DNS server(s) via DHCP?
Comment 16 peter czanik 2005-11-23 10:08:27 UTC
Strange, when I don't use NetworkManager, just good, old YaST2, I get an IP within seconds.

Yes, it provides DNS servers as well.
Comment 17 Timo Hoenig 2005-11-23 10:09:17 UTC
(In reply to comment #13)

> This is a ps aux after NetworkManager is stopped. The interesting thing is: the
> dhcp clients, which were started by NetworkManager are still running. On the
> next run of NM, it posts an error message about it each second.

I could not reproduce this on a box with Alpha3.  Once NetworkManager is stopped, all dhclient processes are gone, too.  Maybe it relates to the timeout you encounter. 

Comment 18 Timo Hoenig 2005-11-23 10:11:28 UTC
(In reply to comment #16)
> Strange, when I don't use NetworkManager, just good, old YaST2, I get an IP
> within seconds.
> 
> Yes, it provides DNS servers as well.

OK. Good to know, otherwise it this bug would be related to #134369.

What hapens if you remove /etc/sysconfig/network/ifcfg-* file for your device and restart NetworkManager?
Comment 19 peter czanik 2005-11-23 10:49:59 UTC
The same result. Looking at /var/log/messages (which I have already posted once), I found this:

Nov 23 11:27:19 czp dhclient: /etc/dhclient.conf line 34: expecting a statement.
Nov 23 11:27:19 czp dhclient: 
Nov 23 11:27:19 czp dhclient: ^

I have a stock dhclient config:

czp:~ # cat /etc/dhclient.conf~
# dhclient configuration file
# see "man dhclient.conf" for further details
# file: /etc/dhclient.conf
#


######################################################
# Suggested configurations for Cable Modem providers #
#
# uncomment and fill in the appropriate section

#####################################################
# @Home -- TCI, etc
#
# Uncomment the following line and enter your Client ID, which should
# have come in your mail from @Home
#
# send dhcp-client-identifier "c32423-a"

#send host-name "andare.fugue.com";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;

send dhcp-lease-time 3600;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;
script "/sbin/dhclient-script";

#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
Comment 20 Timo Hoenig 2005-11-23 11:05:16 UTC
(In reply to comment #19)

> czp:~ # cat /etc/dhclient.conf~
                                ^- ? Did you want to cat this file?
Comment 21 peter czanik 2005-11-23 11:10:33 UTC
Yes. I removed comment lines from /etc/dhclient.conf to see, if that changes anything (sometimes lines starting with # were used in config files (which is a bug of course), and ~ is the original, after editing with joe). But it did not change anything.
Comment 22 Timo Hoenig 2005-11-23 11:23:09 UTC
OK, line 34 looks very sane, though. What happens if you remove the line with

   SCRIPT "/sbin/dhclient-script";

?
Comment 23 peter czanik 2005-11-23 11:46:38 UTC
(In reply to comment #22)
> OK, line 34 looks very sane, though. What happens if you remove the line with
> 
>    SCRIPT "/sbin/dhclient-script";

Anything I remove, I get the same warning message for the last line containing configuration.
Comment 24 Timo Hoenig 2005-11-23 12:01:10 UTC
Peter, do you have an idea what is going wrong regarding dhclient?
Comment 25 peter czanik 2005-11-23 12:04:17 UTC
No. I also tried the sample config from 'man dhclient.conf' with the same result...
Comment 26 Peter Poeml 2005-11-23 14:26:08 UTC
Looks as if dhclient is broken on ppc >= 10.0.
Comment 27 Peter Poeml 2005-11-28 14:15:02 UTC
It works when compiled with -fsigned-char on ppc/ppc64 (as it used to be
in RPM_OPT_FLAGS before).

It is fixed in STABLE/edge/factory. 

Andreas: should we fix it for 10.0-ppc?
Comment 28 Andreas Jaeger 2005-11-28 14:52:18 UTC
Yes, update for 10.0-ppc is approved, swampid is:  	 Maintenance-Tracker-3027
Comment 29 Peter Poeml 2005-11-30 15:32:40 UTC
Update and patchinfo submitted.
Comment 30 peter czanik 2005-12-09 19:45:57 UTC
I have tried 'factory' as of 2005 dec. 8. and it works fine.
Comment 31 Peter Poeml 2005-12-12 10:27:40 UTC
Thank you!
Comment 32 Anja Stock 2006-01-09 09:18:48 UTC
released