vCenter Server Preupgrade check result error:
VMDir Replication between partners is not working.
Make sure vmdir service is reachable and started in partner nodes and this node before continuing.
# /usr/lib/vmware-vmdir/bin/vdcrepadmin -f showpartners -h localhost -u administrator -w 'Administrator_Password'
Server down
Running the VCF Diagnostic Tool for vSphere (VDT) shows failure in VMdir Functionality check as shown below.
VMdir Replication Checks
[FAIL] VMdir Partner Check
Traceback (most recent call last):
File "/check/vdt-2.2.5_09-10-2025/lib/vdt_formatter.py", line 339, in run_check
check_output = self.run(check, self.username, self.password)
File "/check/vdt-2.2.5_09-10-2025/lib/vdt_base.py", line 456, in run
return self.safe_execute(item, username, password)
File "/check/vdt-2.2.5_09-10-2025/lib/vdt_base.py", line 415, in safe_execute
return self.execute_with_timeout(params, username, password)
File "/check/vdt-2.2.5_09-10-2025/lib/vdt_base.py", line 260, in wrapper
result = func(*args, **kwargs)
File "/check/vdt-2.2.5_09-10-2025/lib/vdt_base.py", line 357, in execute_with_timeout
return self.execute(*args, **kwargs)
File "/check/vdt-2.2.5_09-10-2025/lib/vdt_base.py", line 385, in execute
return main_script(username=username, password=password)
File "/check/vdt-2.2.5_09-10-2025/vcenter/vc_scripts/vc_vmdir_check.py", line 198, in run_partner_check
checks = [x for x in [get_host_available(partner), get_host_changes(partner), get_port_check(partner)] if x]
File "/check/vdt-2.2.5_09-10-2025/vcenter/vc_scripts/vc_vmdir_check.py", line 119, in get_host_available
if partner_detail['Host available'] == "No" or partner_detail['Status available'] == "No":
KeyError: 'Host available'
vCenter Server 8.0
PNID configuration is incorrect, vCenter was possibly setup with IP address.
PNID update will need to be performed - How to update vCenter hostname to match PNID
Workaround: Update vCenter Hosts file to Point localhost.localdom to localhost
1. To edit the /etc/hosts file on a vCenter server or an ESXi host,
Login to SSH session for the ESXi host.
Login to SSH session for the vCenter server.
2. Type vi /etc/hosts and press Enter. Now you are in the vi text editor. You can move around using page up, page down, and the arrow keys.
3. Move down to the last line in the file.
4. Enter insert mode.
You can press i to start editing where the cursor is, you can also press shift+o to start editing on a new line above the cursor, or o to start editing on a new line below the cursor.
You see -- INSERT -- at the bottom of the vi window while you are in insert mode within vi.
5. Add the required entry in the below format.
127.0.0.1 localhost.localdom localhost
Note: The number pad on the keyboard does not work within vi by default. Use the numbers above the letters on your keyboard. You can use the arrow, backspace, and delete keys as well as enter text while in edit mode.
6. To quit and save changes press Esc, :, w, q, then press Enter.
If you decide you are not comfortable with the changes and want to quit without saving, press Esc, :, q, then press Enter. You do not have to press Esc, :, and q at the same time.