[Bug 1225807] New: [YaST2][Network] Error shown not clear when ifcfg-xxxx file not correct
https://bugzilla.suse.com/show_bug.cgi?id=1225807 Bug ID: 1225807 Summary: [YaST2][Network] Error shown not clear when ifcfg-xxxx file not correct Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Minor Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: pablo.herranz@suse.com QA Contact: jsrain@suse.com Target Milestone: --- Found By: --- Blocker: --- Created attachment 875265 --> https://bugzilla.suse.com/attachment.cgi?id=875265&action=edit save_y2logs I'm getting a not very usefull error message when trying to open `yast2 lan` if there's any wrong `ifcfg-xxx` file present in `/etc/sysconfig/network/`. Find attached logs and screenshot. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c1 Pablo Herranz Ramírez <pablo.herranz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pablo.herranz@suse.com --- Comment #1 from Pablo Herranz Ramírez <pablo.herranz@suse.com> --- Created attachment 875266 --> https://bugzilla.suse.com/attachment.cgi?id=875266&action=edit screenshot -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c2 --- Comment #2 from Stefan Hundhammer <shundhammer@suse.com> --- Full backtrace:
10:10:24 <3> [Ruby] yast/wfm.rb(handle_exception):271 Client /usr/share/YaST2/clients/lan.rb failed with 'invalid address: ' (IPAddr::InvalidAddressError).
Backtrace:
.../ruby/3.3.0/ipaddr.rb:692:in `in6_addr' .../ruby/3.3.0/ipaddr.rb:628:in `initialize' .../lib/y2network/ip_address.rb:74:in `new' .../lib/y2network/ip_address.rb:74:in `initialize' .../lib/y2network/ip_address.rb:64:in `new' .../lib/y2network/ip_address.rb:64:in `from_string' .../lib/cfa/interface_file.rb:605:in `value_as_ipaddr' .../lib/cfa/interface_file.rb:534:in `fetch_scalar' .../lib/cfa/interface_file.rb:556:in `block in fetch_collection' .../lib/cfa/interface_file.rb:554:in `each' .../lib/cfa/interface_file.rb:554:in `each_with_object' .../lib/cfa/interface_file.rb:554:in `fetch_collection' .../lib/cfa/interface_file.rb:395:in `block in load' .../lib/cfa/interface_file.rb:393:in `each' .../lib/cfa/interface_file.rb:393:in `each_with_object' .../lib/cfa/interface_file.rb:393:in `load' .../lib/y2network/wicked/connection_config_reader.rb:38:in `read' .../lib/y2network/wicked/connection_configs_reader.rb:49:in `block in connections' .../lib/y2network/wicked/connection_configs_reader.rb:47:in `each' .../lib/y2network/wicked/connection_configs_reader.rb:47:in `each_with_object' .../lib/y2network/wicked/connection_configs_reader.rb:47:in `connections' .../lib/y2network/wicked/config_reader.rb:84:in `read_connections' .../lib/y2network/wicked/config_reader.rb:56:in `block in read' .../lib/y2network/wicked/config_reader.rb:55:in `each' .../lib/y2network/wicked/config_reader.rb:55:in `reduce' .../lib/y2network/wicked/config_reader.rb:55:in `read' .../lib/y2network/config.rb:76:in `from' .../modules/Lan.rb:772:in `read_config' .../modules/Lan.rb:270:in `Read' .../include/network/lan/complex.rb:177:in `ReadDialog' .../include/network/lan/wizards.rb:56:in `block in LanSequence' .../ruby/vendor_ruby/3.3.0/yast/builtins.rb:546:in `eval' .../modules/Sequencer.rb:247:in `WS_run' .../modules/Sequencer.rb:318:in `block in Run' .../modules/Sequencer.rb:310:in `Run' .../include/network/lan/wizards.rb:88:in `LanSequence' .../ruby/vendor_ruby/3.3.0/yast/fun_ref.rb:33:in `call' .../ruby/vendor_ruby/3.3.0/yast/fun_ref.rb:33:in `call' .../modules/CommandLine.rb:1569:in `Run' .../clients/lan.rb:207:in `main' .../clients/lan.rb:221:in `<top (required)>' .../ruby/vendor_ruby/3.3.0/yast/wfm.rb:345:in `eval' .../ruby/vendor_ruby/3.3.0/yast/wfm.rb:345:in `run_client' .../ruby/vendor_ruby/3.3.0/yast/wfm.rb:206:in `call_builtin' .../ruby/vendor_ruby/3.3.0/yast/wfm.rb:206:in `call_builtin_wrapper' .../ruby/vendor_ruby/3.3.0/yast/wfm.rb:195:in `CallFunction' -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c3 --- Comment #3 from Stefan Hundhammer <shundhammer@suse.com> ---
10:10:23 <1> [Ruby] modules/NetHwDetection.rb(Start):112 IFCONFIG1: $["exit":0, "stderr":"", "stdout": " 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:71:ac:02 brd ff:ff:ff:ff:ff:ff inet 192.168.122.2/24 brd 192.168.122.255 scope global enp1s0 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe71:ac02/64 scope link noprefixroute valid_lft forever preferred_lft forever " ] -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c4 --- Comment #4 from Stefan Hundhammer <shundhammer@suse.com> --- From the slack chat it appears that this is the one that caused problems:
10:10:23 <1> [Ruby] modules/NetHwDetection.rb(Start):112 IFCONFIG1: $["exit":0, "stderr":"", "stdout": " 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:71:ac:02 brd ff:ff:ff:ff:ff:ff inet 192.168.122.2/24 brd 192.168.122.255 scope global enp1s0 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe71:ac02/64 scope link noprefixroute valid_lft forever preferred_lft forever
" ] -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c5 --- Comment #5 from Stefan Hundhammer <shundhammer@suse.com> --- As a user, I'd expect an error telling me at least the file name and the line number of the error location, preferably also the string that could not be parsed. Here I can only guess that it's inet6 fe80::5054:ff:fe71:ac02/64 ^^ just 2 hex digits, not 4 as expected On my Leap 15.5, I already have 4 files /etc/sysconfig/network/ifcfg*. At least pointing the user to that directory and the ifcfg* files there would be helpful. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c6 --- Comment #6 from Stefan Hundhammer <shundhammer@suse.com> --- Related: bug #1181296 This bug may be a duplicate of that one. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 Stefan Hundhammer <shundhammer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|yast2-maintainers@suse.de |yast-internal@suse.de URL| |https://trello.com/c/MsvHH2 | |8n Status|NEW |CONFIRMED -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c7 --- Comment #7 from Stefan Hundhammer <shundhammer@suse.com> --- Notice that the Trello card of that other bug is already archived, but it doesn't look like the change included a better error message. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1225807 https://bugzilla.suse.com/show_bug.cgi?id=1225807#c8 --- Comment #8 from Stefan Hundhammer <shundhammer@suse.com> --- See also bug #1225980, bug #1205188, bug #1174353. So it's not only the very unspecific error message, the parser also appears to be very fragile. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com