Bugzilla – Bug 1161217
[Build 20200115][s390x-zVM] openQA test fails in bootloader_s390 - hostname_from_install_inf undefined method empty? for nil:NilClass
Last modified: 2022-09-12 10:35:50 UTC
- In scenario opensuse-Tumbleweed-DVD-s390x-textmode-server@s390x
- Fails since (at least) Build 20200115 (https://openqa.opensuse.org/tests/1147102/modules/bootloader_s390/steps/49)
## Always latest result in this scenario
I cannot reproduce it on my instance: http://openqa.slindomansilla-vm.qa.suse.de/tests/2095
I will try to get logs from the production machine.
Created attachment 827753 [details]
The installer is trying to get the hostname from install.inf, where an IP address is specified:
sysconfig/hostname_reader.rb:82 Got 192.168.112.10 from install.inf
Then, it tries to resolve that IP to get a name. That resolution fails, so a nil or an empty string (I'm not sure which one) is returned by Yast::NetHwDetection.ResolveIP. That results in the following log entry:
sysconfig/hostname_reader.rb:89 Got after resolving IP from install.inf
But YaST tries to break that empty string (or nil) into a host and a domain part. Which is a nonsense and returns a nil host. Which makes YaST blow away.
I guess that #hostname_from_install_inf should return nil if install.inf contains an IP address that cannot be translated into a name. Imo, Knut, is that the case?
If so, I can fix it right away.
Fixed in yast2-network 4.2.47
See https://github.com/yast/yast-network/pull/1028 and the corresponding SR for SLE-15-SP2 https://build.suse.de/request/show/209920
Verified on O3: https://openqa.opensuse.org/tests/1169814