podman uses wrong event log file path on the first run with new storage location #8694
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman uses the wrong file path for the event log file when run in a new storage location but only for the first call after that the correct location is used.
Steps to reproduce the issue:
window 1:
podman --events-backend file events
window 2:
tmp=$(mktemp -d)
podman --events-backend file --tmpdir $tmp --runroot $tmp/runroot --root $tmp/root create --name t1 alpine
podman --events-backend file --tmpdir $tmp --runroot $tmp/runroot --root $tmp/root create --name t2 alpine
podman --events-backend file --tmpdir $tmp --runroot $tmp/runroot --root $tmp/root events --since 1h
Describe the results you received:
First event is logged in the standard event log file path. Second event is logged in the new tmp path location.
Describe the results you expected:
Both events should be logged in the new location.
Output of
podman version
:master @ dd95478
The text was updated successfully, but these errors were encountered: