availability_zone in request_specs not updated when live migrate vm from one availability zone to another
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
HYSong |
Bug Description
availability_zone in request_specs not updated when live migrate vm from one availability zone to another, and if the old aggregate's host demount, vm migration will be failed.
Steps to reproduce
==================
1) create aggregation: aggregate01 using AZ: zone01, and bonding cmp001;
2) create aggregation: aggregate02 using AZ: zone02, and bonding cmp002;
3) create flavor: test_flavor01, and set properties fit to aggregate01/
4) create instance: test_vm01 using test_flavor01 and --availability-zone set to zome01;
5) check OS-EXT-
6) live migrate test_vm01 to cmp002;
7) check OS-EXT-
8) demount cmp001 on aggregate01, then bonding cmp001 to aggregate02;
9) live migrate test_vm01 without given target node will be failed. because availability_zone in request_specs is still zone01.
I think the value of availability_zone in request_specs should be updated, and the vms should use new availability_zone in request_specs when scheduling.
description: | updated |
Changed in nova: | |
assignee: | nobody → HYSong (songhongyuan) |
status: | New → In Progress |
Fix proposed to branch: master /review. opendev. org/706647
Review: https:/