Bug 1217369

Summary: [Build 92.8][KDE Plasma][ppc64le] Failed to obtain authentication.
Product: [openSUSE] openSUSE Distribution Reporter: Jozef Pupava <jpupava>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fvogt, songchuan.kang
Version: Leap 15.4   
Target Milestone: ---   
Hardware: PowerPC-64   
OS: Other   
URL: https://openqa.opensuse.org/tests/3744806/modules/updates_packagekit_kde/steps/21
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---
Attachments: journalctl

Description Jozef Pupava 2023-11-21 15:18:51 UTC
Created attachment 870878 [details]
journalctl

## Observation

On ppc64le with KDE Plasma after boot and login, PackageKit pop-up does show the "Failed to obtain authentication." failure.

Nov 21 07:25:00.606801 susetest PackageKit[2226]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Nov 21 07:25:00.610480 susetest plasmashell[1819]: plasma-pk-updates: Transaction status changed: "waiting-for-auth" "(101%)"
Nov 21 07:25:00.611671 susetest plasmashell[1819]: plasma-pk-updates: Transaction status changed: "waiting-for-auth" "(101%)"
Nov 21 07:25:00.615314 susetest PackageKit[2226]: uid 1000 failed to obtain auth
Nov 21 07:25:00.619420 susetest polkitd[988]: Registered Authentication Agent for unix-process:2221:17450 (system bus name :1.43 [/usr/bin/pkttyagent --notify-fd 10 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale POSIX)
Nov 21 07:25:00.620583 susetest plasmashell[1819]: PK error: "Failed to obtain authentication." type: "not-authorized"
Nov 21 07:25:00.620734 susetest plasmashell[1819]: plasma-pk-updates: Transaction "/1_eebcadca" finished with status "failed" in 0 seconds

https://openqa.opensuse.org/tests/3744806/modules/updates_packagekit_kde/steps/21

I noticed same bug report on TW some time ago https://bugzilla.opensuse.org/show_bug.cgi?id=1208159

## Reproducible

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


## Expected result

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


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=ppc64le&distri=opensuse&flavor=Container-Image&machine=ppc64le&test=container_image_on_leap15.2_host&version=15.4)
Comment 1 Jozef Pupava 2023-11-21 15:21:22 UTC
Ah sorry the system is Leap 15.2, I guess the test has to be updated to use supported system.
Comment 2 Jozef Pupava 2023-11-21 15:22:10 UTC
Unsupported Leap 15.2
Comment 3 Fabian Vogt 2023-11-21 15:25:26 UTC
This happens if the attempt to fetch updates happened while the desktop session was not selected, i.e. openQA was busy in a tty.