Removing domain in SDDC Manager fails with error_message=Cannot delete a transport node which is part of TNP applied compute collection
search cancel

Removing domain in SDDC Manager fails with error_message=Cannot delete a transport node which is part of TNP applied compute collection

book

Article ID: 374322

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

Removing domain workflow fails on Delete Transport Node Configuration from ESXi Host(s)

Description   
Delete Transport Node Configuration from ESXi Host(s)

Progress Messages     
Transport node deletion operation failed

Error
Message: Transport node deletion operation failed
Remediation Message:
Reference Token: 9TPVT4
Cause: com.vmware.vapi.std.errors.InvalidRequest: InvalidRequest (com.vmware.vapi.std.errors.invalid_request) => { messages = [], data = struct => {error_message=Cannot delete a transport node 06ab0c35-8584-4c80-bb86-1167867c1578 which is part of TNP applied compute collection fe3980c3-6e09-466f-80bc-f66419881f91:domain-c10. Please use the object name or UUID in Global Search to find all linked objects., httpStatus=BAD_REQUEST, error_code=9411, module_name=NsxSwitching service}, errorType = INVALID_REQUEST } InvalidRequest (com.vmware.vapi.std.errors.invalid_request) => { messages = [], data = struct => {error_message=Cannot delete a transport node 06ab0c35-8584-4c80-bb86-1167867c1578 which is part of TNP applied compute collection fe3980c3-6e09-466f-80bc-f66419881f91:domain-c10. Please use the object name or UUID in Global Search to find all linked objects., httpStatus=BAD_REQUEST, error_code=9411, module_name=NsxSwitching service}, errorType = INVALID_REQUEST }

Domainmanager.log:

	2024-08-02T20:07:26.132+0000 INFO  [vcf_dm,391324ee1fe8456b,2d3d] [c.v.v.c.f.p.n.a.DeleteTransportNodes,dm-exec-10]  Deletion of transport node by Name: <FQDN> starts with unprepareHost: true
	2024-08-02T20:07:26.153+0000 ERROR [vcf_dm,391324ee1fe8456b,2d3d] [c.v.v.c.f.p.n.a.DeleteTransportNodes,dm-exec-10]  Exception occurred while deleting the transport node, hence retrying as forced delete, Excepton details:
	com.vmware.vapi.std.errors.InvalidRequest: InvalidRequest (com.vmware.vapi.std.errors.invalid_request) => {
	    messages = [],
	    data = struct => {error_message=Cannot delete a transport node 06ab0c35-8584-4c80-bb86-1167867c1578 which is part of TNP applied compute collection fe3980c3-6e09-466f-80bc-f66419881f91:domain-c10. Please use the object name or UUID in Global Search to find all linked objects., httpStatus=BAD_REQUEST, error_code=9411, module_name=NsxSwitching service},
	    errorType = INVALID_REQUEST
	}
	        at com.vmware.vapi.std.errors.InvalidRequest._newInstance2(InvalidRequest.java:194)
	        at jdk.internal.reflect.GeneratedMethodAccessor2251.invoke(Unknown Source)
	        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	        at com.vmware.vapi.internal.bindings.convert.impl.JavaClassStructConverter.createStructBinding(JavaClassStructConverter.java:275)
	        at com.vmware.vapi.internal.bindings.convert.impl.JavaClassStructConverter.fromValue(JavaClassStructConverter.java:79)
	        at com.vmware.vapi.internal.bindings.convert.impl.JavaClassStructConverter.fromValue(JavaClassStructConverter.java:33)
	        at com.vmware.vapi.internal.bindings.TypeConverterImpl$ValueToJavaVisitor.visit(TypeConverterImpl.java:330)
	        at com.vmware.vapi.bindings.type.ErrorType.accept(ErrorType.java:31)
	        at com.vmware.vapi.internal.bindings.TypeConverterImpl.convertToJava(TypeConverterImpl.java:713)
	        at com.vmware.vapi.internal.bindings.Stub.convert(Stub.java:454)
	        at com.vmware.vapi.internal.bindings.Stub.convertError(Stub.java:471)
	        at com.vmware.vapi.internal.bindings.ResultTranslatingHandle.setResult(ResultTranslatingHandle.java:42)
	        at com.vmware.vapi.internal.bindings.ResultTranslatingHandle.setResult(ResultTranslatingHandle.java:21)
	        at com.vmware.vapi.internal.protocol.client.rest.DefaultRequestExecutorFactory$DefaultHttpResponseHandler.onResult(DefaultRequestExecutorFactory.java:87)
	        at com.vmware.vapi.internal.protocol.client.rpc.http.ApacheClientRestTransport.execute(ApacheClientRestTransport.java:79)
	        at com.vmware.vapi.internal.protocol.client.rest.DefaultRequestExecutorFactory$DefaultRequestExecutor.execute(DefaultRequestExecutorFactory.java:45)
	        at com.vmware.vapi.internal.protocol.client.rest.RestClientApiProvider.invoke(RestClientApiProvider.java:67)
	        at com.vmware.vapi.internal.bindings.Stub.invoke(Stub.java:241)
	        at com.vmware.vapi.internal.bindings.Stub.invokeMethodAsync(Stub.java:191)
	        at com.vmware.vapi.internal.bindings.Stub.invokeMethod(Stub.java:137)
	        at com.vmware.nsx.TransportNodesStub.delete(TransportNodesStub.java:124)
	        at com.vmware.nsx.TransportNodesStub.delete(TransportNodesStub.java:113)
	        at com.vmware.vcf.common.nsxt.sdk.client.connection.TransportNodeOperations.deleteById(TransportNodeOperations.java:125)
	        at com.vmware.vcf.common.nsxt.sdk.client.connection.NsxtManagerTransportNodeOperations.deleteTransportNode(NsxtManagerTransportNodeOperations.java:204)
	        at com.vmware.vcf.common.fsm.plugins.nsxt.action.DeleteTransportNodes.initiateDeleteTransportNode(DeleteTransportNodes.java:234)
	        at com.vmware.vcf.common.fsm.plugins.nsxt.action.DeleteTransportNodes.deleteTransportNode(DeleteTransportNodes.java:192)
	        at com.vmware.vcf.common.fsm.plugins.nsxt.action.DeleteTransportNodes.lambda$execute$0(DeleteTransportNodes.java:131)
	        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
	        at org.springframework.cloud.sleuth.instrument.async.TraceRunnable.run(TraceRunnable.java:64)
	        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	        at java.base/java.lang.Thread.run(Thread.java:829)
	2024-08-02T20:07:26.154+0000 INFO  [vcf_dm,391324ee1fe8456b,2d3d] [c.v.v.c.f.p.n.a.DeleteTransportNodes,dm-exec-10]  Deletion of transport node by Name: <FQDN> starts with unprepareHost: false
	2024-08-02T20:07:28.226+0000 INFO  [vcf_dm,391324ee1fe8456b,d4bc] [c.v.v.c.f.p.n.a.DeleteTransportNodes,dm-exec-13]  Deleting Transport Node with Id 421e9546-b231-4fd9-84ec-0de4ac9f09bf configuration from host <FQDN>
	2024-08-02T20:07:28.226+0000 INFO  [vcf_dm,391324ee1fe8456b,d4bc] [c.v.v.c.f.p.n.a.DeleteTransportNodes,dm-exec-13]  isLifecycleManaged: false for the host: <FQDN>

Environment

VCF 4.5.1

Cause

The removing domain workflow cannot remove the transport nodes because it fails to remove the Transport Node Profile.

Resolution

Manually detach the Transport Node Profile from within the NSX-T UI by completing the following:

  1. Log in with admin privileges to an NSX Manager at https://<nsx-manager-ip-address>.
  2. Select System > Fabric > Nodes > Host Transport Nodes.
  3. From the Managed by drop-down menu, select the vCenter Server.
  4. Select the cluster to remove
  5. Click Actions
  6. Click Detach TN Profile.

After the Transport Node Profile is detached, restart the task from the SDDC Manager UI.