Edge node vmid not found on NSX manager
Hello There,
Recently , we faced an issue in our NSX-T envrironment running with 3.2.x version.
We saw below error message while running the pre-check for NSX upgrade to 4.x version.
"Edge node 31c2a0ba-e10a-48eb-940d-85f1e48c811f vmId is not found on NSX manager"
So to fix this vmId issue for Edge Nodes, we need to edit the DeploymentUnitInstance and EdgeNodeExternalConfig in NSX Corfu DB tables.
Steps to be done:
1) Login to NSX Manager UI . Start a backup by
going to the NSX Manager UI System > Lifecycle Management > Backup and
Restore and click on the START BACKUP button.
2) Log into any of NSX Manager node's CLI using the admin and switch to root account and stop the
corfu service using the following command:
/etc/init.d/corfu-server stop
3) Stop the proton
service
/etc/init.d/proton stop
4) Start the corfu
service
/etc/init.d/corfu-server start
5) Execute the
following DB commands to make the changes in DeploymentUnitInstance and EdgeNodeExternalConfig tables on the Corfu DB one by one.
First run the below command to udpate the DeploymentUnitInstance table in corfu DB.
corfu_tool_runner.py -t DeploymentUnitInstance -n nsx -o editTable --keyToEdit '{"uuid": { "left": "12448448404996573115", "right": "10430903042528069173" } }' --newRecord '{"managedResource":{"displayName":"acc1c5de-a099-47bb-90c2-030d486d4635"},"deploymentUnitId":{"uuid":{"left":"4178938188179001301","right":"9995961568062954963"} },"deploymentProgressState":"DEPLOYMENT_PROGRESS_STATE_DEPLOYMENT_SUCCESSFUL","deploymentGoalState":"DEPLOYMENT_GOAL_STATE_ENABLED","runningVersion":"2.5.1.0.0.15314297","errorMessage":"","entityId":vm-654, "uniqueVmExternalId":5015a23f-8cf3-e793-f662-ccb098105a98, "vcDeploymentConfig":{"baseDeploymentConfiguration":{"name":"nsxedg001","computeManagerId":"3070d243-6fae-4487-8e38-4262b9c11785"},"dataStore":"datastore-76","cluster":"domain-c47","memoryReservation":-1,"cpuReservation":-1,"cpuShares":-1,"hostId":"host-106"} }'
Now, run the below command to udpate the EdgeNodeExternalConfig table in corfu DB.
/opt/vmware/bin/corfu_tool_runner.py -t EdgeNodeExternalConfig -n nsx -o editTable --keyToEdit '{"stringId": "/infra/sites/default/enforcement-points/default/edge-transport-node/db86d51c-1a54-408c-9ad0-415613bfd2b1"}' --newRecord '{"managementIp":[{"ipAddress":[{"ipv4":169673490}],"prefixLength":24}],"vmId":{"stringId":"5015a23f-8cf3-e793-f662-ccb098105a98"},"deploymentType":"VIRTUAL_MACHINE","cpu":4,"memory":7962812,"hypervisor":"VMware","managementInterface":"eth0","maintenanceMode":"MAINTENANCE_MODE_DISABLED","searchString":"biosUuid:42153f0f-4783-cc05-1161-f2da9c30c578;macAddress:00:50:56:95:bd:59","pnic":[{"name":"fp-eth2","mac":"00:50:56:95:1d:6f"},{"name":"fp-eth1","mac":"00:50:56:95:5f:ee"},{"name":"fp-eth0","mac":"00:50:56:95:2a:ff"}],"prevPnic":[{"name":"fp-eth2","mac":"00:50:56:95:1d:6f"},{"name":"fp-eth1","mac":"00:50:56:95:5f:ee"},{"name":"fp-eth0","mac":"00:50:56:95:2a:ff"}],"enableSsh":true,"hostname":"nsxedg001.abc.com","ntpServer":["10.89.50.151","10.89.50.102"],"dnsServer":["10.90.22.151","10.90.22.102"],"qatConfig":{"isVm":true,"fipsCompliant":true},"syslogServer":[{"server":"10.35.1.110","port":514,"protocol":"SYSLOG_PROTOCOL_ENUM_UDP","logLevel":"SYSLOG_LEVEL_ENUM_INFO"}]}'
Please note: Please change the details in above commands as per your environment and Node details.
Once the abpve stpes competed successfully, please re-run the pre-checks and vmId warning should be fix. If not then, reboot the NSX managers one by one and then re-run the pre-checks and see.
Note:- the above procedure is critical as we are making the changes in corfu DB. Please take help from VMware support if you are not 100% confident and sure to do this.
Comments
Post a Comment