Data Services Manager VCF Service is Stuck in "Uninstalling" or "Unknown" State When Uninstalling the Service from VCF Automation
search cancel

Data Services Manager VCF Service is Stuck in "Uninstalling" or "Unknown" State When Uninstalling the Service from VCF Automation

book

Article ID: 458379

calendar_today

Updated On:

Products

VMware Data Services Manager

Issue/Introduction

When attempting to uninstall the Data Services Manager(DSM) VCF Service from the VCF Automation Provider Portal > Service Management UI, the operation remains stuck indefinitely in the "Uninstalling" phase.
The DSM VCF Service overview card in the Service Management UI displays an overall status of "Unknown", or continues spinning with a "Uninstalling" progress indicator.
When inspecting the Resources list in the service details UI, one or more service resources (such as Service Accounts, Configuration Handlers, or Supervisor Services) are displayed as Unhealthy or stuck in an error state.
Subsequent lifecycle operations, such as reinstallation cannot be performed because the service is locked in the uninstalling phase.

 

Environment

VMware Cloud Foundation
VCF Automation 9.1.1+

Cause

When you uninstall the DSM VCF Service, VCF Automation automatically triggers the deletion of all underlying service resources created for that service (including service accounts, configuration handlers, and regional supervisor services). VCF Automation waits for all of these resources to be fully removed from the cluster before completing the uninstallation.
If any service resource cannot be deleted because of lingering finalizers (typically caused by communication timeouts, transient network issues, or controller dependencies during teardown), the object remains stuck in a Unhealthy or Busy state. Because these resources never reach to zero replica, VCF Automation remains trapped in an uninstallation retry loop, causing the service to remain stuck in Uninstalling and the UI to report the overall status as Uninstalling or Unknown.

Resolution

Note: This resolution is only applicable for the service uninstallation, which uninstalls the service resources (including regional DSM appliance if any). 

 

Follow the 4 steps below to identify stuck resources, clear lingering finalizers, and complete the uninstallation:

 

1. Connect to the VCF Automation Appliance

Log in to the VCF Automation appliance console via SSH with vmware-system-user. Once logged in, switch to the root user by running sudo -i.

 

2. Identify Stuck Resources

List all DSM resources in the prelude namespace. Stuck resources will typically display a STATUS of Unhealthy (or Busy):

    • For VCF Automation 9.1.1+

kubectl get vcfaserviceaccounts,configurationhandlers,supervisorservices,supervisorapplyspecs,overlays,rdebundles,roles.services.vcfa.broadcom.com,rightbundles,secrets,userinterfaceplugins \
  -n prelude \
  -l "services.vcfa.broadcom.com/refName=data-services.broadcom.com"

    • For VCF Automation 9.1.0

kubectl get vcfaserviceaccounts,configurationhandlers,rdebundles,roles.services.vcfa.broadcom.com,rightbundles,secrets,userinterfaceplugins \
  -n prelude \
  -l "services.vcfa.broadcom.com/refName=data-services.broadcom.com"

 

3. Remove Lingering Finalizers from Stuck Resources

Clear the blocking finalizers by patching metadata.finalizers to null on each stuck resource:

    • General Patch Syntax:

kubectl patch <resource-kind>/<resource-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

 

    • Common Examples:

For a stuck Configuration Handler:

kubectl patch configurationhandlers.services.vcfa.broadcom.com/<handler-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

For a stuck Service Account:

kubectl patch vcfaserviceaccounts.services.vcfa.broadcom.com/<sa-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

For a stuck Right Bundle:

kubectl patch rightbundle.services.vcfa.broadcom.com/<rightbundle-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

For a stuck Role:

kubectl patch role.services.vcfa.broadcom.com/<role-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

For a stuck RDE Bundle:

kubectl patch rdebundle.services.vcfa.broadcom.com/<rdebundle-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

For a stuck Secret:

kubectl patch secret/<secret-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

 

For a stuck Supervisor Spec (VCF Automation 9.1.1+): 

kubectl patch supervisorapplyspec.services.vcfa.broadcom.com/<svsspec-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

For a stuck Overlay (VCF Automation 9.1.1+): 

kubectl patch overlay.services.vcfa.broadcom.com/<overlay-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'


For a stuck Supervisor Service (VCF Automation 9.1.1+):

kubectl patch supervisorservices.services.vcfa.broadcom.com/<svs-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'

If the resource persists after applying the patch, issue a kubectl delete command first to set the deletion timestamp, then re-apply the patch to strip the finalizers (e.g., for a stuck UserInterfacePlugin):

# 1. Delete the stuck UserInterfacePlugin:
kubectl delete userinterfaceplugins.services.vcfa.broadcom.com/<plugin-name> -n prelude --wait=false

# 2. Remove its lingering finalizers:
kubectl patch userinterfaceplugins.services.vcfa.broadcom.com/<plugin-name> -n prelude --type=merge -p '{"metadata":{"finalizers":null}}'


Note: Patching finalizers is idempotent and completely safe, you can safely re-run the cleanup commands in Step 2 and Step 3 to clean them again.

 

4. Verify Completion

a. Confirm Resources Removed: Re-run the command from Step 2. The output should confirm:

No resources found in prelude namespace.

b. Confirm in VCF Automation Service Management UI: The DSM VCF Service will no longer display "Uninstalling" or "Unknown", and will be ready for fresh re-installation.

 

Next Step

After you patch these service resources manually, DSM VCF service uninstallation will proceed and you can observe from VCF Automation Provider Portal. DSM VCF service will disappear from the Installed service category, and return to the Not Installed service category.

You can choose to install it immediately. Otherwise, the default service version will be auto re-installed by VCF Automation.

 

 

Additional Information

Related Information