From 488e2fe1d6de4912485287b682740334fb221b98 Mon Sep 17 00:00:00 2001 From: Zongheng Yang Date: Fri, 19 Jan 2024 10:25:29 -0800 Subject: [PATCH] Minor: improve a logging message in provisioner.py (#3003) * Minor: improve a logging message in provisioner.py * Update sky/provision/provisioner.py Co-authored-by: Zhanghao Wu --------- Co-authored-by: Zhanghao Wu --- sky/provision/provisioner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sky/provision/provisioner.py b/sky/provision/provisioner.py index 1db38fef377..5ab9768c06a 100644 --- a/sky/provision/provisioner.py +++ b/sky/provision/provisioner.py @@ -349,8 +349,10 @@ def _post_provision_setup( head_instance = cluster_info.get_head_instance() if head_instance is None: - raise RuntimeError(f'Provision failed for cluster {cluster_name!r}. ' - 'Could not find any head instance.') + raise RuntimeError( + f'Provision failed for cluster {cluster_name!r}. ' + 'Could not find any head instance. To fix: refresh ' + 'status with: sky status -r; and retry provisioning.') # TODO(suquark): Move wheel build here in future PRs. ip_list = cluster_info.get_feasible_ips()