]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerSage Weil <sage@newdream.net>
Wed, 24 Mar 2021 22:05:46 +0000 (17:05 -0500)
commit98d55648b0d20f03f55610520b383d6f5fc70462
treeb2ba2fa75162f1a759c8bbfa48139abb74c0152e
parent60ebc275120ead7d1ffa388b145caeb5969fa702
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>
(cherry picked from commit 0aba5704d9eb1a2df6dd437785fc1f8c558c0990)
src/cephadm/cephadm