How to force undeploy NAPP in NSX Manager
search cancel

How to force undeploy NAPP in NSX Manager

book

Article ID: 313953

calendar_today

Updated On:

Products

VMware NSX VMware NSX-T Data Center

Issue/Introduction

Unable to remove NAPP from NSX-T UI. Tried the UI delete option under System > NSX Application Platform > Actions but reported error "The system encountered a problem and is unable to connect to the NSX Application Platform". 



Environment

VMware NSX-T Data Center
VMware NSX

Cause

This issue may arise due to a communication breakdown between NSX and NAPP.

Resolution

Use the PATCH API below with FORCE_UNDEPLOY option to delete NAPP instance.

PATCH /policy/api/v1/infra/sites/<site-id>/napp/deployment/platform

{
  "deployment_action": {
      "action": "FORCE_UNDEPLOY"
  }
}

After calling API, delete NAPP components on k8s cluster manually if there are any left.

Follow the steps mentioned in below doc for manual cleanup of k8s cluster.

https://docs.vmware.com/en/VMware-NSX/4.1/nsx-application-platform/GUID-836D6E37-BA43-4FEE-A7C2-31461674C28E.html?hWord=N4IghgNiBcIHZgA6JAXyA