Error: "Licenses could not be assigned to vCenter", is seen during license assignment on VVF 9.1 after updating administrator@vsphere.local password
search cancel

Error: "Licenses could not be assigned to vCenter", is seen during license assignment on VVF 9.1 after updating [email protected] password

book

Article ID: 441499

calendar_today

Updated On:

Products

VMware vSphere Foundation

Issue/Introduction

  • Assigning a license(s) to vCenter 9.1 fails with error of ""License(s) could not be assigned to the selected vCenter"

  • Viewing the /storage/log/vcops/log/collector.log in the VCF Operations appliance may show the following error:
    ERROR collector 6458 [ops@4413 threadId="3749" threadName="vcf-licensing-assign-4"] [(54) com.vmware.adapter.management.components.licensing.vcf.collector.VCenterLicenseUsageCollector.getVcManagedStatus] - Failed to perform managed check on License Manager for VC <VC ID> at <VC FQDN> com.vmware.vim.binding.vim.fault.InvalidLogin: Cannot complete login due to an incorrect user name or password.

  • Alert shown for "Adapter instance Object is down" as seen in Operate > Alerts:

Environment

  • VMware vSphere Foundation 9.1

Cause

The [email protected] password was changed without updating the integration credentials.  This causes the connection to vCenter from VCF Operations to error and prevents license assignment.

Resolution

1. Update the password for the integration of vCenter and then restart collection on the object.

  1. Navigate to Operate > Administration > Integrations.
  2. Click the Credentials button. 
  3. Click the 3 dots next to the VC-Credential-1 for <FQDN>, which has a credential kind of "Principal Credential", and select Edit.
  4. In the Manage Credential screen, enter the correct/updated password for the [email protected] user.
  5. Click OK to save the credential change.

2. Restart collecting for vCenter object.

  1. Go back to Integrations (Operate > Administration > Integrations)
  2. Expand vCenter Object
  3. Click 3 dots, and select Stop collecting All.  Wait for it to stop collecting, it can take a few minutes.
  4. Click 3 dots and select Start Collecting All.  Wait for it to finish start collecting.  It should now show green status.

3. Assign the license to vCenter.

  1. In VCF Operations, navigate to Manage > Licensing > Licenses & Registration.
  2. Scroll to vCenter Systems section at bottom and click checkbox next to vCenter FQDN/Name, then click Assign Primary License button.
  3. Wait for the process to complete, license should now be assigned.