)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":29974,"name":"Stephen Taylor","email":"stephen.taylor.1@att.com","username":"st053q"},"change_message_id":"d78210f9c742e16937eca43270db0e1b984bf118","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":10,"id":"299a760c_4c6f40cd","updated":"2021-10-13 17:42:22.000000000","message":"recheck","commit_id":"4d629d3db60056655afa6f9549c687654eecb66d"}],"ceph-mon/templates/bin/moncheck/_reap-zombies.py.tpl":[{"author":{"_account_id":22636,"name":"Cliff Parsons","email":"cliffhparsons@aol.com","username":"cliffparsons"},"change_message_id":"2667c36f197c4e21434a77529d025d1148a55a3a","unresolved":true,"context_lines":[{"line_number":28,"context_line":"    return json.loads(kubemap)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def extract_mon_count_from_kubeapi():"},{"line_number":31,"context_line":"    mon_count_command\u003d\u0027kubectl describe daemonset ceph-mon --namespace\u003d${NAMESPACE} | awk \\\u0027/Desired Number of Nodes Scheduled/{print $6}\\\u0027\u0027"},{"line_number":32,"context_line":"    return int(subprocess.check_output(mon_count_command, shell\u003dTrue).decode(\u0027utf-8\u0027))"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"current_mons \u003d extract_mons_from_monmap()"}],"source_content_type":"text/x-smarty","patch_set":2,"id":"403781c3_13778b29","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":3},"updated":"2021-10-13 03:10:27.000000000","message":"This doesn\u0027t work for whatever reason. I tried it in my lab. I thought it may be that piping is not supported, so I also tried the command below but it also didn\u0027t work for whatever reason.\n\nmon_count_command\u003d\u0027kubectl get daemonset ceph-mon --namespace\u003d${NAMESPACE} -o jsonpath\u003d\"{.status.desiredNumberScheduled}\"\u0027","commit_id":"87dc5dfe76c99d2ada3ee2fe8ce3db0e8a0e72fa"},{"author":{"_account_id":29974,"name":"Stephen Taylor","email":"stephen.taylor.1@att.com","username":"st053q"},"change_message_id":"3ca44119ebfbfb7cb2ffa36e547272417219f480","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    return json.loads(kubemap)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def extract_mon_count_from_kubeapi():"},{"line_number":31,"context_line":"    mon_count_command\u003d\u0027kubectl describe daemonset ceph-mon --namespace\u003d${NAMESPACE} | awk \\\u0027/Desired Number of Nodes Scheduled/{print $6}\\\u0027\u0027"},{"line_number":32,"context_line":"    return int(subprocess.check_output(mon_count_command, shell\u003dTrue).decode(\u0027utf-8\u0027))"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"current_mons \u003d extract_mons_from_monmap()"}],"source_content_type":"text/x-smarty","patch_set":2,"id":"37af518b_89a93c34","line":31,"range":{"start_line":31,"start_character":0,"end_line":31,"end_character":3},"in_reply_to":"403781c3_13778b29","updated":"2021-10-13 13:51:08.000000000","message":"I implemented this differently so the mon count is checked in the start script instead.\n\nPreviously reap-zombies.py was run every 30 seconds. Now it will only run if the mon count (from the Ceph cluster\u0027s perspective) has changed in the last 30 seconds. So mons will only be removed from the monmap if the count has changed in the last 30 seconds and the list in the monmap doesn\u0027t match the list of pods. In theory this means a new mon has to appear in the monmap in order to trigger a reap-zombies.py run.","commit_id":"87dc5dfe76c99d2ada3ee2fe8ce3db0e8a0e72fa"}]}
