Skip to content
Permalink
Browse files

Print out master pod label status (#1533)

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored and ywskycn committed Nov 27, 2019
1 parent 62b255a commit 536fafe80297dd38c9c510e4c8d1b37a4faba35f
Showing with 8 additions and 1 deletion.
  1. +8 −1 scripts/validate_job_status.py
@@ -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):

0 comments on commit 536fafe

Please sign in to comment.
You can’t perform that action at this time.