TM SSH mv should delete target directory when saving/migrating
|Category:||Core & System|
|Target version:||Release 3.4|
|Affected Versions:||OpenNebula 3.0|
When a stop or migration is being performed a MV command like this is issued:
MV hostA:/path/7/images hostB:/path/7/images
If the target directory is not clean and images directory exists then a new images directory will appear inside old images dir. Restore of that VM will crash as the files are not in the place oned thinks they are. This directory should be deleted before moving.