Failed to create service account due to errors : null
/var/log/cm-inventory/cm-inventory.log
, insufficient privileges are seen during the pre-deletion (or creation) of the service account, similar to:/var/log/cm-inventory/cm-inventory.log
, the error from the NSX UI can be seen, similar to:Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Upon registration of the vCenter with the option Create Service Account enabled, the NSX Manager will attempt to delete any existing service account with the expected name for the vCenter service account used by NSX, then create a fresh account. If the deletion fails because the service account doesn't already exist, then the fresh one is created. However, if the deletion fails due to a permission issue, then the registration is marked as failed.
To resolve this issue, please provide sufficient privileges to the account used for the vCenter registration, referring to the list of prerequisites in the product documentation to Add a Compute Manager.