VMware NSX-T Data Center
VMware NSX
NAPP
This issue may arise due to a communication breakdown between NSX and NAPP.
FORCE_UNDEPLOY
option to delete NAPP instance.OR,
From NSX cli root mode.
curl -k -H "Content-Type:application/json" -u admin -X PATCH https://localhost/policy/api/v1/infra/sites/default/napp/deployment/platform -d '{ "deployment_action": { "action": "FORCE_UNDEPLOY" } }'
We my get below error While using API to delete the NAPP deploy forcefully.
{
"httpStatus": "BAD_REQUEST",
"error_code": 46053,
"module_name": "NAPP",
"error_message": "Please delete Upgrade Coordinator before deleting NSX Application Platform."
}
So, for deleting the Upgrade Coordinator we can use below method to delete the upgrade-coordinator
We can use below API to delete upgrade coordinator
PATCH '/policy/api/v1/infra/sites/default/napp/deployment/upgrade-coordinator' with body: '{ "deployment_action": { "action": "FORCE_UNDEPLOY" } }'
or from NSX cli root mode.
curl -k -u admin -H "Content-Type:application/json" -X PATCH https://localhost/policy/api/v1/infra/sites/default/napp/deployment/upgrade-coordinator' -d '{"deployment_action":{"action": "FORCE_UNDEPLOY"}}'
Then wait for some time and then run the API mentioned in resolution section to 'FORCE_UNDEPLOY
' NAPP instance.