Cluster stuck at ‘creating’ status if creation is failed

Summary

Cluster creation failed because there were no available IP addresses. But GItLab UI keeps showing spinner and “Kubernetes cluster is being created” message Cluster stuck at ‘creating’ status. Can't cancel or remove cluster. There is no remove button on the cluster list. Removing cluster from google cloud does nothing. Cluster status is still stuck

Steps to reproduce

  1. Go to Operations->Kubernentes
  2. Add Kubernetes cluster and make sure that creation fails (one of the scenario: there are no available IP addresses)
  3. Observe /clusters page.

Example Project

What is the current bug behavior?

GItLab UI keeps showing spinner and the “Kubernetes cluster is being created” message. It's impossible to add another cluster.

What is the expected correct behavior?

See error that creation is failed or at least have a button that cancels the creation and removes the cluster.

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Results of GitLab application Check

Possible fixes

At least create a button that cancels the creation and removes the cluster.

/cc @danielgruesso @dzaporozhets

Assignee Loading
Time tracking Loading