CLI Upgrade of vCenter fails with error "Encountered error while fetching the vm object'"
search cancel

CLI Upgrade of vCenter fails with error "Encountered error while fetching the vm object'"

book

Article ID: 426310

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

The upgrade fails with errors in vcsa-cli-installer.log similar to:

Encountered error while fetching the vm object {0}
Traceback (most recent call last):   File "main.py", line 412, in <module>   File "main.py", line 383, in main   File
"/build/mts/release/bora-24909570/src/bora/install/vcsa-installer/vcsaCliInstaller/workflow_engine.py", line 333, in prepare_workflow   File
"/build/mts/release/bora-24909570/src/bora/install/vcsa-installer/vcsaCliInstaller/cli_tasks/common_utils/rdu_utils.py", line 196, in get_source_sso_port   File "/build/mts/release/bora-24909570/src/bora/install/vcsa-installer/vcsaCliInstaller/cli_tasks/common_utils/common_func.py", line 1052, in get_source_vm
AttributeError: 'NoneType' object has no attribute 'format'
Error message: 'NoneType' object has no attribute 'format'

 

Environment

vCenter 8.x

vCenter 9.x

Cause

The section in the upgrade json template for "managing_esxi_or_vc" is incorrect or referencing the wrong credentials.

Resolution

Update the "managing_esxi_or_vc" section to use the proper credentials for the vCenter or ESXi host that manages the source vCenter in the upgrade json template. 

  • For ESXi, this will be the root credentials
  • For vCenter, this will be [email protected]