Bug 1984531

Summary: Incorrectly opens DBUS_SESSION_BUS_ADDRESS with guid
Product: [Fedora] Fedora Reporter: Tomasz Torcz <tomek>
Component: podmanAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: acui, bbaude, container-sig, debarshir, dwalsh, jnovy, lsm5, mheon, patrick, pehunt, rh.container.bot, santiago
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-03 09:29:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomasz Torcz 2021-07-21 15:09:38 UTC
Description of problem:
Every time I use podman, it spews some incorrect warning messages:

% podman images
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available 
WARN[0000] For using systemd, you may need to login using an user session 
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 1001` (possibly as root) 
WARN[0000] Falling back to --cgroup-manager=cgroupfs    


From what I gathered around the internet, the message is related to missing DBUS_SESSION_BUS_ADDRESS, but I have it defined (it is Fedora 34 Workstation session):

% echo $DBUS_SESSION_BUS_ADDRESS                     
unix:path=/run/user/1001/bus,guid=817e9ffcfb383869ad17ea8360e7428a


Using strace I can confirm podman is not striping ",guid=…" part when trying to open D-Bus connection:

newfstatat(AT_FDCWD, "/run/user/1001/bus,guid=817e9ffcfb383869ad17ea8360e7428a", 0xc00060a378, 0) = -1 ENOENT (No such file or directory)

In reality, ""/run/user/1001/bus" socket exists and should be used; ""/run/user/1001/bus,guid=817e9ffcfb383869ad17ea8360e7428a" does not exist, thus the error.


Version-Release number of selected component (if applicable):
podman-3.2.3-1.fc34.x86_64

How reproducible:
always

Steps to Reproduce:
1. podman images
2.
3.

Actual results:
Throws incorrect warnings.

Expected results:
Should not print any WARN[0000] lines.

Additional info:
Should remove ",guid=…" part from DBUS_SESSION_BUS_ADDRESS before connecting to D-Bus.

Comment 1 Tomasz Torcz 2021-07-21 15:15:35 UTC
https://github.com/containers/podman/issues/8776 seems like upstream report of this issue (not fixed).

Comment 2 Giuseppe Scrivano 2021-07-26 13:11:49 UTC
opened a PR: https://github.com/containers/common/pull/695

Comment 3 Tomasz Torcz 2021-10-03 09:29:51 UTC
I no longer see the issue with podman-3.4.0-1.fc35.x86_64, thank you.