Nova allows to live migrate instance from one AZ to another:
Steps to reproduce:
1.boot instance with --availability-zone param
2. live migrate this instance on host located in another AZ, nova live-migration inst1 host2
If user specify host during live-migration scheduler doen't make any checks:
Result: instance migrate successfully, but information in instances table in db doesn't updates
mysql> select hostname, availability_zone from instances where deleted=false;
+----------+-------------------+
| hostname | availability_zone |
+----------+-------------------+
| demo | alice-zone |
+----------+-------------------+
while nova show command show real AZ info:
root@node-7:~# nova show demo
+--------------------------------------+--------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+--------------------------------------------------------------------------------------------------+
| OS-EXT-AZ:availability_zone | bob-zone |
| name | demo |
+--------------------------------------+--------------------------------------------------------------------------------------------------+
Nova should forbid such live migration, by adding extra checks, or update info in db table to provide data consistency
HI Sylvain,
I have a question about this bug.
In your opinion that cross availability zone live migrate is not allow?