Skip to content

Commit

Permalink
Minor: improve a logging message in provisioner.py (#3003)
Browse files Browse the repository at this point in the history
* Minor: improve a logging message in provisioner.py

* Update sky/provision/provisioner.py

Co-authored-by: Zhanghao Wu <[email protected]>

---------

Co-authored-by: Zhanghao Wu <[email protected]>
  • Loading branch information
concretevitamin and Michaelvll authored Jan 19, 2024
1 parent c1f28bc commit 488e2fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sky/provision/provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 488e2fe

Please sign in to comment.