Actions
action #177213
opencoordination #169654: [epic] Create test scenarios for Agama
Add test cases for setting hostname in Agama
Start date:
2025-02-14
Due date:
% Done:
0%
Estimated time:
Description
Motivation¶
Set hostname in different ways in Agama installer.
Check this conversation for more information:
https://suse.slack.com/archives/C082VE1U2F5/p1738930441550219
but summary is that at the moment are two ways:
(1) Agama by default takes the hostname from DHCP.
(2) Passing hostname=
as a kernel command line parameter.
Acceptance criteria¶
- AC1: Add a validation post-installation for the (interactive and unattended) default installation to check hostname from dhcp.
- AC2: Add validation post-installation for (2) in existing test suite.
Additional information¶
As seems an overkill to create new test suites for (2) we should consider where we could include the 2nd way.
Similar test cases in YaST installer:
- https://openqa.suse.de/tests/16682150
- https://openqa.suse.de/tests/16682153 We should try to avoid checks during the installation process, and perform them after installation. When we add it to existing test suite we should try to include in the name if it is not too long.
Updated by lmanfredi about 14 hours ago
At the moment, without any setting, the default value for hostname
it seems to be "localhost
"
Updated by lmanfredi about 12 hours ago
Passing hostname=
as a kernel command line parameter works fine. E.g. in VRs by setting this param in var EXTRABOOTPARAMS
EXPECTED_INSTALL_HOSTNAME="suselinux"
EXTRABOOTPARAMS="live.password=nots3cr3t console=ttyS0 console=tty kernel.softlockup_panic=1 agama.install_url=http://openqa.suse.de/assets/repo/SLES-Packages-16.0-x86_64-Build5.1/ hostname=$EXPECTED_INSTALL_HOSTNAME"
Actions