Attempting to remove NSX segments from NSX UI as well as via the API commands, and all segments are in "Delete Pending" state.
search cancel

Attempting to remove NSX segments from NSX UI as well as via the API commands, and all segments are in "Delete Pending" state.

book

Article ID: 435172

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • User sees segments under segment listing but not able to delete them. These segments are shown as grayed out in UI

  • You may see log lines such as in  ( var/log/proton/nsxapi.log ) 

    level="WARNING" subcomp="manager"] Logical Port fetch failed for LogicalPort/#######-####-####-####-###########. OBJECT_NOT_FOUND exception com.vmware.nsx.management.common.exceptions.ObjectNotFoundException: null
  • In the NSXAPI log of NSX Manager ( var/log/proton/nsxapi.log ) you see the following error when processing Segment delete

    2025-10-20T04:35:00.111Z INFO providerTaskExecutor-1-54 ProviderInvocationTask 5393 POLICY [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] ProviderInvocationTask: 332671816 calling Invoking cleanup on provider SegmentProviderNSXT with key: SegmentProviderNSXT-local-paths for operation PushPolicyIntent from 12 paths with {Segment=[/infra/segments/#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########,/infra/segments/#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########, /infra/segments#######-####-####-####-###########, /infra/segments/#######-####-####-####-###########}
    2025-10-20T04:35:00.155Z WARN providerTaskExecutor-1-54 LogicalPortQueryDao 5393 SWITCHING [nsx@6876 comp="nsx-manager" level="WARNING" subcomp="manager"] Logical Port fetch failed for LogicalPort/#######-####-####-####-###########. OBJECT_NOT_FOUND exception com.vmware.nsx.management.common.exceptions.ObjectNotFoundException: null

        at com.vmware.nsx.management.container.dao.IdentifiableProxyObjectDao.findByIdentifier(IdentifiableProxyObjectDao.java:400) ~[?:?]
        at com.vmware.nsx.management.switching.logicalnetwork.dao.LogicalPortQueryDao.getLogicalPort(LogicalPortQueryDao.java:155) ~[?:?]
        at com.vmware.nsx.management.switching.logicalnetwork.dao.LogicalPortQueryDao.getLogicalPort(LogicalPortQueryDao.java:176) ~[?:?]
        at com.vmware.nsx.management.switching.logicalnetwork.service.LogicalPortServiceImpl.get(LogicalPortServiceImpl.java:1140) ~[?:?]
        at com.vmware.nsx.management.switching.logicalnetwork.service.LogicalPortServiceImpl.get(LogicalPortServiceImpl.java:1125) ~[?:?]
        at com.vmware.nsx.management.switching.logicalnetwork.service.LogicalPortServiceImpl.get(LogicalPortServiceImpl.java:1235) ~[?:?]
        at com.vmware.nsx.management.policy.providers.switching.BridgeEndpointUtilsNsxT.handleBridgeProfileDelete(BridgeEndpointUtilsNsxT.java:406) ~[?:?]
        at com.vmware.nsx.management.policy.providers.switching.SegmentProviderNsxT.cleanupBridging_aroundBody6(SegmentProviderNsxT.java:1071) ~[?:?]
        at com.vmware.nsx.management.policy.providers.switching.SegmentProviderNsxT$AjcClosure7.run(SegmentProviderNsxT.java:1) ~[?:?]
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) ~[?:?]
        at io.micrometer.core.aop.TimedAspect.processWithTimer(TimedAspect.java:119) ~[?:?]

Environment

  • VCF Operations 9.0.x
  • VMware NSX 4.2.4

Cause

Segment could not be deleted because dependent objects could not be found in the database.

Resolution

This will be addressed in a future version.

If you have encountered this error please open a Support Request for available workaround.

Additional Information

For future updates on this issue, please subscribe to this article, see Subscribe to a Broadcom knowledge article by article or product.