As John mentioned in the earlier comment, that effort has been properly tracked by a spec http://specs.openstack.org/openstack/nova- specs/specs/newton/approved/check-destination-on-migrations-newton.html
The last bits will be merged soon in Newton, and we keep track of those by the blueprint, rather than by this bug. Closing the bug report as Invalid since a blueprint is better tracking it. ** Changed in: nova Status: Confirmed => Invalid -- 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/1497100 Title: Affinity policy problems with migrate and live-migrate Status in OpenStack Compute (nova): Invalid Bug description: 1. version kilo 2015.1.0 2. Relevant log files: nova-scheduler.log (Contains “-------nijq--------” is my own add log) 2015-09-18 10:09:54.043 20956 INFO nova.scheduler.host_manager [req-1860c747-fc49-469a-9cfd-479fd276a6e1 9c67877ee37b47e989148a776862c7b8 40fc54dc632c4a02b44bf31d7ff15c82 - - -] Host filter ignoring hosts: nail-SBCJ-5-3-3 2015-09-18 10:09:54.045 20956 WARNING nova.scheduler.filters.compute_filter [req-1860c747-fc49-469a-9cfd-479fd276a6e1 9c67877ee37b47e989148a776862c7b8 40fc54dc632c4a02b44bf31d7ff15c82 - - -] (nail-SBCJ-5-3-13, nail-SBCJ-5-3-13) ram:43549 disk:160768 io_ops:0 instances:1 has not been heard from in a while 2015-09-18 10:09:54.045 20956 INFO nova.scheduler.filters.affinity_filter [req-1860c747-fc49-469a-9cfd-479fd276a6e1 9c67877ee37b47e989148a776862c7b8 40fc54dc632c4a02b44bf31d7ff15c82 - - -] -------nijq--------[u'affinity']---affinity 2015-09-18 10:09:54.046 20956 INFO nova.scheduler.filters.affinity_filter [req-1860c747-fc49-469a-9cfd-479fd276a6e1 9c67877ee37b47e989148a776862c7b8 40fc54dc632c4a02b44bf31d7ff15c82 - - -] -------nijq--------[u'nail-SBCJ-5-3-3'] 2015-09-18 10:09:54.046 20956 INFO nova.scheduler.filters.affinity_filter [req-1860c747-fc49-469a-9cfd-479fd276a6e1 9c67877ee37b47e989148a776862c7b8 40fc54dc632c4a02b44bf31d7ff15c82 - - -] -------nijq--------(CL-SBCJ-5-3-4, CL-SBCJ-5-3-4) ram:23454 disk:65536 io_ops:0 instances:0 2015-09-18 10:09:54.046 20956 INFO nova.filters [req-1860c747-fc49-469a-9cfd-479fd276a6e1 9c67877ee37b47e989148a776862c7b8 40fc54dc632c4a02b44bf31d7ff15c82 - - -] Filter ServerGroupAffinityFilter returned 0 hosts for instance a76b0c52-31ea-4741-8b5f-d6f1b7dfbe68 3. Reproduce steps: 3.1 create a server-group named “affinitygroup” with policy ‘affinity’ create a vm named “test_affi” add vm “test_affi” to server-group “affinitygroup” results: [root@nail-SBCJ-5-3-13 filters(keystone_admin)]# nova list +--------------------------------------+-----------+--------+------------+-------------+---------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-----------+--------+------------+-------------+---------------------+ | a76b0c52-31ea-4741-8b5f-d6f1b7dfbe68 | test_affi | ACTIVE | - | Running | net_0917=15.15.15.6 | +--------------------------------------+-----------+--------+------------+-------------+---------------------+ [root@nail-SBCJ-5-3-13 filters(keystone_admin)]# nova server-group-list +--------------------------------------+---------------+---------------+-------------------------------------------+----------+ | Id | Name | Policies | Members | Metadata | +--------------------------------------+---------------+---------------+-------------------------------------------+----------+ | 2cd6ce13-53f7-435b-9f97-36c7e65148ac | affinitygroup | [u'affinity'] | [u'a76b0c52-31ea-4741-8b5f-d6f1b7dfbe68'] | {} | +--------------------------------------+---------------+---------------+-------------------------------------------+----------+ 3.2 I have two normal computing nodes:CL-SBCJ-5-3-4,nail-SBCJ-5-3-3 the vm test_affi on the nail-SBCJ-5-3-3 now,Execute the command : nova migrate test_affi example: [root@nail-SBCJ-5-3-13 filters(keystone_admin)]# nova migrate test_affi Expected result: VM migration success Actual result: ERROR (BadRequest): No valid host was found. No valid host found for cold migrate (HTTP 400) (Request-ID: req-a646c32b-b9a6-455f-a3a9-2d8d77c013da) Relevant log files: See section 2 4 Operating live-migration have the same problem Affinity is refers to the virtual machine direct affinity, so i think if there was only one vm in the server-group ,should allow the vm migration to new host To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1497100/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp