Disabling Witness Host Upgrade in VCF SDDC Manager and vCenter
search cancel

Disabling Witness Host Upgrade in VCF SDDC Manager and vCenter

book

Article ID: 426286

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware vCenter Server

Issue/Introduction

When performing a stretched cluster upgrade via VCF SDDC Manager, the ESX stretched cluster upgrade workflow may fail or become blocked due to issues specifically related to the Witness Host.

Common scenarios include:

  • Use case 1: A Witness Host upgrade fails within vCenter, which subsequently blocks the entire ESXi cluster upgrade progress.
  • Use case 2: Unexpected failures occur during the VCF ESXi cluster upgrade workflow that are traced back to Witness Host compatibility or connectivity.

Environment

VCF SDDC Manager: 9.0, 9.1
VMware vCenter Server: 9.0, 9.1

Cause

SDDC Manager is programmed to include a virtual appliance-based VSAN witness hosts in the automated upgrade orchestration.

If the Witness host is not in a Ready state or encounters a manual failure, the SDDC Manager may fail the upgrade, blocking upgrade of the data host from proceeding.

Resolution

To bypass the Witness host, and proceed with the data node upgrade, you must configure feature flags in both SDDC Manager and vCenter. Use the matrix below to determine the required flags based on your version.

When this property is enabled, the Witness Host will be excluded, allowing the physical ESXi hosts to upgrade successfully.

 

SDDC Manager VersionvCenter VersionSDDC Manager FlagvCenter Flag
9.0<9.1lcm.vsan.witness.host.upgrade.disable=trueNot Required
9.1<9.1lcm.vsan.witness.host.upgrade.disable=trueNot Required
9.1>=9.1lcm.vsan.witness.host.upgrade.disable=trueSkipWitnessForSelectiveHostOps=true

Procedure:

To disable the witness host from upgrade, follow the steps below:

Configure SDDC Manager Feature Flag
  1. SSH into the SDDC Manager appliance using the vcf user and switch to root using the su command.

  2. Navigate to the configuration directory and edit the application-prod.properties file:

     
    vi /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties
  3. Add or update the following configuration property to true:

     
    lcm.vsan.witness.host.upgrade.disable=true
  4. Save and close the file.
  5. Restart the SDDC Manager LCM service to apply the changes:

     
    systemctl restart lcm
Configure vCenter Server Feature Flag (Required for vCenter 9.1)
  1. Log in to the vCenter Server Appliance (VCSA) via SSH as root.

  2. Back up and edit the Update Manager configuration file: 

    1.  
      cp /usr/lib/vmware-updatemgr/bin/vci-integrity.xml /usr/lib/vmware-updatemgr/bin/vci-integrity.xml.bak vi /usr/lib/vmware-updatemgr/bin/vci-integrity.xml
  3. Locate the <VsanWitness> section and add the skip tag as shown below:

    1. vci-integrity.xml
       
      <VsanWitness> <SkipWitnessForSelectiveHostOps>true</SkipWitnessForSelectiveHostOps> </VsanWitness>
  4. Save and exit the editor.
  5. Restart the VMware updatemgr service:

    1.  
      service-control --restart vmware-updatemgr
Post-Upgrade Note

Once the cluster upgrade is successfully completed, it is highly recommended to revert these settings to false and restart the respective services. This ensures that the Witness host is included in future lifecycle management activities and stays compliant with the rest of the cluster.