HCX Network Extension un-stretch workflow will fail with the following error:
Location of App Engine log:
2022-09-02 15:31:03.536 UTC [NetworkStretchService_SvcThread-493, j: 42a54267, , TxId: 16c8a3a4-####-####-####-########4a0] ERROR c.v.v.h.n.i.UnstretchNetworkJobInt- Error encountered in Unstretch network job
org.codehaus.jettison.json.JSONException: JSONObject["resourceId"] not found.
at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:369)
at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:496)
VMware HCX
This specific condition can be seen in those instances where default gateway IP address is wrongly specified on Network Extension wizard while performing stretch for a given segment.
In that situation, the Unextend operation fails because the extension does not really exist due to the wrong parameter.
This is a basic usage issue and user is suggested to select correct host address as a default gateway IP from a given network address.
HCX future release will handle such user error.
Workaround:
Open a Service Request with VMware Global Support Services with the Broadcom Support and include the required information to work on remediation.