Skip to content

Conversation

@shiavm006
Copy link
Contributor

Problem

The Container.Export() method was incorrectly emitting a mount event instead of an export event. This breaks event filtering for users who expect to filter on export events as documented in podman-events(1).

Changed the event emitted by Container.Export() from events.Mount to events.Export to match the user-facing operation.
The internal export() function does mount the container filesystem if needed, but that is an implementation detail. The event should reflect what the user requested (export), not the internal mechanism (mount).

None

@shiavm006
Copy link
Contributor Author

@Luap99 The CI failure appears to be unrelated to this PR
could u review it once

result.WaitWithDefaultTimeout()
Expect(result).Should(ExitCleanly())

eventsResult := podmanTest.Podman([]string{"events", "--stream=false", "--filter", "event=export", "--since", "30s"})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anytime i see a time based anything on our CI, I think flakes. That said, I cannot think of a better way to do this without some sort of a wait, and casting a broader event search ... then iterating in the slice for what you are looking for in lines 69-70. Not a deal breaker rn I dont think though...

Copy link
Member

@baude baude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ashley-cui
Copy link
Member

LGTM

@ashley-cui ashley-cui merged commit 8fba28b into containers:main Jan 14, 2026
78 checks passed
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 this pull request may close these issues.

3 participants