← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1553011] [NEW] total_memory in migration-list is 0 while live-migration

 

Public bug reported:

1: Nova api microversion v2.25

2: This is the log of source compute node:

2016-03-04 02:25:44.598 INFO nova.virt.libvirt.driver [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] [instance: d514ae11-3118-4adf-ab6d-9bc437173de3] Increasing downtime to 46 ms after 0 sec elapsed time
2016-03-04 02:25:44.930 INFO nova.virt.libvirt.driver [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] [instance: d514ae11-3118-4adf-ab6d-9bc437173de3] Migration running for 0 secs, memory 100% remaining; (bytes processed=0, remaining=0, total=0) <============================

....


2016-03-04 02:25:48.084 DEBUG nova.virt.libvirt.host [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] Domain has shutdown/gone away: Requested operation is not valid: domain is not running from (pid=5066) for_domain /opt/stack/nova/nova/virt/libvirt/host.py:180
2016-03-04 02:25:48.086 INFO nova.virt.libvirt.driver [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] [instance: d514ae11-3118-4adf-ab6d-9bc437173de3] Migration operation has completed


3 steps:
3.1 create an instance 
3.2 nova --debug --os-compute-api-version 2.25 live-migration test2
3.3 nova --debug --os-compute-api-version 2.25 server-migration-list test2

+----+-------------+-----------+----------------+--------------+-----------+---------+--------------------------------------+----------------------------+----------------------------+--------------------+------------------------+------------------------+------------------+----------------------+----------------------+
| Id | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status  | Server UUID                          | Created At                 | Updated At                 | Total Memory Bytes | Processed Memory Bytes | Remaining Memory Bytes | Total Disk Bytes | Processed Disk Bytes | Remaining Disk Bytes |
+----+-------------+-----------+----------------+--------------+-----------+---------+--------------------------------------+----------------------------+----------------------------+--------------------+------------------------+------------------------+------------------+----------------------+----------------------+
| 41 | -           | -         | lm-2           | lm-1         | -         | running | d514ae11-3118-4adf-ab6d-9bc437173de3 | 2016-03-04T02:09:26.000000 | 2016-03-04T02:09:40.000000 | 0                  | 0                      | 0                      | 0                | 0                    | 0                    |
+----+-------------+-----------+----------------+--------------+-----------+---------+--------------------------------------+----------------------------+----------------------------+--------------------+------------------------+------------------------+------------------+----------------------+----------------------+

see from nova table:

mysql> select * from migrations where id=41;
+---------------------+---------------------+------------+----+----------------+--------------+-----------+-----------+--------------------------------------+----------------------+----------------------+-------------+-----------+---------+----------------+--------+--------------+------------------+------------------+------------+----------------+----------------+
| created_at          | updated_at          | deleted_at | id | source_compute | dest_compute | dest_host | status    | instance_uuid                        | old_instance_type_id | new_instance_type_id | source_node | dest_node | deleted | migration_type | hidden | memory_total | memory_processed | memory_remaining | disk_total | disk_processed | disk_remaining |
+---------------------+---------------------+------------+----+----------------+--------------+-----------+-----------+--------------------------------------+----------------------+----------------------+-------------+-----------+---------+----------------+--------+--------------+------------------+------------------+------------+----------------+----------------+
| 2016-03-04 02:09:26 | 2016-03-04 02:09:50 | NULL       | 41 | lm-2           | lm-1         | NULL      | completed | d514ae11-3118-4adf-ab6d-9bc437173de3 |                    2 |                    2 | NULL        | NULL      |       0 | live-migration |      0 |            0 |                0 |                0 |          0 |              0 |              0 |
+---------------------+---------------------+------------+----+----------------+--------------+-----------+-----------+--------------------------------------+----------------------+----------------------+-------------+-----------+---------+----------------+--------+--------------+------------------+------------------+------------+----------------+----------------+
1 row in set (0.00 sec)

Expected result:
* Total Memory Bytes should not 0
* Processed Memory Bytes  should be equal Total Memory Bytes  after migration finished.

Actual result:
* Total Memory Bytes is 0
* Processed Memory Bytes is 0

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: live-migration

** Tags added: live-migration

-- 
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/1553011

Title:
  total_memory in migration-list is 0 while live-migration

Status in OpenStack Compute (nova):
  New

Bug description:
  1: Nova api microversion v2.25

  2: This is the log of source compute node:

  2016-03-04 02:25:44.598 INFO nova.virt.libvirt.driver [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] [instance: d514ae11-3118-4adf-ab6d-9bc437173de3] Increasing downtime to 46 ms after 0 sec elapsed time
  2016-03-04 02:25:44.930 INFO nova.virt.libvirt.driver [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] [instance: d514ae11-3118-4adf-ab6d-9bc437173de3] Migration running for 0 secs, memory 100% remaining; (bytes processed=0, remaining=0, total=0) <============================

  ....

  
  2016-03-04 02:25:48.084 DEBUG nova.virt.libvirt.host [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] Domain has shutdown/gone away: Requested operation is not valid: domain is not running from (pid=5066) for_domain /opt/stack/nova/nova/virt/libvirt/host.py:180
  2016-03-04 02:25:48.086 INFO nova.virt.libvirt.driver [req-baf2d5a5-1e19-4f78-b38b-ef6ae67ae3f3 admin admin] [instance: d514ae11-3118-4adf-ab6d-9bc437173de3] Migration operation has completed

  
  3 steps:
  3.1 create an instance 
  3.2 nova --debug --os-compute-api-version 2.25 live-migration test2
  3.3 nova --debug --os-compute-api-version 2.25 server-migration-list test2

  +----+-------------+-----------+----------------+--------------+-----------+---------+--------------------------------------+----------------------------+----------------------------+--------------------+------------------------+------------------------+------------------+----------------------+----------------------+
  | Id | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status  | Server UUID                          | Created At                 | Updated At                 | Total Memory Bytes | Processed Memory Bytes | Remaining Memory Bytes | Total Disk Bytes | Processed Disk Bytes | Remaining Disk Bytes |
  +----+-------------+-----------+----------------+--------------+-----------+---------+--------------------------------------+----------------------------+----------------------------+--------------------+------------------------+------------------------+------------------+----------------------+----------------------+
  | 41 | -           | -         | lm-2           | lm-1         | -         | running | d514ae11-3118-4adf-ab6d-9bc437173de3 | 2016-03-04T02:09:26.000000 | 2016-03-04T02:09:40.000000 | 0                  | 0                      | 0                      | 0                | 0                    | 0                    |
  +----+-------------+-----------+----------------+--------------+-----------+---------+--------------------------------------+----------------------------+----------------------------+--------------------+------------------------+------------------------+------------------+----------------------+----------------------+

  see from nova table:

  mysql> select * from migrations where id=41;
  +---------------------+---------------------+------------+----+----------------+--------------+-----------+-----------+--------------------------------------+----------------------+----------------------+-------------+-----------+---------+----------------+--------+--------------+------------------+------------------+------------+----------------+----------------+
  | created_at          | updated_at          | deleted_at | id | source_compute | dest_compute | dest_host | status    | instance_uuid                        | old_instance_type_id | new_instance_type_id | source_node | dest_node | deleted | migration_type | hidden | memory_total | memory_processed | memory_remaining | disk_total | disk_processed | disk_remaining |
  +---------------------+---------------------+------------+----+----------------+--------------+-----------+-----------+--------------------------------------+----------------------+----------------------+-------------+-----------+---------+----------------+--------+--------------+------------------+------------------+------------+----------------+----------------+
  | 2016-03-04 02:09:26 | 2016-03-04 02:09:50 | NULL       | 41 | lm-2           | lm-1         | NULL      | completed | d514ae11-3118-4adf-ab6d-9bc437173de3 |                    2 |                    2 | NULL        | NULL      |       0 | live-migration |      0 |            0 |                0 |                0 |          0 |              0 |              0 |
  +---------------------+---------------------+------------+----+----------------+--------------+-----------+-----------+--------------------------------------+----------------------+----------------------+-------------+-----------+---------+----------------+--------+--------------+------------------+------------------+------------+----------------+----------------+
  1 row in set (0.00 sec)

  Expected result:
  * Total Memory Bytes should not 0
  * Processed Memory Bytes  should be equal Total Memory Bytes  after migration finished.

  Actual result:
  * Total Memory Bytes is 0
  * Processed Memory Bytes is 0

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


Follow ups