Fix the way q-agent-cleanup executes shell processes
Shell commands are executed via subprocess.Popen(). Currently the
status of process is tracked by wait() method which results in deadlocks
when output is large enough (tens of kB). The correct way is to use
communicate() method.
Reviewed: https:/ /review. openstack. org/168315 /git.openstack. org/cgit/ stackforge/ fuel-library/ commit/ ?id=ea5967a0e1f ee5c0b29b4864be 4fe27ef24471ae
Committed: https:/
Submitter: Jenkins
Branch: master
commit ea5967a0e1fee5c 0b29b4864be4fe2 7ef24471ae
Author: Ilya Shakhat <email address hidden>
Date: Fri Mar 27 15:17:30 2015 +0300
Fix the way q-agent-cleanup executes shell processes
Shell commands are executed via subprocess.Popen(). Currently the
status of process is tracked by wait() method which results in deadlocks
when output is large enough (tens of kB). The correct way is to use
communicate() method.
Partial-bug 1436414
Change-Id: Ibbbfa3a5331f86 5e48160c37e9ba5 58af19dc680