Skip to content

Commit

Permalink
[GCP] Allow stopping VM with local SSD (#2587)
Browse files Browse the repository at this point in the history
* Allow stopping VM with local SSD

* Add comment
  • Loading branch information
Michaelvll authored Sep 20, 2023
1 parent ec78242 commit 68a4be7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sky/provision/gcp/instance_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ def stop(
project=project_id,
zone=zone,
instance=instance,
# This is needed for the instance that has local SSDs attached by
# default, such as a2-highgpu-8g. Otherwise, an error will be
# raised. Refer to issue #2586
# https://cloud.google.com/compute/docs/disks/local-ssd#stop_instance
discardLocalSsd=False,
).execute()
return operation

Expand Down

0 comments on commit 68a4be7

Please sign in to comment.