← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1452568] [NEW] nova allows to live-migrate instance from one availability zone to another

 

Public bug reported:

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

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: availability-zone live-migrate

** Tags added: live-migrate

** Tags added: availability-zone

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1452568

Title:
  nova allows to live-migrate instance from one availability zone to
  another

Status in OpenStack Compute (Nova):
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1452568/+subscriptions


Follow ups

References