[email protected] fails in VVF 9.1 environment./var/log/vmware/vpxd-svcs/authz-event.logYYYY-MM-DDTHH:MM:SS.###Z INFO vpxd-svcs-authz-event ### [vc@#### threadName="authz-service-0" logger="AuthorizationService.AuditLog" opId="#####"] Action performed by principal(name=VSPHERE.LOCAL\serviceaccountmgmt-#######-####-####-####-#######,isGroup=false):Remove global access for [ Name=VSPHERE.LOCAL\Administrator,isGroup=false ]
/var/log/vmware/vpxd/vpxd.logYYYY-MM-DDTHH:MM:SS.###Z INFO vpxd ##### [vc@#### sub="Authorize" opId="#####"] Skip event on permission removed by other service for User: VSPHERE.LOCAL\Administrator, Object: group-##YYYY-MM-DDTHH:MM:SS.###Z INFO vpxd ##### [vc@#### sub="PermissionsImpl" opId="#####"] [Delete] Successfully deleted global permission: GlobalAcl:######-####-####-####-#####
vCenter 9.1
VMware vSphere Foundation 9.1
A software defect causes the LCM service to persist vCenter administrator (e.g. [email protected]) account rather than persisting a dedicated Service Account. LCM persisted Service Accounts undergo rotation every 25 days, and during this rotation workflow the LCM service attempts to delete the persisted vCenter administrator account. vCenter administrator account is a built-in default account and cannot be deleted, but the deletion attempt renders the account to become unusable for logins.
Recreate the missing Administrator permissions by executing the attached script.
python repair_admin_groups_and_perms.py -p 'SSO Administrator Password'Reading credentials from lwregshell ...
dcAccountDN : cn=vcenter.example.com,ou=Domain Controllers,dc=vsphere,dc=local
domain DN : dc=vsphere,dc=local
DC name : vcenter.example.com
admin DN : cn=Administrator,cn=Users,dc=vsphere,dc=local
OK cn=Users,cn=Builtin,dc=vsphere,dc=local
OK cn=Administrators,cn=Builtin,dc=vsphere,dc=local
OK cn=CAAdmins,cn=Builtin,dc=vsphere,dc=local
OK CN=SystemConfiguration.Administrators,dc=vsphere,dc=local
OK CN=SystemConfiguration.BashShellAdministrators,dc=vsphere,dc=local
OK CN=SystemConfiguration.ReadOnly,dc=vsphere,dc=local
OK CN=SystemConfiguration.SupportUsers,dc=vsphere,dc=local
Groups: added=7 skipped=0 failed=0
Scanning svcaccountmgmt.log for deleted Administrator permissions ...
Found 2 deleted permission(s):
Folder:#######-####-####-####-###########
GlobalAcl:#######-####-####-####-###########
Connecting to vCenter REST API as [email protected] ...
OK Inventory (group-d1)
OK Global ACL
Permissions: restored=2 skipped=0 failed=0
Done.[email protected], refer Change Your vCenter Single Sign-On Password for more details.