htools: fix potential bug in ialloc/change-group
htools: fix potential bug in ialloc/change-group

Currently, the ChangeAll mode of nodeEvac computes the primary group
of the instance and then uses the resulting group index for computing
the group score. However, during the change-group operation (which
also uses ChangeAll), the group of the instance at the beginning and
end of the operation differs, so we can't do that and we must instead
pass the final group to the function.

This patch does that, by passing the group from the caller of
nodeEvac.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>

apyrgio/ganeti,ganeti/ganeti,leshchevds/ganeti,yiannist/ganeti,ganeti/ganeti,ganeti/ganeti,andir/ganeti,apyrgio/snf-ganeti,mbakke/ganeti,andir/ganeti,grnet/snf-ganeti,apyrgio/snf-ganeti,ganeti-github-testing/ganeti-test-1,leshchevds/ganeti,onponomarev/ganeti,yiannist/ganeti,mbakke/ganeti,dimara/ganeti,ganeti-github-testing/ganeti-test-1,dimara/ganeti,bitemyapp/ganeti,andir/ganeti,grnet/snf-ganeti,yiannist/ganeti,leshchevds/ganeti,onponomarev/ganeti,bitemyapp/ganeti,mbakke/ganeti,apyrgio/ganeti