stack.sh run gets stuck when output is redirected to a pipe
Bug #1801352 reported by
Dr. Jens Harbott
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Triaged
|
Low
|
Unassigned |
Bug Description
This is a new issue, I haven't seen this issue until a week ago. I also only saw it on Bionic so far, so possibly it is an issue with some other Ubuntu component and not with devstack.
What happens is that I'm running
stack.sh 2>&1 | tee -a stack1.log
as my usual invocation to deploy devstack and saving the complete log output including stderr. This used to work fine before, but now I am seeing the tee process getting stuck, seemingly waiting for further input, once the stack.sh job has ended. This happens both after a failure as well as after a successful completion. The issue also occurs if I omit the "2>&1" part.
Changed in devstack: | |
assignee: | nobody → HanGuangyu (hanguangyu) |
To post a comment you must log in.
hrm, when I duplicated this basic stuff into diskimage-builder, I had a couple of problems with the prompt getting all mixed up with the final output, which made me put a sleep in [1]
I started looking a co-processes but didn't get very far.
[1] https:/ /git.openstack. org/cgit/ openstack/ diskimage- builder/ tree/diskimage_ builder/ lib/disk- image-create# n565