summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorAlessandro Pilotti <ap@pilotti.it>2013-02-11 23:43:28 +0200
committerAlessandro Pilotti <ap@pilotti.it>2013-02-12 01:43:08 +0200
commit98838cc59cffca3df893084eb7da87f6ac51de2f (patch)
tree5bbc7644ffbf15de786b83597735a63127c48349 /nova/exception.py
parent20424b987946ee56e39f88aed7fddd35c54d7207 (diff)
downloadnova-98838cc59cffca3df893084eb7da87f6ac51de2f.tar.gz
nova-98838cc59cffca3df893084eb7da87f6ac51de2f.tar.xz
nova-98838cc59cffca3df893084eb7da87f6ac51de2f.zip
Implements resize / cold migration on Hyper-V
Blueprint: hyper-v-compute-resize Resize / cold migration is implemented by copying the local disks to a remote SMB share, identified by the configuration option HYPERV.instances_path_share or, if empty, by an administrative share with a remote path corresponding to the configuration option instances_path. The source instance directory is renamed by adding a suffix "_revert" and preserved until the migration is confirmed or reverted. In the former case the directory will be deleted and in the latter renamed to the original name. The VM corresponding to the instance is deleted on the source host and recreated on the target. Any mapped volume is disconnected on the source and reattached to the new VM on the target host. In case of resize operations, the local VHD file is resized according to the new flavor limits. Due to VHD limitations, an attempt to resize a disk to a smaller size will result in an exception. In case of differencing disks (CoW), should the base disk be missing in the target host's cache, it will be downloaded and reconnected to the copied differencing disk. Same host migrations are supported by using a temporary directory with suffix "_tmp" during disk file copy. Unit tests have been added for the new features accordingly. Change-Id: Ieee2afff8061d2ab73a2252b7d2499178d0515fd
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions