Bug 1212675

Summary: [Build 20230623] openQA test fails in login_test: system now logs in automatically
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: GNOMEAssignee: xiaoguang wang <xiaoguang.wang>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: gnome-bugs, guillaume.gardet, yfjiang, zcjia
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.opensuse.org/tests/3378863/modules/login_test/steps/22
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Dominique Leuenberger 2023-06-24 10:32:36 UTC
## Observation

This seems to be a regression from the accountsservice update, which gained support for lightdm's config files support.

on openSUSE though, this can't really work, as we (still) operate with the xdm wrapper scripts to change DM - not by exchanging service files.

As such, the current version falls back to not loading the autologin config, loads gdm and that then runs into an autologin setup detection from sysconfig

https://cgit.freedesktop.org/accountsservice/commit/?h=main&id=ea88bc6ab047117b989c624d6374396e06699b50 from after the latest accountsservice release is likely addressing the issue for us, as not being able to identify the display manager, accountsservice falls back to the previous code, assuming gdm and thus loading this config


openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-desktopapps-gnome-x11@64bit fails in
[login_test](https://openqa.opensuse.org/tests/3378863/modules/login_test/steps/22)

## Test suite description



## Reproducible

Fails since (at least) Build [20230623](https://openqa.opensuse.org/tests/3377948)


## Expected result

Last good: [20230622](https://openqa.opensuse.org/tests/3376090) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=desktopapps-gnome-x11&version=Tumbleweed)
Comment 1 Jia Zhaocong 2023-06-29 08:02:25 UTC
https://openqa.opensuse.org/tests/3391741#step/login_test/6 shows that "Automatic Login" is by default off which is different from previous runs.

In the VM environment, I can't toggle this option, and it causes "accounts-daemon" to coredump.

On my physical machine, I can't toggle this option either: "SetAutomaticLogin call failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying".
Comment 2 Yifan Jiang 2023-07-05 06:52:03 UTC
Hi Xiaoguang, can you take a look at the issue please? Thanks.
Comment 3 xiaoguang wang 2023-07-05 06:55:46 UTC
I create a SR to G:N
https://build.opensuse.org/request/show/1096870
Comment 4 Guillaume GARDET 2023-07-07 12:15:26 UTC
Fixed with https://build.opensuse.org/request/show/1096894