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/192128 /git.openstack. org/cgit/ stackforge/ fuel-library/ commit/ ?id=01d3498ab1c b26cee606ecada8 906f218d838c26
Committed: https:/
Submitter: Jenkins
Branch: stable/6.0
commit 01d3498ab1cb26c ee606ecada8906f 218d838c26
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