Open phracek opened 1 year ago
From the logs and from the code of the test it seems, that the container is behaving like it should. Seems like false positive, but needs further analysis.
# try loggin in as a user that does not exist to trigger an error log message
echo 'psql -U nonexistent' | docker exec -i $(get_cid "$name") bash || :
...
if docker logs $(get_cid "$name") 2>&1 | grep -q 'FATAL: role "nonexistent" does not exist' ; then
...
else
echo "ERROR: the container log does not include expected error message"
return 1
fi
See error log from Fedora nightly build machine:
-----------------------------------------------
Running test run_logging_test (starting at 2024-08-06 09:36:18-04:00) ...
-----------------------------------------------
c44f9b40e25164f2bfd6584d50f3465992a07522e1cc8ef1015d9df52c91cdb1
Created container c44f9b40e25164f2bfd6584d50f3465992a07522e1cc8ef1015d9df52c91cdb1
Error: can only start exec sessions when their container is running: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Error: can only create exec sessions on running containers: container state improper
Container platform
Podman/Docker
Version
No response
OS version of the container image
RHEL 7
Bugzilla, Jira
No response
Description
During the our nightly build test there is failed test
test_logging_test
:The log from the test is here:
Reproducer
No response