LockSet: allow lists with duplicate values
LockSet: allow lists with duplicate values

If a list with a duplicate value is passed to a lockset what the code
now does is to try to acquire the lock twice, generating a
double-acquire exception in the SharedLock code. This is definitely an
issue. In order to solve it we can either forbit double values in a list
or just delete the duplicates. In this patch we go for the latter
solution, removing any duplicate values when creating the acquire_list.

Reviewed-by: imsnah


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