Leaked instance files when reverting migrations
Bug #1805833 reported by
Lucian Petrut
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
compute-hyperv |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We're leaking instance files when reverting cold migrations/resizes and using multiple CSVs.
The manager tells us to skip deleting the instance files if the compute nodes use shared storage, assuming that the instance files will just stay in place while the instance moves back to the original node. When using multiple CSVs, the instance files may or may not be moved along with the instance (depending on a config option).
We can add a workaround at the driver level, ignoring the destroy_disks flag when destroying an instance having ‘resize_reverting’ task state. It’s safe to do so as we’re using a separate dir when backing up instance files (*_revert).
summary: |
- ODS-103 Leaked instance files when reverting migrations + Leaked instance files when reverting migrations |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/620908 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=976d316eb71 cede6294f92b30e 3011e4c618975c
Committed: https:/
Submitter: Zuul
Branch: master
commit 976d316eb71cede 6294f92b30e3011 e4c618975c
Author: Lucian Petrut <email address hidden>
Date: Thu Nov 29 13:51:14 2018 +0200
Prevent reverting resizes from leaking files
When reverting resizes, the manager will request instance files
cleanup to be skipped if the hosts use shared storage, in which
case we'd leak files if multiple CSVs are used.
It's safe to cleanup the instance files when reverting resizes
as long as we preserve the "*_revert" dir.
Closes-Bug: #1805833
Change-Id: I09428c2e25bed4 1f99b51c08a677d 7152d9680ee