Skip to content

Commit

Permalink
Update Cluster-Deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
DaxLynch authored Jan 3, 2024
1 parent 7fb543f commit a4cf033
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/GCP/Cluster-Deletion
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@ It is very important that when you are done using the cluster you must use ghcp

## Improper Deletion
### Case 1
When the compute instances are deleted, but not the folder, you can run the command `./ghpc destroy CLUSTER-IMAGE/` and it should properly remove all the created resources.
When the compute instances are deleted, but not the folder, you can run the command `./ghpc destroy CLUSTER-IMAGE/` and it should properly remove all the created resources. You should also run `rm -rf CLUSTER-IMAGE/` to remove the file.
### Case 2
When the folder hasn't been deleted, and you attempt to create the cluster again, you may get the error
```
Error: Failed to overwrite existing deployment.

Use the -w command line argument to enable overwrite.
If overwrite is already enabled then this may be because you are attempting to remove a deployment group, which is not supported.
original error: the directory already exists: e4s-23-11-cluster-slurm-rocky8
```
In this case remove the folder as stated above.
### Case 3
If you are getting the below errors, it indicates ghpc is unable to recreate a cluster due to leftover resources.

0 comments on commit a4cf033

Please sign in to comment.