Virtualization Is Life!
NSX Bytes: Host Preparation Errors Out or Doesn't Complete...Spins In Progress

NSX Bytes: Host Preparation Errors Out or Doesn't Complete...Spins In Progress

NSXbytes0I’ve had this situation happen a couple of times in production where NSX Host Preparation Install or Upgrade seems to hang forever without timing out and spinning the In Progress message…most recently in one of the Zettagrid Labs where we run NSX-v in #NestedESXi environments we had the exact issue and I decided (with the help of @santinidaniel) to get to the bottom of what could cause this process to spin without success. NSX_HostAgent_Bad_1 Looking at the Event Log in vCenter against the host you see the  error below as the job eventually fails against the host…but remains in progress in the Web Client. Restarting the NSX Manager, the Hosts or the Web Client services doesn’t stop the progress. To reset the NSX Web Client Status and stop it thinking that the VIB deployments are still in progress you need to kill the install job from the ESX Agent Manager (thanks @santinidaniel) and get the opportunity to Resolve/Uninstall the host modules again. Once you get past the spinning you will see a failure and you will get an error message similar as highlighted below: NSX_HostAgent_Bad_2 VIB module for agent is not installed on host (_VCNS_xxx_Cluster_VMware Network Fabri) This error is detailed in a couple of (https://communities.vmware.com/thread/496695?start=0&tstart=0) posts and in a VMwareKB (https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2053782). You can try and do a (http://www.virtualizationteam.com/network/vib-module-for-agent-is-not-installed-on-host-vshield-vxlan-service.html) however as the KB suggests the problem more than likely lies with Update Manager. In my specific case the Update Manager wasn’t happy with a recent (http://anthonyspiteri.net/dealing-with-a-revoked-vcenter-ssl-certificate/) and required a repair to allow the new SSL cert. NSX_HostAgent_Bad_3 Once Update Manager was sorted the Host Preparation Tasks went through without issue and we where on our way. Point and case here is that you should never forget about the supporting infrastructure…even in Nested Lab environments. Know your dependencies and requirements and ensure they are all in working order…can save you some headaches along the way.