Json de-serialization error: property owner_nsx is unrecognized
/napp/nsxi-platform/data-collection-*
:2023-05-09T06:04:36,395ESC[m ESC[1;31mERROR ESC[m[ESC[1;34mhttps-jsse-nio-192.168.1.1-8443-exec-5ESC[m] ESC[1;33mc.v.n.p.c.e.AbstractExceptionMapperESC[m: INTELLIGENCE [nsx@6876 comp="nsx-manager"
errorCode="INT98" level="ERROR" subcomp="manager"] status 400 reading PolicyApi#patchNsxIntelligenceTransportNodeClusterInfoList(String,String,NsxIntelligenceTransportNodeClusterInfoList); content:
{
"httpStatus" : "BAD_REQUEST",
"error_code" : 287,
"module_name" : "common-services",
"error_message" : "Json de-serialization error: property owner_nsx is unrecognized."
}
/var/log/proton/nsxapi.log
we also see the log entry:2023-05-05T20:39:16.963Z INFO http-nio-127.0.0.1-7440-exec-174 NsxBaseRestController 4804 SYSTEM [nsx@6876 audit="true" comp="nsx-manager" level="INFO" subcomp="manager"] UserName:'napp_platform_egress' ModuleName:'common-services' Operation:'PATCH@/api/v1/infra/sites/default/intelligence/clusters' Operation status: 'failure' Error: Json de-serialization error: property owner_nsx is unrecognized.
Multi NSX is configured on this 4.0.0.1 environment, this feature is not supported on 4.0.0.1.
When triggering the data collection de-activation from UI, NSX sends the de-activation response to NSX Intelligence without the parameter "owner_nsx" which Intelligence expects. Therefore, the response from NSX is rejected.
The issue is resolved in VMware NSX 4.0.1.1 and NSX-T data center 3.2.2 available at Support Documents and Downloads (broadcom.com).
Workaround:
GET https://<mgr-ip>/policy/api/v1/infra/sites/default/intelligence/clusters?cluster_type=HOST_CLUSTER
PATCH https://<mgr-ip>/policy/api/v1/infra/sites/default/intelligence/clusters
{
"clusters": [
{
"cluster_id": "bc43f52b-####-####-####-########0b5:domain-c#",
"cluster_type": "HOST_CLUSTER",
"enabled": false,<---------------------------------- toggle this field to the desired value.
"resource_type": "IntelligenceClusterConfig",
"id": "bc43f52b-####-####-####-########0b5:domain-c#",
"display_name": "Cluster-1",
"path": "/infra/sites/93982fd9-####-####-####-########753/intelligence/cluster-configs/bc43f52b-####-####-####-########0b5:domain-c#"
}
]
}