I have attached patches which will kill the rsync/scp processes if instance is deleted while resizing.
1. oslo_concurrency patch, to store the pid of the process - 0001-Store-pid-of-processes.patch
2. nova patch, to pass a callback handler to store/remove the pid and kill the process - 0001-Kill-rsync-scp-processes-before-deleting-instance.patch
To run this patch successfully on master you need to apply following patches to avoid the nova-compute startup issue:
Note:
1. In attached nova patch I have used os.kill() to kill the process, this can also be done by using process_utils execute call.
2. If rsync/scp process is killed while deleting the instance, instance folder remains on destination node.
If you apply periodic patch [1] mentioned in security bug [2] the above orphan instance folder gets deleted on nova-compute startup
[1] 0001-Delete-orphaned-instance-files-from-compute-nodes.patch
[2] https://bugs.launchpad.net/nova/+bug/1392527
Hi,
I have attached patches which will kill the rsync/scp processes if instance is deleted while resizing.
1. oslo_concurrency patch, to store the pid of the process - 0001-Store- pid-of- processes. patch rsync-scp- processes- before- deleting- instance. patch
2. nova patch, to pass a callback handler to store/remove the pid and kill the process - 0001-Kill-
To run this patch successfully on master you need to apply following patches to avoid the nova-compute startup issue:
1. https:/ /review. openstack. org/#/c/ 173794/ 1 /review. openstack. org/#/c/ 173897/
2. https:/
Note:
1. In attached nova patch I have used os.kill() to kill the process, this can also be done by using process_utils execute call.
2. If rsync/scp process is killed while deleting the instance, instance folder remains on destination node. orphaned- instance- files-from- compute- nodes.patch /bugs.launchpad .net/nova/ +bug/1392527
If you apply periodic patch [1] mentioned in security bug [2] the above orphan instance folder gets deleted on nova-compute startup
[1] 0001-Delete-
[2] https:/