On the NSX UI under System > Service Deployments > Service Instances, some service instances show "Deployment Status" as "Uninitialized" and "Runtime Status" as "Not Available"
Deleting the Service instance from API fails due to a dependency error.
VMware NSX
VMware vDefend Firewall
East-West Service Insertion deployment
GET https://<Manager-IP>/api/v1/serviceinsertion/services/<Service-ID>/service-instances/<Instance-ID>/instance-runtimes
{
"results": [
{
"runtime_status": "NOT_AVAILABLE", <<<<<<<<<<<<<<<<<<<<
"unhealthy_reason": "",
"maintenance_mode": "OFF",
"deployment_status": "UNDEPLOYMENT_FAILED", <<<<<<<<<<<<<<<<<<<
"service_instance_id": "#####-####-###-####-######",
"service_vm_id": "####x-####-####-####-######:vm-####123",
<SNIP>
"error_message": "Power off failed for vm vm-####123 in vc ###-####-#### : VC operation failed : An error occurred while communicating with the remote host.",
"resource_type": "InstanceRuntime",
<SNIP>
}
],
"result_count": 1
}
POST https://<Manager-IP>/api/v1/serviceinsertion/services/<Service-ID>/service-instances/<Instance-ID>/instance-runtimes?action=delete
corfu_tool_runner.py -n nsx -o showTable -t ServiceInstance > /image/ServiceInstance.txt
corfu_tool_runner.py -n nsx -o showTable -t InstanceEndpoint > /image/InstanceEndpoint.txt
corfu_tool_runner.py -n nsx -o showTable -t InstanceRuntime > /image/InstanceRuntime.txt
corfu_tool_runner.py -n nsx -o showTable -t ServiceDeployment > /image/ServiceDeployment.txt
Reference API guide for Service Insertion