Brownfield import precheck failed with error: "Could not generate a token from SDDC Manager"
search cancel

Brownfield import precheck failed with error: "Could not generate a token from SDDC Manager"

book

Article ID: 394313

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

 After installing SDDC appliance, when you proceed with the brownfield import script for precheck, it is failing with the following error:

vcf [ ~/vcf-import-package/vcf-brownfield-import-<vcf version>-<vcf build>/vcf-brownfield-toolset ]$ python3 vcf_brownfield. py check -- vcenter <VCSA FQDN> -- sso-user
[email protected]

[yyyy-mm-dd hh:mm:ss, 107] [INFO] vcf_brownfield: Brownfield Import main version: <vcf version>-<vcf build>

[yyyy-mm-dd hh:mm:ss, 107] [INFO] vcf brownfield: Please make sure you are always using the latest version of the scripts

Enter vCenter sso password:

Enter SDDC Manager local admin password:

[yyyy-mm-dd hh:mm:ss, ###] [INFO] sddc_manager_helper: Generating SDDC Manager public API token

[yyyy-mm-dd hh:mm:ss, ###] [ERROR] request helper: Result status code from SDDC Manager token generation: 401

[yyyy-mm-dd hh:mm:ss, ###] [CRITICAL] vcf brownfield: Fatal exception: ("Could not generate a token from SDDC Manager. Please review ' /var/log/vmware/vcf/commonsvcs/vcf-commonsvcs. log' for further details. ", )

Traceback (most recent call last) :

File "/home/vcf/vcf-import-package/vcf-brownfield-import-<vcf version>-<vcf build>/vcf-brownfield-toolset/vcf_brownfield.py", line 733, in <module>

main ()


File "/home/vcf/vcf-import-package/vcf-brownfield-import-<vcf version>-<vcf build>/vcf-brownfield-toolset/api/request_helper.py", line 38, in wrapper

return func(*args, ** kwargs)

File "/home/vcf/vcf-import-package/vcf-brownfield-import-<vcf version>-<vcf build>/vcf-brownfield-toolset/api/sddc_manager/sddc_manager_helper.py", line 397, in generate_token

raise SddcManagerApiException (ErrorMessages. COULD_NOT_GENERATE_SDDC MANAGER TOKEN)

common. common_exceptions. SddcManagerApiException: Could not generate a token from SDDC Manager. Please review '/var/log/vmware/vcf/commonsvcs/vcf-commonsvcs. log' for further details.

Environment

VMware Cloud Foundation 5.x

Cause

The issue is caused by the same special characters repeated in the passwords of the following users:

  • Root

  • Admin

  • vcf

  • backup user

  • local user

Resolution

Make sure the user passwords do not have the same special character repeated.

Example:

root VMware@123$4568
vcf  P@ssw0rd1!P@ssw0rd1!
admin VMware@123$4565
backup user VMware@123$4569
local admin VMware@123$4564