Bug 1014251 - dracut can't get default network device
Summary: dracut can't get default network device
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Lance Wang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-07 14:05 UTC by Cédric Bosdonnat
Modified: 2018-01-15 11:10 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Bosdonnat 2016-12-07 14:05:03 UTC
Steps to reproduce
------------------

  * Get a machine with 2 network devices
  * Connect both of the NICs to get such routes:

> # ip route show
> default via 192.168.2.1 dev enp0s25 proto static metric 100 
> default via 192.168.1.254 dev wlp3s0 proto static metric 600 
> 192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.131 metric 600 
> 192.168.2.0/24 dev enp0s25 proto kernel scope link src 192.168.2.2 metric 100 

  * Run dracut --force

Actual Results
--------------

The dracut log shows these sort of error messages:

> Failed to look up reference node - returned empty list
> sed: can't read /etc/install.inf: No such file or directory
> sed: -e expression #1, char 13: unterminated address regex
> Failed to look up reference node - returned empty list
> /lib/kdump/setup-kdump.functions: line 468: /sys/class/net/enp0s25
> wlp3s0/addr_assign_type: No such file or directory
> /lib/kdump/setup-kdump.functions: line 469: [: : integer expression expected
> Cannot read permanent address: No such device
> Failed to look up reference node - returned empty list
> sed: can't read /etc/install.inf: No such file or directory
> sed: -e expression #1, char 13: unterminated address regex
> Failed to look up reference node - returned empty list
> /lib/kdump/setup-kdump.functions: line 468: /sys/class/net/enp0s25
> wlp3s0/addr_assign_type: No such file or directory
> /lib/kdump/setup-kdump.functions: line 469: [: : integer expression expected
> Cannot read permanent address: No such device

Problem analysis
----------------

The function kdump_default_netdev in /lib/kdump/setup-kdump.functions doesn't handle the case where several default routes are existing. Using the metric to get one default device (or pick the first one if all with the same metric), could fix the problem.
Comment 1 亚聃 范 2017-07-18 11:11:31 UTC
Petr is on long time leave vacation, Lance Wang is taking over Kdump maintaining work, re-assigned to him.