Skip to content

Commit

Permalink
Print out master pod label status (#1533)
Browse files Browse the repository at this point in the history
Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored and ywskycn committed Nov 27, 2019
1 parent 62b255a commit 536fafe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/validate_job_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,14 @@ def validate_job_status(client, job_type, ps_num, worker_num):
client.delete_pod(master_pod_name)
exit(-1)
else:
print("Master: %s" % client.get_pod_phase(master_pod_name))
print(
"Master (status.phase): %s"
% client.get_pod_phase(master_pod_name)
)
print(
"Master (metadata.labels.status): %s"
% client.get_pod_label_status(master_pod_name)
)
for i, ps in enumerate(ps_pod_names):
print("PS%d: %s" % (i, client.get_pod_phase(ps)))
for i, worker in enumerate(worker_pod_names):
Expand Down

0 comments on commit 536fafe

Please sign in to comment.