]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: retry after JSONDecodeError in wait_for_mgr_restart()
authorJohn Fulton <fulton@redhat.com>
Wed, 17 Mar 2021 22:03:46 +0000 (18:03 -0400)
committerJohn Fulton <fulton@redhat.com>
Sun, 21 Mar 2021 16:00:38 +0000 (12:00 -0400)
commit0aba5704d9eb1a2df6dd437785fc1f8c558c0990
treedfa8e70a91419e81f6f429124f2442fb1950be9e
parentf73716402b9be7db88d47f4b2b86d1127d46c057
mgr/cephadm: retry after JSONDecodeError in wait_for_mgr_restart()

'ceph mgr dump' does not always return valid JSON so cephadm
will throw an exception sometimes when applying a spec as per
the issue this PR closes. Add a try/except to catch a possible
JSONDecodeError and retry after sleeping.

Fixes: https://tracker.ceph.com/issues/49870
Signed-off-by: John Fulton <fulton@redhat.com>
src/cephadm/cephadm