During a recent upgrade of VCF 4.1 to 18.104.22.168 and then on to 4.2, I found myself in a bit of an unsupported situation due to the use of a build that was not part of the VCF 4.2 Bill Of Materials (BOM).
Symptom: SDDC Manager 4.2.0 will not apply the 4.2 update to the ESXi hosts even though the Update 22.214.171.124 bundle for VMware ESXi 7.0 Update 1d has already been downloaded.
I am new to VCF and using SDDC Manager. My team uses a lab environment that will started up by deploying VCF 4.0 a while back. When it came time to upgrade to 4.1, the upgrade of the ESXi hosts kept failing. It took a bit to realize that we needed the Custom ISO image for our DellEMC hosts (R640). Once we realized this, we went to the VMware Downloads site and located the 7.0 U1 custom image since that is what VCF 4.1 was targeting.
As per the documentation, I connected to the SDDC Manager via SSH and created the appropriate configuration json file (/nfs/vmware/vcf/nfs-mount/esx-custom-image-upgrade-spec.json), put in the build numbers, and uploaded the custom ISO image to the server. I went back to the SDDC Manager and the upgrade of the ESXi hosts went along very nicely. All is good now, right? …. Wrong!
At the time of my work, and all of the experience leading up to this blog post, there was no clear statement that you MUST use the exact build number for a product as what is shown in the BOM. Like many others, I wrongly assumed that ESXi 7.0 U1 custom image from the official download page must be correct… I actually needed build 16850804!
Another reason that people may apply an updated ISO that does not match the BOM: Vendor instructions. During my troubleshooting and documenting of this issue, I ran across a colleague who was experiencing the same issue - but in his case, it was not the DellEMC Custom image, but another hardware vendor’s image that had been recommended to upgrade due to some other important patches that were in the build that was applied.
Incorrect Build effects
If the SDDC Manager bundle shows a specific version, but the host is running a newer build than what is specified in the bundle, SDDC Manager will not show the upgrade as applicable. Instead, the upgrade bundle (if manually downloaded) will immediately move to the “Download History” tab of Bundle Management in the SDDC Manager. This can happen when you apply an incorrect build number to your ESXi hosts (IE: Download a vendor specific build from VMware or other site that does not exactly match the build number in the VCF BOM). In my case, when I upgraded from VCF 4.1 to 126.96.36.199, I found the ESXi 7.0 Update 1 Custom DellEMC ISO that I needed from the official VMware downloads site and used it for the upgrade.
Trouble upgrading to VCF 4.2
My upgrade from VCF 4.1 to 188.8.131.52 went fine because there was not an updated ESXi build as part of that update… However, when it came time to upgrade to ESXi 7.0 Update 1d, I ran into a bit of an issue. Even though the bundle had been downloaded for the newer version of ESXi, the clusters continued to show as Up-to-date and the updated Bundle I had downloaded went to the Download History tab!?
Ok, so now I have an environment that is stuck between VCF 184.108.40.206 and VCF 4.2, with the ESXi hosts being the remaining upgrade needed - but the SDDC Manager is not cooperating.
I reached out for assistance and recommendations internally. The first responses were essentially:
I was not too thrilled about the idea of rolling back all the servers across multiple clusters in order to get SDDC Manager to work. There must be a better way! Something less obstructive. So I continued to reach out to contacts. While discussing the possibility of modifying config files with a colleague, I began exploring the filesystem on the SDDC Manager and came up with a solution that did NOT require rolling back all my servers or doing any reinstalls!
To work-around this, the manifest bundle definition file for the ESXi host can be modified to change the “bundleElementPreviousVersion” to the version that the hosts are actually running.
Step 1: Identify Bundle ID
Identify the Bundle ID. Open SDDC Manager and view the details of the Bundle, locate the Bundle ID.
Step 2: Locate Manifest file
Locate the relevant bundle folder on the SDDC Manager file system and change into the manifest subdirectory:
Step 3: Edit the Manifest
Open the file and locate the line with “bundleElementPreviosVersion”. The file will initially show the correct supported previous version of “7.0.1-16850804”. In the snippet shown below, I have already modified line number 21 to reflect the “VCF Unsupported” build of ESXi 7.0 U1 that my hosts are running.
Step 4: Restart LCM Service
After modifying the manifest file, you must restart lcm service in order for your modified manifest definition to take effect.
Step 5: Proceed with Upgrade
Now, revisit your clusters in SDDC Manager and hopefully you’ll see the Update/Patches showing the Bundle ready!
This allowed me to proceed with the upgrade across my clusters. They all upgraded successfully so now my entire VCF Managed environment is at the proper build numbers for 4.2.0 BOM.