Post-upgrade of ESXi host,
/var/run/log/hostd.logHostd[<TID>]: [Originator@6876 sub=Hostsvc.NetworkProvider] DVPort ## on dvs ## ## ## ## ## ## ## not found.Hostd[<TID>]: [Originator@6876 sub=Libs] info [ConfigStore:3e98e02e00] [cs:1:3282982XX]CancelTransaction invoked.Hostd[<TID>]: [Originator@6876 sub=Default] error: N3Vim5Fault8NotFound9ExceptionE(Fault cause: vim.fault.NotFoundHostd[<TID>]: [Originator@6876 sub=Hostsvc.NetworkProvider] DVPort ## on dvs ## ## ## ## ## ## ## not foundHostd[<TID>]: [Originator@6876 sub=Hostsvc.NetworkProvider] DVPort ## on dvs ## ## ## ## ## ## ## not foundHostd[<TID>]: error -[2109312] [Originator@6876 sub=VMOMI-FSS] Unknown feature 'VMODL_LIFECYCLE'. ASSUMING DISABLEDHostd[<TID>]: [Originator@6876 sub=Libs] error [ConfigStore:2d49e81e00] [1046] Not a non-singleton object: key browsable_console_dirHostd[<TID>]: [Originator@6876 sub=Libs] info [ConfigStore:2d49e81e00] ConfigStoreException: [context]zKq7AVICAgAAAP////8LY29uZmlnc3RvcmUAANPSAmxpYmNvbmZpZ3N0b3JlLnNvAAAI1AMAdlwDAaZwAmxpYnZpbWNvbmZpZ3N0b3JlLnNvAAHDwwMBWF8BAmBCXWhvc3RkAAKJeF0CGhdSAx00AmxpYmMuc28uNgACNdhT[/context]Hostd[<TID>]: [Originator@6876 sub=Libs] error [ConfigStore:2d49e81e00] [1046] Not a non-singleton object: key default_config_pathHostd[<TID>]: [Originator@6876 sub=Libs] info [ConfigStore:2d49e81e00] ConfigStoreException: [context]zKq7AVICAgAAAP////8LY29uZmlnc3RvcmUAANPSAmxpYmNvbmZpZ3N0b3JlLnNvAAAI1AMAdlwDAaZwAmxpYnZpbWNvbmZpZ3N0b3JlLnNvAAHDwwMBWF8BAmBCXWhvc3RkAAKJeF0CGhdSAx00AmxpYmMuc28uNgACNdhT[/context]hostd service fails to start after an upgrade due to a DVS configuration mismatch.Follow below steps to identify and fix the invalid configuration in ESXi Config Store. These steps can be also followed to confirm if there is a mismatch before performing the ESXi upgrade :
esxcfg-vswitch -lDVS Name Num Ports Used Ports Configured Ports MTU Uplinks DvS_xxxx 9216 9 512 1600 vmnic1,vmnic0 DVPort ID In Use Client 96 0 97 0 5 1 vmk0 122 1 vmk1 181 1 vmnic1 180 1 vmnic0
configstorecli config current get -c esx -g network_vds -k switch_solutions
[ { "configured_max_ports": 512, "lags": [ { "lag_id": "xxxxxx" } ], "name": "DvS_xxxx", "portset_name": "DvsPortset-xx", "product": { "forwarding_class": "cswitch" }, "uplinks": [ { "connection_cookie": 0, "nic": "vmnic3", "uplink_port_key": "99" }, { "connection_cookie": 0, "nic": "vmnic2", "uplink_port_key": "98" }, { "connection_cookie": 0, "nic": "vmnic0", "uplink_port_key": "180" }, { "connection_cookie": 0, "nic": "vmnic1", "uplink_port_key": "181" } ], "uuid": "xxxxxxxxxxxxxxxxxxxx" }]
uplink_port_key in the second command are shown in the first command(DVPort ID).
CorrectUplinkPortKey.py) by modifying the fields (VDS_NAME and PORT_KEY_MAP)Example:VDS_NAME = "DvS_XXXX"PORT_KEY_MAP = [("98","96"), ("99","97")] Note:(98 and 99 are mapped with unused ports in the first command output)
/etc/vmware/configstore/current-store-1Update port key from 98 to 96Update port key from 99 to 97Successfully updated the port keys
configstorecli config current get -c esx -g network_vds -k switch_solutions/etc/init.d/hostd start