]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm/schedule: make placement shuffle deterministic
authorSage Weil <sage@newdream.net>
Thu, 22 Apr 2021 22:42:00 +0000 (18:42 -0400)
committerSage Weil <sage@newdream.net>
Wed, 19 May 2021 12:43:13 +0000 (08:43 -0400)
commitadceaa9b28278601c56a7db1c3f42eaa592ec4d1
tree7c0d50891d2bdd9ba067a2b8cf68282fc244930b
parent2fa80d8769a5b4ab1238a9b18627b9e28a540b66
mgr/cephadm/schedule: make placement shuffle deterministic

hash(str) is non-deterministic, probably because it is using the internal
object ID or something and not the string content?

In any case, explicitly hash the string content and use that instead.

Also, sort the input pre-shuffle to ensure that variations in the original
host list ordering don't screw with the result.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/schedule.py