Description of problem: The drakwizards for dhcpd and dns only provide one choice for network interfaces, eth0, which is no longer available after interface renaming. How reproducible: Every time Steps to Reproduce: 1. Install drakwizard. 2. Start mcc and goto Network-services 3a. Select 'Configure DHCP', then click 'Next'. Choices for 'Interface the dhcp server must listen too' are 'NONE' and 'eth0'. 3b. Select 'Configure NDS', leave choice set to 'Master DNS server' and click 'Next'. Choices for 'DNS server interface' are 'NONE' and 'eth0'. It appears that /usr/lib/perl5/vendor_perl/5.18.1/MDK/Wizard/IFCFG.pm is only searching for interface names beginning with 'eth'. Reproducible: Steps to Reproduce:
CC: (none) => mageia, thierry.vignaud
CC: (none) => derekjenn
thx for filing the report, William :-)
CC: (none) => doc-bugs, marja11
Confirmed
CC: (none) => yves.brungard_mageia
@ Colin Assigning to you because it isn't assigned to anyone and because tv cc'ed you just after this bug was filed (instead of assigning to himself), which makes me suspect you could solve it :-P Feel free to re-assign, though :-D
Assignee: bugsquad => mageia
This bug affect also drakwizard ftp. The concerned line is line 38 in the above cited script: foreach (split('\n', $ifconfig)) { my ($temp) = /(^eth[0-9]*:?[0-9]*)/;
Assignee: mageia => mageiatoolsWhiteboard: (none) => MGA7TOO
Hello, For the DHCP wizard, the reference to eth0 are in the /usr/share/perl5/vendor_perl/MDK/Wizard directory)in files Dhcp.pm and in IFCFG.pm. As default wired interface is changing from a machine to another, we can probably take the default interface from the route command.
Created attachment 12071 [details] Dhcp.pm patch
Created attachment 12072 [details] IFCFG.pm patch
can you clone the git repo and provide a git patch ? ( easier to read all at once :-) )
CC: (none) => mageia
I'd originally cc-ed Colin as he was the one that made us switch from ethX to bios names. I think drakwizard should rely on the same code as drakx-net, by reusing detect_devices::is_lan_interface(). See eg: http://gitweb.mageia.org/software/drakx-net/tree/lib/network/connection/ethernet.pm#n16 See "drakdoc detect_devices" for doc and http://gitweb.mageia.org/software/drakx/tree/perl-install/detect_devices.pm#n783 for the boring details It looks like I introduced the blacklist approach 16 years ago, too bad drakwizard maintainers never went the same way…
adding colin as CC: I think a project could be to clean our tools. I agree with you that we should reuse what exists and not reinvent the wheel.
Hello, I never made a git clone and Perl is a language i don't known... I just try to understand what the function is doing ;-) To correct the tool, there is also a change to make to the Wizcommon.pm file. In fact in Mageia 7 there is a test about the existence of the mountpoint /sys/fs/cgroup/systemd . But in Mageia 8/Cauldron, this mountpoint doesn't exist anymore, probably due to the switch from cgroup v1 to cgroup v2, forcing the wizard to try to launch a sysV service ( which doesn't exists (at least for dhcpd)) ! https://www.mageialinux-online.org/forum/topic-28180-2+assistant-dhcp.php
CC: (none) => joe_c_moi
CC: joe_c_moi => (none)
CC: yves.brungard_mageia => (none)