Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The journal socket should be mounted automatically if MountAPIVFS= is applied and StandardOutput/Error=journal #32478

Open
DaanDeMeyer opened this issue Apr 25, 2024 · 2 comments · May be fixed by #32487
Labels
pid1 RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@DaanDeMeyer
Copy link
Contributor

Component

systemd

Is your feature request related to a problem? Please describe

Currently, when MountAPIVFS= takes effect (either implicitly or explicitly) and the service is configured to log to the journal, we lose all logs from systemd-executor as it will neither be able to log to the console, nor will it be able to log to the journal.

Describe the solution you'd like

If a service is configured to log to the journal and we decide to mount in the APIVFS directories (because it has its own image or other reasons), we should automatically mount in the journal socket so that the service can log to the journal.

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

main

@DaanDeMeyer DaanDeMeyer added the RFE 🎁 Request for Enhancement, i.e. a feature request label Apr 25, 2024
@github-actions github-actions bot added the pid1 label Apr 25, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 25, 2024
@YHNdnzj YHNdnzj linked a pull request Apr 25, 2024 that will close this issue
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
@YHNdnzj YHNdnzj linked a pull request Apr 26, 2024 that will close this issue
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
@poettering
Copy link
Member

I don't follow? What does MountAPIVFS= do precisely that would cause logging to fail? I don't see the connection?

@YHNdnzj
Copy link
Member

YHNdnzj commented Apr 26, 2024

I don't follow? What does MountAPIVFS= do precisely that would cause logging to fail? I don't see the connection?

exec_invoke enables log open_when_needed. Therefore, it requires access to the journal socket in the target root after switching into it, in order to log there.

YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 26, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 27, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue Apr 29, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue May 2, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue May 8, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue May 9, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue May 9, 2024
YHNdnzj added a commit to YHNdnzj/systemd that referenced this issue May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pid1 RFE 🎁 Request for Enhancement, i.e. a feature request
Development

Successfully merging a pull request may close this issue.

3 participants