Public bug reported: Commit https://github.com/openstack/nova/commit/111a852e79f0d9e54228d8e2724dc4183f737397 introduced regression that causes affinity/anti-affinity policies to be omitted while live migrating an instance.
This is because we don't pass instance_group here: https://github.com/openstack/nova/blob/111a852e79f0d9e54228d8e2724dc4183f737397/nova/conductor/tasks/live_migrate.py#L183 However, filters are expecting this information: https://github.com/openstack/nova/blob/111a852e79f0d9e54228d8e2724dc4183f737397/nova/scheduler/filters/affinity_filter.py#L86 Basically we should pass instance group so that filters can read this information later. ** Affects: nova Importance: Medium Status: Confirmed ** Affects: nova/mitaka Importance: Undecided Status: New ** Tags: live-migration mitaka-rc-potential -- 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/1561022 Title: Server group policies are not honored during live migration Status in OpenStack Compute (nova): Confirmed Status in OpenStack Compute (nova) mitaka series: New Bug description: Commit https://github.com/openstack/nova/commit/111a852e79f0d9e54228d8e2724dc4183f737397 introduced regression that causes affinity/anti-affinity policies to be omitted while live migrating an instance. This is because we don't pass instance_group here: https://github.com/openstack/nova/blob/111a852e79f0d9e54228d8e2724dc4183f737397/nova/conductor/tasks/live_migrate.py#L183 However, filters are expecting this information: https://github.com/openstack/nova/blob/111a852e79f0d9e54228d8e2724dc4183f737397/nova/scheduler/filters/affinity_filter.py#L86 Basically we should pass instance group so that filters can read this information later. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1561022/+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