]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/crushdiff: support old format json dump 43343/head
authorMykola Golub <mykola.golub@clyso.com>
Wed, 29 Sep 2021 07:18:03 +0000 (10:18 +0300)
committerMykola Golub <mykola.golub@clyso.com>
Wed, 29 Sep 2021 07:18:03 +0000 (10:18 +0300)
commit40a67b1b4abcbe5e388ef9bb1e0a7b3e252994ee
tree62f029ad56a5ff36b6e5540528775169a549b7c4
parent7c64d92fefd0ca429c5c54e5a924348d1a6711b7
tools/crushdiff: support old format json dump

Someone may try running crushdiff against osdmap and pg dump
collected for an older cluster.

In general it is not guaranteed to work as not tested well, but
still we can do our best to make it work if possible.

One know issue is that for older versions `ceph pg dump` json
output does not have a separate 'pg_map' section, where actual
data is stored. This change makes crushdiff to support this old
format too.

Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
src/tools/crushdiff