Error : "Permission to perform this operation was denied" when deploying OVF via vCenter Server
search cancel

Error : "Permission to perform this operation was denied" when deploying OVF via vCenter Server

book

Article ID: 316453

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • Deployment of OVF templates fails from the vCenter Server UI, presenting the following error in the deployment wizard:
    "Provider method implementation threw unexpected exception. %s VapiStructureProxy.cause Permission to perform this operation was denied."
  • The deployment fails when using either an Active Directory (AD) or a local SSO administrator account.
  • Deploying the same OVF directly via the ESXi Host Client or OVF Tool completes successfully.
  • Virtual Machine exports complete successfully and there are no timeouts observed or stale entries under the cl_vcenter_task database table.
  • The vCenter Server date and time are configured correctly.
  • In the vCenter Server under /varlog/vmware/content-library/cls.log the following errors are found:

    YYYY-MM-DDTHH:MM:SS | ERROR    | SelectResourcePageMediator-validate-#######-ngc:70089529-76-6f | cls-simple-activity-4     | IntermediateResultListener     | Activity threw exception.com.vmware.vapi.std.errors.Unauthorized: Unauthorized (com.vmware.vapi.std.errors.unauthorized) => {messages = [LocalizableMessage (com.vmware.vapi.std.localizable_message) => {id = com.vmware.vapi.authorization.permission.denied, defaultMessage = Permission to perform this operation was denied., args = []

  • In the vCenter Server under /var/log/vmare/vpxd/vpxd.log the following errors are found:

    YYYY-MM-DDTHH:MM:SS info vpxd[7F6ACD62A700] [Originator@6876 sub=vpxLro opID=SelectResourcePageMediator-validate-######-ngc:70######-##-##-##-##-##] [VpxLRO] -- FINISH lro-#######
    YYYY-MM-DDTHH:MM:SS info vpxd[7F6ACD62A700] [Originator@6876 sub=Default opID=SelectResourcePageMediator-validate-######-ngc:70######-##-##-##-##-##] [VpxLRO] -- ERROR lro-#######-- task-######-- vim.Task.setState: vim.fault.InvalidState:
    --> Result:
    --> (vim.fault.InvalidState) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>
    -->    msg = ""
    --> }
    --> Args:
    -->
    --> Arg state:
    --> "error"
    --> Arg result:
    -->
    --> Arg fault:
    --> (vim.fault.OvfImportFailed) {
    -->    faultCause = (vmodl.fault.SecurityError) {
    -->       faultCause = (vmodl.MethodFault) null,
    -->       faultMessage = (vmodl.LocalizableMessage) [
    -->          (vmodl.LocalizableMessage) {
    -->             key = "com.vmware.vapi.authorization.permission.denied",
    -->             arg = <unset>,
    -->             message = "Permission to perform this operation was denied."
    -->          }
    -->       ]
    -->       msg = "Permission to perform this operation was denied."
    -->    },
    -->    faultMessage = <unset>
    -->    msg = ""
    --> }

Environment

VMware vCenter Server 7.x

Cause

A required Solution User definition is missing under Global Permissions. This is a hard requirement as Content Library's permission hierarchy is under Global Permissions.

Resolution

Fix the missing permission by adding the following Solution Users under Global Permissions:

  1. Log into the vSphere Client.
  2. Navigate to Administration > Global Permissions.
  3. Click the Add (+) icon to create a new permission.
  4. Add the vpxd Solution User and assign it the appropriate permissions.
  5. Repeat the process to add the vpxd-extension Solution User

An example of this process can be seen in the screenshot below:

Additional Information