-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libvirt: Fix root disk leak in live mig
This patch makes sure that _create_images_and_backing method of the libvirt driver (called in several places, but most problematic one is the call in the pre_live_migration method) creates all the files the instance needs that are not present. Prioir to this patch - the method would only attempt to download the image, and if it did so with the path of the ephemeral drives, it could expose the image to other users as an ephemeral devices. See the related bug for more detaiis. After this patch - we properly distinguish between image, ephemeral and swap files, and make sure that the imagebackend does the correct thing. Closes-bug: #1251590 Co-authored-by: Loganathan Parthipan <parthipan@hp.com> (cherry picked from commit c69a619668b5f44e94a8fe1a23f3d887ba2834d7) Conflicts: nova/virt/libvirt/driver.py Change-Id: I78aa2f4243899db4f4941e77014a7e18e27fc63e
- Loading branch information
Showing
2 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters