launch a new vm fail in source host after live migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Nova version:Havana
We have two compute nodes: Host A and Host B. Each one have 100G disk, 4 cpus and 2G mem for example.
First, launch an image-backed instance named vm-1 in Host A using the flavor successfully. The flavor's specs is 60G disk, 2cpus and 1G mem. So, obviously the free resource on Host A is 40G disk, 2 cpus and 1 mem.
Second, doing live migration with block migation flag from Host A to Host B.Then success. Now, no active instance exist on Host A.
But, the problem is the free resource on Host A is still 40G disk, 2 cpu and 1G mem. The resource described in compute_nodes table don't add back.
Then adding another new instance named vm-2 to Host A using same flavor as vm-1. We are notified that resource is insuffieint on Host A.(40G<60G disk denied)
Notice that the data would be correct after next priodic task of update_
I think the resource should be recaculate immediatly on Host A, otherwise it may affects vm delpoyment.
tags: | added: compute |
Changed in nova: | |
assignee: | nobody → Verónica Musso (veronica-a-musso) |
Changed in nova: | |
assignee: | Verónica Musso (veronica-a-musso) → lirenke (lvhancy) |
Changed in nova: | |
assignee: | lirenke (lvhancy) → Tiago Rodrigues de Mello (timello) |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-3 → 2014.2 |
tags: | added: live-migrate |
I think call update_ available_ resource function explicitly in _post_live_ migration after the vm's host change to dest in DB is the way to solve this bug.