autotest / autotest-docker

Autotest client test containing functional & integration subtests for the Docker project
Other
25 stars 30 forks source link

AsyncDockerCmd.wait(1) hangs forever #199

Closed cevich closed 6 years ago

cevich commented 10 years ago

This is a bit of a corner-case, but I found when running autotest as a user using sudo for docker, AsyncDockerCmd.wait(1) will never return. Eventually the test is killed by the 10-minute timeout. I can't see the exact circumstances that reproduce this, but it probably has something to do with the wait-loops in AsyncJob.wait_for() and permissions. Most likely place to hang seems it would be on the final _fd_drainer thread joins (just a guess). I noticed in one instance that the async command had itself already finished before AsyncJob.wait_for() was called. Not sure if that was a factor or not.

cevich commented 10 years ago

IIRC, this was fixed by updating minimum autotest version required to 0.16.0-master-66-g9aaee but needs to be double-checked.