← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1323538] [NEW] Option ram_allocation_ratio not used when doing live migrate

 

Public bug reported:

ram_allocation_ratio is used when booting a new instance, but not used
when migrating an instance.

I got this error when doing migration:
2014-05-27 15:02:49.880 11551 ERROR nova.api.openstack.compute.contrib.admin_actions [req-508c616a-86e0-4800-9097-3fceb8357fa9 7339aead32274b68b847d160268cd188 0e939e5e09304f28bdd70ac5230c6fcb] Live migration of instance dd118d20-da9b-45f9-8aec-520f1e718520 to host cn11844 failed
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions Traceback (most recent call last):
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/admin_actions.py", line 298, in _migrate_live
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     disk_over_commit, host)
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 215, in _wrapped
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     return fn(self, context, instance, *args, **kwargs)
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 169, in inner
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     return f(self, context, instance, *args, **kw)
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 2901, in live_migrate
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     disk_over_commit=disk_over_commit)
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/conductor/api.py", line 352, in live_migrate_instance
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     block_migration, disk_over_commit, None)
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1096, in wrapper
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     raise (e._exc_info[1], None, e._exc_info[2])
2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions MigrationPreCheckError: Migration pre-check error: Unable to migrate dd118d20-da9b-45f9-8aec-520f1e718520 to cn11844: Lack of memory(host:14743 <= instance:24576)

** Affects: nova
     Importance: Undecided
     Assignee: Liyingjun (liyingjun)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Liyingjun (liyingjun)

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

Title:
  Option ram_allocation_ratio not used when doing live migrate

Status in OpenStack Compute (Nova):
  New

Bug description:
  ram_allocation_ratio is used when booting a new instance, but not used
  when migrating an instance.

  I got this error when doing migration:
  2014-05-27 15:02:49.880 11551 ERROR nova.api.openstack.compute.contrib.admin_actions [req-508c616a-86e0-4800-9097-3fceb8357fa9 7339aead32274b68b847d160268cd188 0e939e5e09304f28bdd70ac5230c6fcb] Live migration of instance dd118d20-da9b-45f9-8aec-520f1e718520 to host cn11844 failed
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions Traceback (most recent call last):
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/admin_actions.py", line 298, in _migrate_live
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     disk_over_commit, host)
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 215, in _wrapped
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     return fn(self, context, instance, *args, **kwargs)
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 169, in inner
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     return f(self, context, instance, *args, **kw)
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 2901, in live_migrate
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     disk_over_commit=disk_over_commit)
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/conductor/api.py", line 352, in live_migrate_instance
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     block_migration, disk_over_commit, None)
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1096, in wrapper
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions     raise (e._exc_info[1], None, e._exc_info[2])
  2014-05-27 15:02:49.880 11551 TRACE nova.api.openstack.compute.contrib.admin_actions MigrationPreCheckError: Migration pre-check error: Unable to migrate dd118d20-da9b-45f9-8aec-520f1e718520 to cn11844: Lack of memory(host:14743 <= instance:24576)

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


Follow ups

References