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

Support STATUS sd_notify #311

Closed
quentin9696 opened this issue Dec 17, 2021 · 8 comments · Fixed by #469
Closed

Support STATUS sd_notify #311

quentin9696 opened this issue Dec 17, 2021 · 8 comments · Fixed by #469

Comments

@quentin9696
Copy link

/kind feature

Description

Support sd_notify STATUS

Actually, podman 3.4.1 only support WATCHDOG and READY notification when using --sdnotify=container.

That would be interesting to integrate more messages, like STATUS

@rhatdan
Copy link
Member

rhatdan commented Dec 17, 2021

Interested in opening a PR?

@quentin9696
Copy link
Author

No, because I'm not dev and I never touched Go.

Maybe with some indication on where to search in the code I can try.

@rhatdan
Copy link
Member

rhatdan commented Dec 18, 2021

@vrothberg WDYT?

@vrothberg
Copy link
Member

Thanks for reaching out. This it outside of Podman's hands but something conmon had to support.

I'll transfer the issue.

@vrothberg vrothberg transferred this issue from containers/podman Dec 20, 2021
@vrothberg
Copy link
Member

@romge
Copy link

romge commented Mar 14, 2023

I just spend the whole day finding out, why this is not working, until I found this issue ;)
Any chance this will be implemented?

@vrothberg
Copy link
Member

@giuseppe WDYT?

@giuseppe
Copy link
Member

since more users are asking for it, I think at this point it is useful to have it.

Anyone would like to open a PR?

alexlarsson added a commit to alexlarsson/conmon that referenced this issue Dec 12, 2023
Several of the standard sd-notify messages are safe to use from a
container and are very useful. This commit cleans up the general
handling of notify messages and allows forwarding of:

 * READY=1
 * RELOADING=1
 * STOPPING=1
 * WATCHDOG=1
 * WATCHDOG=trigger
 * STATUS=...
 * ERRNO=...
 * BUSERROR=...
 * MONOTONIC_USEC...

See https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#Well-known%20assignments
for documentation of these.

Note: We don't allow unknown messages to be forewarded. For one, all
the file-descriptor based ones are currently unsupported (since the
forwarding doesn't handle fds), but also some options (current and
future) may be security sensitive.

This fixes containers#461 and
containers#311

Signed-off-by: Alexander Larsson <[email protected]>
alexlarsson added a commit to alexlarsson/conmon that referenced this issue Dec 12, 2023
Several of the standard sd-notify messages are safe to use from a
container and are very useful. This commit cleans up the general
handling of notify messages and allows forwarding of:

 * READY=1
 * RELOADING=1
 * STOPPING=1
 * WATCHDOG=1
 * WATCHDOG=trigger
 * STATUS=...
 * ERRNO=...
 * BUSERROR=...
 * MONOTONIC_USEC...

See https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#Well-known%20assignments
for documentation of these.

Note: We don't allow unknown messages to be forewarded. For one, all
the file-descriptor based ones are currently unsupported (since the
forwarding doesn't handle fds), but also some options (current and
future) may be security sensitive.

fixes containers#461
fixes containers#311

Signed-off-by: Alexander Larsson <[email protected]>
alexlarsson added a commit to alexlarsson/conmon that referenced this issue Dec 12, 2023
Several of the standard sd-notify messages are safe to use from a
container and are very useful. This commit cleans up the general
handling of notify messages and allows forwarding of:

 * READY=1
 * RELOADING=1
 * STOPPING=1
 * WATCHDOG=1
 * WATCHDOG=trigger
 * STATUS=...
 * ERRNO=...
 * BUSERROR=...
 * MONOTONIC_USEC...

See https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#Well-known%20assignments
for documentation of these.

Note: We don't allow unknown messages to be forewarded. For one, all
the file-descriptor based ones are currently unsupported (since the
forwarding doesn't handle fds), but also some options (current and
future) may be security sensitive.

fixes containers#461
fixes containers#311

Signed-off-by: Alexander Larsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants