Project

General

Profile

Actions

action #177213

open

coordination #169654: [epic] Create test scenarios for Agama

Add test cases for setting hostname in Agama

Added by JERiveraMoya 5 days ago. Updated about 2 hours ago.

Status:
In Progress
Priority:
High
Assignee:
Target version:
-
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:

Actions #1

Updated by lmanfredi 2 days ago

  • Status changed from Workable to In Progress
  • Assignee set to lmanfredi
Actions #2

Updated by lmanfredi about 14 hours ago

At the moment, without any setting, the default value for hostname it seems to be "localhost"

Actions #3

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 #4

Updated by lmanfredi about 2 hours ago

Created PR#21248

Actions

Also available in: Atom PDF