Service Account showing disconnected in SDDC Manager on 12/31/69:
VMware Cloud Foundation 9.x
Issue is cosmetic with vCenter reporting incorrect password validity.
This issue is fixed in VCF 9.1.2 and on VCF 5.2.5
psql -h localhost -U postgres \c operationsmanagerselect * from passwordmanager.credential_expiry where resource_type='VCENTER';-----------------------------------------------------------------------------------------------
id | <id>
credential_id | <cred_id>
resource_fqdn | <vCenterFQDN>
username | <svcAccountUsername>
expiry_date | 1970-01-01 01:00:20.2330772. Change the expiry on the Account:
/usr/lib/vmware-vmafd/bin/dir-cli user modify --account svcAccountUsername --password-never-expiressvcAccountUsername do not include the domain name (ie. @vsphere.local).After modifying the password to never expire from vCenter using dir-cli, if the expiry date on the SDDC UI still reflects 1970-01-01, run the below commands to update the credential_expiry table from the database.
Note: Take a snapshot of the SDDC manager VM before you perform the update. The expiry_date value is taken as a reference from another resource type.
psql -U postgres -h localhost
\c operationsmanager
update passwordmanager.credential_expiry set expiry_date='2299-01-01 01:00:20.233077' where id='<id>';
Note: If the changes are not apparent in the UI (e.g., VC vSphere client, SDDC manager UI) it may be due to requiring synchronization.
If desired you can also manually trigger the password expiry from the SDDC Manager API Explorer.
Log in to SDDC Manager UI.
Navigate to Developer Center -> API Explorer -> Credentials -> POST /vi/credentials/expirations (Reference: Get Password Expiration).
Under the Value for body enter the below:{ "credentialIds": [ "" ], "domainName": "", "resourceType":"VCENTER" }