Skip to content

Commit

Permalink
feat: adding cluster delete violation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
deimosfr committed Feb 22, 2025
1 parent 3e94831 commit 79edb4b
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 2 deletions.
9 changes: 8 additions & 1 deletion website/docs/using-qovery/configuration/clusters.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
last_modified_on: "2024-11-27"
last_modified_on: "2025-02-22"
title: "Clusters"
description: "Learn how to configure your Kubernetes clusters on Qovery"
sidebar_label: hidden
Expand Down Expand Up @@ -158,6 +158,12 @@ To only temporarily stop a cluster, see [Stopping a Cluster][docs.using-qovery.c

To delete a cluster, open the `...` section and press `Delete Cluster`.

<Alert type="info">

If you encounter any issue during the deletion process, please refer to the [Troubleshooting section][docs.using-qovery.troubleshoot.cluster-troubleshoot].

</Alert>

3 options can be chosen to delete a cluster:

** 1) Default **
Expand Down Expand Up @@ -386,4 +392,5 @@ Security is our main concern. When a vulnerability is found, here are the action
[docs.using-qovery.configuration.clusters#restarting-a-cluster]: /docs/using-qovery/configuration/clusters/#restarting-a-cluster
[docs.using-qovery.configuration.clusters#stopping-a-cluster]: /docs/using-qovery/configuration/clusters/#stopping-a-cluster
[docs.using-qovery.configuration.clusters#updating-a-cluster]: /docs/using-qovery/configuration/clusters/#updating-a-cluster
[docs.using-qovery.troubleshoot.cluster-troubleshoot]: /docs/using-qovery/troubleshoot/cluster-troubleshoot/
[urls.qovery_console]: https://console.qovery.com
6 changes: 6 additions & 0 deletions website/docs/using-qovery/configuration/clusters.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ To only temporarily stop a cluster, see [Stopping a Cluster][docs.using-qovery.c

To delete a cluster, open the `...` section and press `Delete Cluster`.

<Alert type="info">

If you encounter any issue during the deletion process, please refer to the [Troubleshooting section][docs.using-qovery.troubleshoot.cluster-troubleshoot].

</Alert>

3 options can be chosen to delete a cluster:

** 1) Default **
Expand Down
36 changes: 35 additions & 1 deletion website/docs/using-qovery/troubleshoot/cluster-troubleshoot.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
last_modified_on: "2023-05-19"
last_modified_on: "2025-02-22"
title: Cluster Troubleshoot
description: "Everything you need to troubleshoot your cluster with Qovery"
hide_pagination: true
Expand All @@ -17,6 +17,40 @@ Within this section you will find the common errors you might encounter when dep
website/docs/using-qovery/troubleshoot/cluster-troubleshoot.md.erb
-->

## How do I delete a cluster with dependency violation errors?

When attempting to delete a Qovery cluster, you may encounter dependency violation errors (`DependencyViolation`) indicating that certain items cannot be deleted due to existing dependencies.
This typically happens when there are resources using the items (here: subnets) that were not deployed or managed by Qovery. Example:

```
DeleteError - Unknown error while performing Terraform command (`terraform destroy -lock=false -no-color -auto-approve`), here is the error:
Error: deleting EC2 Subnet (subnet-xxx): operation error EC2: DeleteSubnet, https response error StatusCode: 400, RequestID: xxx, api error DependencyViolation: The subnet 'subnet-xxx' has dependencies and cannot be deleted.
```

To resolve subnet deletion errors and successfully delete your cluster, follow these steps:

1. Log in to your cloud provider console
2. Navigate to the VPC section (or the section where deletion items are in failure)
3. Attempt to delete the items (here: subnet) that is failing. This will trigger a notification showing the blocking elements

<p align="center">
<img src="/img/cluster_troubleshoot/cluster_troubleshot_subnet.png" alt="AWS VPC subnet" />
</p>

4. Review the items (here: Network interfaces) that are blocking the deletion:

* Check the Interface Type and Description for each blocking resource
* Verify that these resources are safe to delete and not being used by any critical services.

<p align="center">
<img src="/img/cluster_troubleshoot/cluster_troubleshot_net_inf.png" alt="AWS network interfaces" />
</p>

5. Delete the identified blocking network interfaces if they are no longer needed
6. Return to Qovery and retry the cluster deletion process


## I don't have Qovery access anymore, how could I delete Qovery deployed resources on my AWS account?

Unfortunately, there is no automatic way to do it with Qovery once we don't have access. However, AWS provides an easy way to retrieve those resources, so you can manually perform the delete. To do so, go on the AWS web console, and search for "Resource Groups & Tag Editor" service, then:
Expand Down
34 changes: 34 additions & 0 deletions website/docs/using-qovery/troubleshoot/cluster-troubleshoot.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,40 @@ hide_pagination: true

Within this section you will find the common errors you might encounter when deploying or running your clusters with Qovery

## How do I delete a cluster with dependency violation errors?

When attempting to delete a Qovery cluster, you may encounter dependency violation errors (`DependencyViolation`) indicating that certain items cannot be deleted due to existing dependencies.
This typically happens when there are resources using the items (here: subnets) that were not deployed or managed by Qovery. Example:

```
DeleteError - Unknown error while performing Terraform command (`terraform destroy -lock=false -no-color -auto-approve`), here is the error:

Error: deleting EC2 Subnet (subnet-xxx): operation error EC2: DeleteSubnet, https response error StatusCode: 400, RequestID: xxx, api error DependencyViolation: The subnet 'subnet-xxx' has dependencies and cannot be deleted.
```

To resolve subnet deletion errors and successfully delete your cluster, follow these steps:

1. Log in to your cloud provider console
2. Navigate to the VPC section (or the section where deletion items are in failure)
3. Attempt to delete the items (here: subnet) that is failing. This will trigger a notification showing the blocking elements

<p align="center">
<img src="/img/cluster_troubleshoot/cluster_troubleshot_subnet.png" alt="AWS VPC subnet" />
</p>

4. Review the items (here: Network interfaces) that are blocking the deletion:

* Check the Interface Type and Description for each blocking resource
* Verify that these resources are safe to delete and not being used by any critical services.

<p align="center">
<img src="/img/cluster_troubleshoot/cluster_troubleshot_net_inf.png" alt="AWS network interfaces" />
</p>

5. Delete the identified blocking network interfaces if they are no longer needed
6. Return to Qovery and retry the cluster deletion process


## I don't have Qovery access anymore, how could I delete Qovery deployed resources on my AWS account?

Unfortunately, there is no automatic way to do it with Qovery once we don't have access. However, AWS provides an easy way to retrieve those resources, so you can manually perform the delete. To do so, go on the AWS web console, and search for "Resource Groups & Tag Editor" service, then:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79edb4b

Please sign in to comment.