Deleting a csb-azure-mssql-fog-run-failover Service Fails With Error: Module not installed
search cancel

Deleting a csb-azure-mssql-fog-run-failover Service Fails With Error: Module not installed

book

Article ID: 435375

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

You are unable to delete a csb-azure-mssql-fog-run-failover service instance due to a tofu error: Module not installed

The full error message looks similar to the following:

   status:    delete failed
   message:   Service broker failed to delete service binding for instance my-failover-service: Service broker error: unbind failed:  │ Error: Module not installed │  │   on
              /var/vcap/data/csb-app-pak/tmp/gsb3709077858/instance.tf.json line 1, in module: │    1: {"module":{"instance":{"source":"./brokertemplate"}}} │  │ This module is not yet installed.
              Run "tofu init" to install all modules │ required by this configuration.   exit status 1

Environment

Cloud Service Broker for Azure v1.11.1

Cause

The command ordering is incorrect in the service destroy/unbind logic. The error only happens when the service is bound to an application

Resolution

The issue will be fixed in an upcoming release.

To avoid the issue in the meantime, do not bind csb-azure-mssql-fog-run-failover service instances to any applications. This is a pseudo-service and does not provide any bind credentials, so it is not necessary to bind it to applications.

If you have a service instance stuck in this state already, you may follow the steps to remove an orphaned service instance to delete it.

Additional Information

Azure SQL Failover Group Failover Runner Reference