Workload Domain/Cluster creation or ESXi host addition workflow failures for hosts with eui disk type
search cancel

Workload Domain/Cluster creation or ESXi host addition workflow failures for hosts with eui disk type

book

Article ID: 316631

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:

Some of these below mentioned symptoms can occur (if not all):

Workflow failure with following logs from domain manager service of SDDC manager. The domain manager logs can be found at (/var/log/vmware/vcf/domainmanager/domainmanager.log)

2022-11-21T17:11:28.525+0000 ERROR [vcf_dm,7ecdee40267a414a,ee56] [c.v.e.s.c.h.i.HostPreparationServiceImpl,dm-exec-17]  Failed to configure disks on esxi.domain.com. Error: Error when executing 'Mark SSD disks as capacity on ESXi server esxi.domain.com' - exit code 1.
com.vmware.evo.sddc.common.util.command.CommandExecuterException: Error when executing 'Mark SSD disks as capacity on ESXi server esxi.domain.com' - exit code 1.
        at com.vmware.evo.sddc.common.util.command.CommandResult.validateSuccess(CommandResult.java:139)
        at com.vmware.evo.sddc.common.util.command.CommandResult.validateSuccess(CommandResult.java:111)
        at com.vmware.evo.sddc.common.hostservices.impl.HostPreparationServiceImpl.configureDisks(HostPreparationServiceImpl.java:198) ....

     
Checking the output of vdq -vq from the logs:

2022-11-21T17:11:24.676+0000 DEBUG [vcf_dm,7ecdee40267a414a,ee56] [c.v.evo.sddc.common.util.SshUtil,dm-exec-17]  The command [ vdq -q ] executed on host. Status: 0, Timed out: false
Output: [
   {
      "Name"     : "eui.3643533052b026420025384500000002",
      "VSANUUID" : "",
      "State"    : "Eligible for use by VSAN",
      "Reason"   : "None",
      "IsSSD"    : "1",
"IsCapacityFlash": "0",
      "IsPDL"    : "0",
      "Size(MB)" : "1831420",
    "FormatType" : "512e",
   "IsVsanDirectDisk" : "0"
   },  ...

Environment

VMware Cloud Foundation 3.x
VMware Cloud Foundation 4.x

Cause

Disks of type EUI were discarded while tagging the host disks as capacity type.

Resolution

This issue is fixed in the VCF 5.x release.

Workaround:

To workaround the issue, please follow the below mentioned steps:

Download the attached capacity-disk-tagging.tar.gz. Execute the below steps and then restart the failed workflow. These steps can be executed even before starting workflow so that the above failures will not be seen during execution of workflow.

  1. Extract the tar file in a machine which has connectivity to all the required hosts. capacityflashtaghost.py  part of the package will take care of running the capacityflash.py (Modified one also is part of the package) on the required hosts.

tar xvf capacity-disk-tagging.tar.gz

  1. Fill in the details of hosts in hosts.json (part of the package).SSH must be enabled in these hosts.
  2. Please make sure python 3 is installed in the machine where this package is copied. As the script makes use of paramiko, scp, SCPClient packages,  install these additional packages through pip command.

pip-3 install paramiko
pip-3 install SCPClient
pip-3 install scp

  1. Once the dependencies are installed run the below command:

python3 /tmp/capacity-disk-tagging/capacityflashtaghost.py

 

Attachments

capacity-disk-tagging.tar get_app