Since live migration has been moved to the conductor, there was no
possibility for the conductor to verify if the destination had
enough RAM just because it didn't know the allocation ratios given
by the scheduler.
Now that ComputeNodes provide a ram_allocation_field, we can fix
that check and provide the same validation than RAMFilter to make
sure that the destination is good.
Closes-Bug: #1451831
Closes-Bug: #1214943
Change-Id: Ie6c768fc915553da73160ea51961078bfbacec77
In addition to being a database proxy and object backporter the
conductor also manages rebuild, resize/migrate, and building instances.
This documents why that is done.
Change-Id: Ieb9134302d21a11fe9b9ee876bb7b0dd32b437e1
There is difference in VIF list response for v2 and v2.1.
'net_id' attribute is not present in v2.1 VIF list response and
it was added as new microversion - Ic8b26df8d7e69bd71d23dfbc983fa3449c16fa7d
For v21 compatible mode we should have that attribute in response
to make v21 comp mode behaves same as v2.
Also VIF Extension "OS-EXT-VIF-NET" was removed from v2.1 ext list
in - Ic99ac1179d02d907422911fe1369b64479fd5f33
As we need to add 'OS-EXT-VIF-NET:net_id' in VIF
API response to make that same as v2 one. So ext list should have
"OS-EXT-VIF-NET" extension also to avoid any confusion for user whether
this extension is present for v21 comp mode or not.
This commit adds 'OS-EXT-VIF-NET:net_id' attribute in VIF list
response for v21 compatible mode.
Also adds VIF extension in ext list for v21 comp mode.
NOTE-There is no change in v2.1 API.
Closes-Bug #1496664
Change-Id: I4df76fbf85fbb1e79528a1690692b12a65f07835
When a request is made to boot from a preexisting volume, rather than
asking Nova to create a volume from an image, there is no image id field
in the image_meta that's passed in to the virt driver. This would be
fine except that there was an attempt to access image_meta.id in the
boot from volume case where it is not necessary. This change moves that
access to a point where it is known that this is not an attempt to boot
from a volume and that field should be set.
Change-Id: I9dab14762f5d331ef2e36f617f7f66c3d771f32d
Closes-bug: 1496557
The string format should be "%(logprefix)s", add the missing "s" in one
case.
The strings currently do not include a space after the "s" which
confuses translators. Add the space and remove it from logprefix.
Change-Id: I6b3113e184c9c3cee1e2ebe448655c7488efb61b
Closes-Bug: #1496273