When pexpect child.close(force=True) is called to close a sudo process, an
exception may be raised on certain operating systems. Terminating a sudo
process as a non-root user succeeds on Ubuntu 12.04 but fails on 14.04.
Handle this exception and try to kill the child process using 'sudo kill'.
Reviewed: https:/ /review. openstack. org/108044 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=7395c077f40 bfae5c224e86ab2 77a1a823b1c092
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7395c077f40bfae 5c224e86ab277a1 a823b1c092
Author: Greg Lucas <email address hidden>
Date: Fri Jul 18 11:08:00 2014 -0400
Handle exception from pexpect child.close
When pexpect child.close( force=True) is called to close a sudo process, an
exception may be raised on certain operating systems. Terminating a sudo
process as a non-root user succeeds on Ubuntu 12.04 but fails on 14.04.
Handle this exception and try to kill the child process using 'sudo kill'.
See related change https:/ /review. openstack. org/#/c/ 100353 that addresses
another instance of the same issue.
Change-Id: I4bd9e4b98479e3 360454571333744 0ce81ca64ee
Partial-Bug: 1343344