Cannot enable MON, un-extend / re-extend network and/or redeploy the NE appliance. All actions fail with Error: org.codehaus.jettison.json.JSONObject$Null
search cancel

Cannot enable MON, un-extend / re-extend network and/or redeploy the NE appliance. All actions fail with Error: org.codehaus.jettison.json.JSONObject$Null

book

Article ID: 374010

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

Attempting to perform any of the below tasks fails with the Error: org.codehaus.jettison.json.JSONObject$Null

  • Enable/Disable MON
  • Un-extend / Re-extend the network
  • Deleting/Removing Network Extension appliance

The following error is found on the HCX manager /common/logs/admin/app.log

  • To access the app.log, Login to the HCX manager (on-prem/cloud) as user admin
  • Navigate to the log file /common/logs/admin/app.log
 [InterconnectService_SvcThread-4312, IX:########-####-####-####-########, J:83bf01ff, , TxId: TxId: >########-####-####-####-#########] ERROR c.v.v.h.s.i.InterconnectRemoveApplianceJob- InterconnectRemoveApplianceJob failed in >state DISABLE_TRUNK_PORTS. Error: org.code
haus.jettison.json.JSONObject$Null cannot be cast to org.codehaus.jettison.json.JSONObject.
java.lang.ClassCastException: org.codehaus.jettison.json.JSONObject$Null cannot be cast to org.codehaus.jettison.json.JSONObject
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
at >com.vmware.vchs.hybridity.service.interconnect.AbstractInterconnectJob.configurePortPropertiesForPortGroups(AbstractInterconnectJob>.java:2330)

 

Environment

HCX 4.x

Cause

  • The L2E segment that is stretched via HCX-NE is modified/removed on the destination NSX directly. This causes the HCX DB to be out of sync with the logical-switch config segment on NSX.
  • Modifying the HCX extended L2E Segment outside of HCX is an unsupported operation. Refrain from making such changes.

Resolution

To recover from this condition, perform the steps below.

  • Force unextend the affected network
    • Log in to your VMware HCX connector.
    • Navigate to Services > Network Extension.
    • Select the network(s) you want to unextend.
    • Expand the network entry to reveal more options.
    • Check the box for Force Unextend Network!.
    • Click the Unextend button.
    • Confirm the action in the dialog box that appears. 

Refer to the documentation :-Removing a Network Extension

  • Delete the HCX L2E segment from Cloud/Destination NSX. Ensure that there are no VMs attached to this segment before deleting it.
    • Login to the NSX GUI as user admin
    • Navigate to the Networking Tab
    • Click on the Segment
    • Find the L2E segment, click on the 3 vertical dots and Delete.

If the above steps do not resolve the issue, open a case with Broadcom support : Creating and managing Broadcom support cases