Bug 1228243 - openQA test fails in validate_default_target: YaST sets systemd default target to "graphical" on Minimal role installation on s390x
Summary: openQA test fails in validate_default_target: YaST sets systemd default targe...
Status: VERIFIED WORKSFORME
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Installation (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact:
URL: https://openqa.suse.de/tests/14992549...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 09:44 UTC by Chenzi Cao
Modified: 2024-07-24 08:04 UTC (History)
1 user (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log (263.03 KB, application/x-bzip)
2024-07-23 09:44 UTC, Chenzi Cao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chenzi Cao 2024-07-23 09:44:26 UTC
Created attachment 876212 [details]
y2log

This issue only happens on s390x, for other arches, "Systemd default target is set to 'multi-user'.

Steps:
- Install SLES15SP6 on s390x kvm, select "Minimal" system role during installation.
- After the user and password are set, check the systemd default target from the log

Observed:
Systemd default target is set to 'graphical'.

Expected:
Same with other arches, systemd default target is set to 'multi-user'.

Cut y2log here:

2024-07-23 04:23:21 <1> install(7851) [Interpreter] installation/proposal_store.rb:484 Calling YaST client default_target_proposal
2024-07-23 04:23:21 <1> install(7851) [Ruby] yast/wfm.rb(run_client):341 Call client /mounts/mp_0001/usr/share/YaST2/clients/default_target_proposal.rb
2024-07-23 04:23:21 <1> install(7851) [Ruby] clients/default_target_proposal.rb(give_reason):273 Systemd target detection says: Using VNC assumes a GUI on the target system
2024-07-23 04:23:21 <1> install(7851) [Ruby] clients/default_target_proposal.rb(detect_target):268 Detected target proposal 'graphical'
2024-07-23 04:23:21 <1> install(7851) [Ruby] clients/default_target_proposal.rb(change_default_target):231 Setting systemd default target to graphical
2024-07-23 04:23:21 <1> install(7851) [Ruby] modules/services_manager_target.rb(default_target=):118 New default target has been set: graphical
2024-07-23 04:23:21 <1> install(7851) [Ruby] clients/default_target_proposal.rb(initialize):193 Systemd default target is set to 'graphical'

Please find the attached y2log and the openqa test result as bwlow:

openQA test in scenario sle-15-SP6-Online-s390x-minimal+role_minimal_test@s390x-kvm fails in
[validate_default_target](https://openqa.suse.de/tests/14992549/modules/validate_default_target/steps/4)

## Test suite description
Like default but explicitly select the system role "minimal". The resulting system should roughly correspond to an unregistered system but with access to modules for optional installation.

## Further details

Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=s390x&distri=sle&flavor=Online&machine=s390x-kvm&test=minimal%2Brole_minimal_test&version=15-SP6)
Comment 1 José Iván López González 2024-07-24 05:40:27 UTC
Hi! In this case Graphical is the expected target. If the installation is done via VNC, then Graphical target is selected independently on the role, see [1]. That machine is supposed to be remotely managed via VNC, so Graphical target would be needed.

[1] https://github.com/yast/yast-services-manager/blob/master/src/lib/services-manager/clients/default_target_proposal.rb#L254.
Comment 2 Chenzi Cao 2024-07-24 08:04:02 UTC
Thank you for your information very much, verify here.