linaro-ami deadlocks on long slave init script output

Bug #1022529 reported by Paul Sokolovsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro AWS Tools
Fix Released
High
Paul Sokolovsky

Bug Description

While working on lp:1019257, it turned out that if slave init script produces enough output, then at some point the script will block, apparently on overflow of stdout buffer somewhere (fd or paramiko's), and at the same time, our implementation also blocks on waiting for script to finish, and only then reads its output. So, deadlock ensues.

Related branches

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

The fix for this is relatively easy, but regression test for this bug should be added to the testsuite, which is blocked by lp:1022531.

Also, there may be similar conditions (long output on stderr, blocking on stdin), which should be handled just the same.

Changed in linaro-aws-tools:
milestone: none → 2012.07
assignee: nobody → Paul Sokolovsky (pfalcon)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Fix available in associated branch.

Changed in linaro-aws-tools:
status: In Progress → Fix Committed
Changed in linaro-aws-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.