Instance stuck in deleting

Problem

You attempt to delete a Data Fusion instance, but it fails to delete and remains in Deleting state indefinitely. Any duration over 30 minutes is cause for concern.

Symptom

The Data Fusion instance remains in Deleting state indefinitely. The Cloud Console no longer shows the URL for viewing the instance, but if you already have the URL, the instance may continue to work as expected.

Solution

The most common cause for this symptom is that the Cloud Data Fusion P4 service account has been removed from the customer’s project’s IAM policy. The IAM permissions can be viewed from the Google Cloud Console’s IAM page: http://console.cloud.google.com/iam-admin.

From the IAM page, you will have to add the following service account with the Cloud Data Fusion API Service Agent role. The service account is in the form:
service-<PROJECT_NUMBER>@gcp-sa-datafusion.iam.gserviceaccount.com
Make sure you replace <PROJECT_NUMBER> with your project number.

See the IAM docs for step-by-step instructions on performing this grant. An example of a service account being added from the IAM page looks like:

After adding it through the IAM page, you will be able to successfully delete your Data Fusion instance. For steps on how to do this, see the relevant docs.

 

Â