The Hyper-V driver cannot handle shared storage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Lucian Petrut | ||
compute-hyperv |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The Hyper-V driver has a few issues when attempting to use shared storage for the instance files.
Migration issues
----------------
In case of migrations, we attempt to move the instance files without checking whether shared storage is used. Note that the block_migration flag is completely ignored.
During live migrations, we let Hyper-V automatically detect whether shared storage is used or not. This seems to be troublesome when instance files reside on CSVs.
After a live migration is performed, we always try to delete the instance files. Also, if the migration fails, the destination node is not cleaned up, as the HyperVLiveMigra
Image/path handling issues
-------
The image cache operation uses thread locks, for which reason it is prone to race conditions when using shared storage. Switching to file locks would solve this issue.
Using UNC paths for the instance path does not work either. The driver will fail to fetch the available space. Also, it will not build the remote instance path properly when trying to move files during migrations.
tags: | added: driver hyper-v |
tags: | added: migrate |
Changed in nova: | |
status: | New → Confirmed |
Changed in compute-hyperv: | |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Medium |
summary: |
- Hyper-V: cold migrations cannot handle shared storage + Hyper-V: migrations cannot handle shared storage |
description: | updated |
summary: |
- Hyper-V: migrations cannot handle shared storage + The Hyper-V driver cannot handle shared storage |
description: | updated |
Changed in nova: | |
importance: | Medium → Wishlist |
description: | updated |
description: | updated |
Reviewed: https:/ /review. openstack. org/301252 /git.openstack. org/cgit/ openstack/ compute- hyperv/ commit/ ?id=60c06bdd6fc 006d6bff6840efd c8438de37f983d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 60c06bdd6fc006d 6bff6840efdc843 8de37f983d
Author: Lucian Petrut <email address hidden>
Date: Mon Apr 4 17:22:29 2016 +0300
Properly handle shared storage in case of cold migrations
At the moment, if the destination host is other than the source
host, we attempt to move the instance files without checking if
shared storage is being used.
This change fixes this issue. In case of shared storage, we'll have
the same workflow as when the migration source is the migration
destination as well.
Closes-Bug: #1565895
Change-Id: I711976b42a5de5 a28de22e010b48c 10d96b68ba5