Project

General

Profile

Actions

action #174373

open

[qe-core] test fails in hostname_inst

Added by cvidot 6 days ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Start date:
2024-12-13
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

openQA test in scenario sle-12-SP3-Server-DVD-Updates-x86_64-network_configuration@64bit fails in
hostname_inst

Test suite description

Testsuite maintained at https://gitlab.suse.de/qa-maintenance/qam-openqa-yml. Maintainer: jrivera@suse.com Verify that DHCLIENT_SET_HOSTNAME preloaded from control file does not overwrite the customer selection and check the hostname in the installed system

Reproducible

Fails since (at least) Build 20241212-1

Expected result

Last good: 20241201-1 (or more recent)

Further details

Always latest result in this scenario: latest

Actions #2

Updated by vkatkalov 3 days ago

  • Assignee set to vkatkalov
Actions #3

Updated by dzedro 1 day ago

  • Assignee changed from vkatkalov to dzedro
Actions #4

Updated by vkatkalov 1 day ago ยท Edited

If in /etc/sysconfig/network/dhcp the DHCLIENT_SET_HOSTNAME="no" is replaced to DHCLIENT_SET_HOSTNAME="yes", wicked ifdown eth0, wicked ifup eth0 then hostname is identical to one set by env NICTYPE_USER_OPTIONS: hostname=myguest, otherwise it is install

Actions #5

Updated by dzedro 1 day ago

I just removed NICTYPE_USER_OPTIONS=hostname=myguest and test passed https://dzedro.suse.cz/tests/1834
The problem is that the test does expect value of NICTYPE_USER_OPTIONS, BUT this hostname is nowhere setup.

# git grep NICTYPE_USER_OPTIONS
lib/YuiRestClient.pm:        set_var('NICTYPE_USER_OPTIONS', join(' ', grep($_, (
lib/YuiRestClient.pm:                        get_var('NICTYPE_USER_OPTIONS'),
lib/YuiRestClient.pm:B<set_libyui_backend_vars()> - Sets C<NICTYPE_USER_OPTIONS> and C<EXTRABOOTPARAMS>.
lib/YuiRestClient.pm:B<NICTYPE_USER_OPTIONS> - options for the virtual SUT network configuration. On QEMU backends
tests/console/network_hostname.pm:# which means that is not taken into account dhcp configuration provided for this test via NICTYPE_USER_OPTIONS=hostname=myguest
tests/installation/hostname_inst.pm:    # NICTYPE_USER_OPTIONS="hostname=myguest" causes a fake DHCP hostname provided by QEMU to SUT
tests/installation/hostname_inst.pm:        if (get_var('NICTYPE_USER_OPTIONS') =~ m/hostname=(?<hostname>\w+)/) {
variables.md:NICTYPE_USER_OPTIONS | string | | `hostname=myguest` causes a fake DHCP hostname 'myguest' provided to SUT. It is used as expected hostname if `EXPECTED_INSTALL_HOSTNAME` is not set.
Actions

Also available in: Atom PDF