tee masks errors?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Dean Troyer |
Bug Description
running stack.sh via jenkins, occasionally I get a lot of
Waiting stack.sh to finish...
+ tail -F /opt/kvmstack/
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
+ cat /opt/kvmstack/
+ grep -q 'All done'
+ sleep 5
instead of seeing the output as it happens. If you have a system that captures the output, it would be nice to make logging using tee (which seems to buffer the output) optional?
Changed in devstack: | |
status: | New → In Progress |
Changed in devstack: | |
status: | Fix Committed → Fix Released |
The issue is if jenkins has an abort after X minutes without finishing you never see the error.
Currently I have my jenkins job do the following:
sed -i 's/) 2>&1 | tee "${LOGFILE}"/)/' stack.sh
So that it doesn't try to tee - and I see the errors