Backup restore fails on Ubuntu 14.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
High
|
Nikhil Manchanda |
Bug Description
Creating an instance from a backup fails on Ubuntu 14.04: there is an unhandled error from pexpect.
The root cause appears to be a change in kill behavior when killing sudo processes between Ubuntu 12.04 and 14.04 such that the same pexpect call raises an error only on 14.04. The underlying change can be reproduced without python -- in the following examples note that kill succeeds on 12.04 and not 14.04:
* Ubuntu 12.04.4 LTS
$ sudo tail -f /var/log/syslog &
[1] 13407
$ ps -ef | grep tail
root 13407 1863 0 15:14 pts/0 00:00:00 sudo tail -f /var/log/syslog
root 13408 13407 0 15:14 pts/0 00:00:00 tail -f /var/log/syslog
$ kill -9 13407
[1]+ Killed sudo tail -f /var/log/syslog
$ ps -ef | grep tail
root 13408 1 0 15:14 pts/0 00:00:00 tail -f /var/log/syslog
* Ubuntu 14.04 LTS
$ sudo tail -f /var/log/syslog &
[1] 5915
$ ps -ef | grep tail
root 5915 5202 0 15:14 pts/0 00:00:00 sudo tail -f /var/log/syslog
root 5916 5915 0 15:14 pts/0 00:00:00 tail -f /var/log/syslog
$ kill -9 5915
-bash: kill: (5915) - Operation not permitted
$ ps -ef | grep tail
root 5915 5202 0 15:14 pts/0 00:00:00 sudo tail -f /var/log/syslog
root 5916 5915 0 15:14 pts/0 00:00:00 tail -f /var/log/syslog
Changed in trove: | |
assignee: | nobody → Greg Lucas (glucas-q) |
Changed in trove: | |
importance: | Undecided → High |
milestone: | none → juno-3 |
Changed in trove: | |
assignee: | Greg Lucas (glucas-q) → Nikhil Manchanda (slicknik) |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | juno-3 → 2014.2 |
The pexpect exception:
File "/usr/local/ lib/python2. 7/dist- packages/ pexpect/ __init_ _.py", line 774, in close t('Could not terminate the child.')
raise ExceptionPexpec