Deletion of transport node from a vLCM-enabled cluster fails with the error; "Host is part of the compute resource applied from the TNP"
search cancel

Deletion of transport node from a vLCM-enabled cluster fails with the error; "Host is part of the compute resource applied from the TNP"

book

Article ID: 375117

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware NSX

Issue/Introduction

  • When attempting to delete NSX from an ESXi host transport node that is part of a vLCM-enabled cluster that has a Transport Node Profile attached, error "host is part of the compute resource applied from the TNP" occurs. 
  • The following logs may be present in the NSX Manager logs. These are examples only and values such as timestamps and UUID's will not match.
2024-08-16T23:45:05.159Z  INFO http-nio-127.0.0.1-7440-exec-425 RbacUtil 88589 - [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] original-prefix request translated: api/v1/transport-nodes/95926271-####-####-####-ea16998a12a6
2024-08-16T23:45:05.162Z  INFO http-nio-127.0.0.1-7440-exec-425 PolicyTransportNodeLcmFacadeImpl 88589 POLICY [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Received call to delete transport node with id 95926271-####-####-####-ea16998a12a6
2024-08-16T23:45:05.164Z  INFO http-nio-127.0.0.1-7440-exec-425 PolicyTransportNodeLcmFacadeImpl 88589 POLICY [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Invoking policy delete TN workflow for site default enf id default relative id esxi0#-3f147780-####-####-####-f5d16ca7741bhost-## host TN
2024-08-16T23:45:05.166Z  INFO http-nio-127.0.0.1-7440-exec-425 RbacUtil 88589 - [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] original-prefix request got: YXBpL3YxL3Ry#############################################k4YTEyYTY=
2024-08-16T23:45:05.166Z  INFO http-nio-127.0.0.1-7440-exec-425 RbacUtil 88589 - [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] original-prefix request translated: api/v1/transport-nodes/95926271-####-####-####-ea16998a12a6
2024-08-16T23:45:05.166Z  INFO http-nio-127.0.0.1-7440-exec-425 PolicyHostTransportNodeFacadeImplTraceAspect 88589 POLICY [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] NSX-Tracing start trace deleteHostTransportNode
2024-08-16T23:45:05.166Z  INFO http-nio-127.0.0.1-7440-exec-425 PolicyHostTransportNodeFacadeImpl 88589 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Received call to delete host transport node with site id default, enforcement point id default, node id esxi0#-3f147780-####-####-####-f5d16ca7741bhost-##,unprepare_host false force true
2024-08-16T23:45:05.169Z  WARN http-nio-127.0.0.1-7440-exec-425 TransactionRetryAspect 88589 - [nsx@6876 comp="nsx-manager" level="WARNING" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] detected an active transaction, hence ignoring the aspect void com.vmware.nsx.management.policy.transportnode.host.service.HostTransportNodeServiceImpl.deleteHostTransportNode(UfoTxn, HostTransportNode, boolean, boolean, boolean)
2024-08-16T23:45:05.169Z  INFO http-nio-127.0.0.1-7440-exec-425 HostTransportNodeServiceImplTraceAspect 88589 POLICY [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] NSX-Trace started deleteHostTransportNode
2024-08-16T23:45:05.236Z  INFO http-nio-127.0.0.1-7440-exec-425 PrincipalOwnerValidator 88589 - [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Principal 'admin' attempts to delete or modify an unprotected object of type HostTransportNode. (createUser=system)
2024-08-16T23:45:05.266Z  INFO http-nio-127.0.0.1-7440-exec-425 TransportNodeDeleteReqestParamsServiceImpl 88589 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] TN delete request params 'TransportNodeDeleteRequestParams [hostId=95926271-####-####-####-ea16998a12a6, force=true, unprepareHost=false, getRevision()=0, getIdentifier()=TransportNodeDeleteRequestParams/95926271-####-####-####-ea16998a12a6]' stored for TN [95926271-####-####-####-ea16998a12a6]
2024-08-16T23:45:05.268Z  INFO http-nio-127.0.0.1-7440-exec-425 DiscoveredNodeFinderImpl 88589 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Returning discovered nodes parent id as 3f147780-####-####-####-f5d16ca7741b:domain-c## for given external id 3f147780-####-####-####-f5d16ca7741b:host-####
2024-08-16T23:45:05.268Z  INFO http-nio-127.0.0.1-7440-exec-425 ComputeCollectionFinderImpl 88589 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Returning compute collection found by given discovered node id 3f147780-####-####-####-f5d16ca7741b:host-####, has id 3f147780-####-####-####-f5d16ca7741b:domain-c##
2024-08-16T23:45:05.268Z  INFO http-nio-127.0.0.1-7440-exec-425 ComputeCollectionFinderImpl 88589 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Returning compute collection for given transport node 95926271-####-####-####-ea16998a12a6, has id 3f147780-####-####-####-f5d16ca7741b:domain-c##
2024-08-16T23:45:05.269Z ERROR http-nio-127.0.0.1-7440-exec-425 HostTransportNodeServiceImpl 88589 FABRIC [nsx@6876 comp="nsx-manager" errorCode="PM9411" level="ERROR" reqId="2d9e4205-####-####-####-6b25ac5c8654" subcomp="manager" username="admin"] Cannot delete a HostTransportNode 95926271-####-####-####-ea16998a12a6 which is part of TNP applied compute collection(s) 3f147780-####-####-####-f5d16ca7741b:domain-c##

Environment

VMware vSphere ESXi

VMware NSX-T 3.x

VMware NSX 4.x

Cause

This is an expected error in this configuration. Please see the Resolution field below for steps to properly remove an ESXi host transport node from NSX when it is part of a vLCM-enabled cluster with a Transport Node Profile attached in NSX. 

Resolution

  1. In vCenter Server, put the ESXi host that needs to be removed from NSX into maintenance mode.
  2. Move the ESXi host from the vLCM-enabled cluster to DataCenter object in the vCenter inventory. This will trigger the un-install of NSX from the ESXi host.
  3. Check in the NSX UI if the ESXi host goes into 'Not Configured' state.
  4. If any validation error is shown, click on the ESXi host in the NSX UI, then delete the host and select the 'force delete' option.