Comment 13 for bug 1387543

Revision history for this message
George Shuklin (george-shuklin) wrote : Re: Resize/delete combo allows to overload nova-compute

In our installation we specifically disable rsync to force nova to use scp, because scp with proper crypto settings is much faster than rsync for raw disk (they should be copied as is at full size and rsync smart tricks with scanning just makes thinks slower).

I really like to see fix for scp.

In my opinion it should just send SIGHUP to scp (or rsync).

Proper solution would be to store PID of the process during call in nova/common/processutils.py, but it would be a very serious change (not the best idea for bugfix).

For very dirty trick (but not more dirty than utils.exec('truncate')) one can use 'fuser -k /path/to/file'. It will terminate _ANY_ process accessing file. And I think it is right behavior, because no one should access file during instance termination.