Unknown state
OR NSX configuration state shows Validation Errors
on the UI and when queried via the API:GET https://<NSX_MANAGER>/api/v1/transport-nodes/
GET https://<NSX_MANAGER>/api/v1/transport-nodes/<tn-id>/status
Not Available
" in the UI./var/log/proton/nsxapi.log
has a log entry similar to this example:The requested object : TransportZoneProfile/<TransportZoneProfile-ID> could not be found.
"GET https://<NSX_MANAGER>
/api/v1/transportzone-profiles?include_system_owned=true
Validation Errors
600: The requested object: ####-##-## could not be found. Object identifiers are case sensitive.
"/var/log/search/elasticsearch_index_indexing_slowlog.log
has a log similar to example:[{"resource_type":"BfdHealthMonitoringProfile","profile_id":"UUID_in_Validation_Error"}]}],"vmk_install_migration":[],"pnics_uninstall_migration":[],"vmk_uninstall_migration":[],"not_ready":false}],"resource_type":"StandardHost]
The status of the Transport Nodes (TNs) are unknown because the Transport-Zone Profile (TZP) which is being referenced does not exist. The reasons why the referenced Transport-Zone Profile (TZP) is not present in the system can be due to multiple reasons:
To resolve this issue for Edge nodes, open a support case with Broadcom support.
To resolve this issue for ESXi hosts, follow these steps:
NOTE: It has been found in one case that removing the Transport Node (Host) from the cluster, waiting for the NSX VIBs to uninstall, then readding the Transport Node to the cluster, resolved the unknown state.
logical-migration.jar
file to one of the NSX Manager nodes and place it in the directory /opt/vmware/upgrade-coordinator-tomcat/temp/
.# java -Dcorfu-property-file-path=/opt/vmware/upgrade-coordinator-tomcat/conf/ufo-factory.properties -Djava.io.tmpdir=/opt/vmware/upgrade-coordinator-tomcat/temp -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlog4j.configurationFile=/opt/vmware/upgrade-coordinator-tomcat/conf/log4j2.xml -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/vmware/upgrade-coordinator-tomcat/conf/logging.properties -Dnsx-service-type=nsx-manager -DTransportZoneProfileRectifierInTNAndTNP.userName=admin -DTransportZoneProfileRectifierInTNAndTNP.password='ENTER_ADMIN_PASSWORD_HERE' -DTransportZoneProfileRectifierInTNAndTNP.updateTn=true -DTransportZoneProfileRectifierInTNAndTNP.updateTzp=true -cp /opt/vmware/upgrade-coordinator-tomcat/temp/logical-migration.jar com.vmware.nsx.management.migration.impl.TransportZoneProfileRectifierInTNAndTNP
Note: if you download the file multiple times make sure that the file that is provided is as logical-migration.jar, if this is as logical-migration(1).jar it will not run. # chown uuc:uuc /var/log/upgrade-coordinator/upgrade-coordinator*log*
# grep "Migration task finished" /var/log/upgrade-coordinator/upgrade-coordinator.log
# service proton start
# /etc/init.d/proton start
> start search resync policy
> start search resync manager
Note: In some cases it maybe necessary to detach and reattach the TNP on impacted cluster to fully resolve the issue.
In cases where Service VMs are deployed in the cluster the affected host transport nodes are a part of, detaching TNP gives the error - "Error: Cluster ########-####-####-####-########bed1:domain-c10 has NSX managed service VM deployed or deployment is in progress. Delete these deployment, before deleting TN. (Error code: 26173)
". In such a scenario, the alternative to detaching / re-attaching TNP would be to follow the below steps:
GET https://{{nsx-ip}}/api/v1/transport-nodes/<tn-id>
" to get the payload.PUT https://{{nsx-ip}}/api/v1/transport-nodes/<tn-id>
".