-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Network connect/disconnect events don't include network ID/name #21311
Comments
I see
Generates {"ID":"1dd1e1833e4342819009b03337e538d46e4fdfb06bd015e7afe6ece1082de055","network":"dan","Status":"connect","Time":"2024-01-20T06:59:28.725812363-05:00","Type":"network","Attributes":null} |
podman -v |
After disconnect |
This seems to specifically be an issue when podman is running in remote mode; I just grabbed a laptop I have Fedora installed on and I do see the network when running daemonless, but as soon as I enable the daemon and run the commands with |
@rhatdan would it be possible to re-open this issue since it does seem to be broken when using a remote socket? I'm working on adding support for Podman to an orchestration library (dotnet/aspire#827) and being able to proactively monitor resources for changes definitely gives a better experience. It's not a blocker, but would be nice to have working consistently. |
@Luap99 PTAL |
I don't have time to look into it |
This is what I am seeing on the main branch In one Window:
In a different window:
So this seems to be fixed in the upstream. |
you need to check with |
Fixes: containers#21311 Signed-off-by: Daniel J Walsh <[email protected]>
Issue Description
Podman network events as emitted by
podman events
(connect, disconnect) don't include the network name or ID, making it impossible to use events to watch for changes to a specific network. Looking at the source code, the network name is included in the low level event data, but seems to be lost when converting between libpod Events and Docker compatible events via ConvertToEntitiesEvent and ConvertToLibpodEvent.Steps to reproduce the issue
Steps to reproduce the issue
podman events --format json
podman network connect <network> <container>
orpodman network disconenct <network> <container>
Connect
andDisconnect
events emittedDescribe the results you received
I see events like this emitted:
Each network event includes the ID of the relevant container, but not the ID or name of the network the container was connected to (or disconnected from).
Describe the results you expected
I expect to see events like:
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Podman Desktop (v1.6.4) on ARM64 MacOS
Additional information
No response
The text was updated successfully, but these errors were encountered: