<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="font-size: 14px;" class="">Hi All:</span><div class=""><span class="Apple-tab-span" style="white-space: pre; font-size: 14px;">       </span></div><div class=""><span class="Apple-tab-span" style="font-size: 14px; white-space: pre;">       </span>I am working for<span style="font-size: 14px;" class=""> merging starlingx patch to nova project. There is a fix patch[1] which I cannot understand what scene it fixes. In the patch description, it is a bug fix for patch[2], “0024 - primary: server-groups best effort and group size “, and the best-effort functionality is similar to server-group soft-affinty  & soft-anti-affinty. Could anyone tell me their difference?</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class=""> As the 0111 patch says “However if a host is specified, there are </span><b style="font-size: 14px;" class=""><i class="">some scenarios</i></b><span style="font-size: 14px;" class=""> where the dest compute will be preset causing that  host to be included in the list of server group hosts thereby preventing the current live migration from scheduling”, I review the code in stx-nova/nova/conductor/tasks/live-migration.py[3], but I still don’t understand what the "some scenarios” are.</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><br class=""></div><div class="">[1] <a href="https://github.com/starlingx-staging/stx-nova/blob/master/stx-patches/0111-Exclude-current-instance-when-checking-ser.patch" class="">https://github.com/starlingx-staging/stx-nova/blob/master/stx-patches/0111-Exclude-current-instance-when-checking-ser.patch</a></div><div class="">[2] <a href="https://github.com/starlingx-staging/stx-nova/blob/master/stx-patches/0024-primary-server-groups-best-effort-and-group-size.patch" class="">https://github.com/starlingx-staging/stx-nova/blob/master/stx-patches/0024-primary-server-groups-best-effort-and-group-size.patch</a></div><div class="">[3] <a href="https://github.com/starlingx-staging/stx-nova/blob/master/nova/conductor/tasks/live_migrate.py" class="">https://github.com/starlingx-staging/stx-nova/blob/master/nova/conductor/tasks/live_migrate.py</a></div><div class=""><br class=""></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">Best Regards</span></div><div class=""><span style="font-size: 14px;" class="">Kunpeng</span></div></body></html>