VCF SDDC Manager upgrade to 4.5 fails and upgrade pre-checks fail with "sudo" permissions issue.
/opt/vmware/vcf/lcm/lcm-debug.log has following error:
"sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?"
The issue happens because Common Appliance Platform (CAP) and Non-CAP based SDDC manager upgrades are interleaved in following manner:
If upgrade to 4.5 fails and then a successful upgrade to 4.4.1.1 has been done, there is a chance that "alt-root" and "lvm-snapshot" disks exist on the system and have "nosuid,nodev" mount options set. In this case open /etc/fstab file as "root" and update the mount options. Please follow the below mentioned steps to update the mount options:
Open /etc/fstab as "root".
The options will be as mentioned below:
UUID=051c8c3a-f2e3-4523-98b1-e8ece2f621ee / ext4 ,nosuid,nodev
UUID=74c9842b-9abe-4d09-8023-d310cbd54275 /storage/lvm_snapshot ext4 ,nosuid,nodev
Change it to:
UUID=051c8c3a-f2e3-4523-98b1-e8ece2f621ee / ext4 defaults 1 1
UUID=74c9842b-9abe-4d09-8023-d310cbd54275 /storage/lvm_snapshot ext4 defaults 1 1
Save and close the file.
Run "findmnt --verify" to check for correctness of the changes done.
Reboot SDDC manager.