"Check if latency is configured during upgrade", "latency_check_description",FAILURE, "Latency profile can not be configured during upgrade. Please manually remove the configuration.
GET /api/v1/latency-profiles
(/var/run/log/vmkernel.log)
shows loglines matching below when the post upgrade issue has occurred:2024-09-03T08:43:51.213Z vmkwarning: cpu32:18618342)WARNING: NetDVS: 3027: Failed to write critical property com.vmware.nsx.latency.param on port
########-####-####-####-############
, return :Bad parameter.
2024-09-03T08:43:51.213Z vmkernel: cpu32:18618342)Vmxnet3: 17427: Port_Enable failed for port 0x########
VMware NSX
The VMware NSX feature to collect latency statistics is configured using the DVS property com.vmware.nsx.latency.param
.
In NSX 4.2, the format of the property was adjusted to reduced the memory footprint. However, the change in format makes the property value to be considered invalid in some cases. When the property is invalid, the port remains blocked.
This issue is resolved in NSX version 4.2.1.2
Workaround:
GET /policy/api/v1/infra/latency-profiles
GET /api/v1/latency-profiles
DELETE /policy/api/v1/infra/latency-profiles
/<latency-profile-id>
DELETE /api/v1/latency-profiles/<latency-profile-id>
X-Allow-Overwrite: true
If you are proactively addressing this issue for an upgrade and the number of latency profiles in your environment is high, making manual removal impractical, please consider opening a case with Broadcom Support and refer to this KB article.
This issue gets flagged in upgrade pre-check while upgrading to 4.2.1 onwards: "Latency profile cannot be configured during upgrade"
The prevention steps above should be implemented and vRNI latency metric collection disabled prior to upgrading of ESXi Host Transport Node to ensure no data plane impact. Once upgraded, metric collection can be re-enabled.
This issue will also trigger when Aria Operations for Networks was removed before unconfiguring the collector, resulting in an unused IPFIX Collector in NSX configuration:
If the collector can't be deleted through NSX UI, you can use API:
DELETE https://<nsx-manager>/policy/api/v1/infra/ipfix-dfw-collector-profiles/<collector-profile-id>
Ref.: DELETE /policy/api/v1/infra/ipfix-dfw-collector-profiles/{ipfix-dfw-collector-profile-id}