Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoPermission error while trying to set encryption policy with administrator user #724

Open
deepaliamali opened this issue Jun 20, 2023 · 0 comments
Labels

Comments

@deepaliamali
Copy link

deepaliamali commented Jun 20, 2023

Describe the bug

I'm trying to set default encryption policy "VM Encryption Policy" to a VM using community sample script. The script completes without any issues.
On vCenter UI I see the error "Permission to perform this operation was denied. NoPermission.message.format"
I can set the other storage policies correctly to the VM where encryption is not involved.
I can perform the same operations using powerCLI scripts with the same user.
the pyvmomi library I'm using in on Python2 and is of version : 6.7.1

I was not able to get the information related to the mentioned error in vCenter logs. Can someone
point me to correct direction for the logs and possible reason of this issue.

Screenshot 2023-06-20 at 2 27 44 PM

Update

Issue still persists With python3 and pyvmomi version being 8.0.0.1.2

Reproduction steps

  1. Connected to vCenter server.
  2. Got the vm object I wanted to set encryption policy for.
  3. set storage policy for the VM with ReconfigVM_Task on VirtualMachine Managed Object.

Expected behavior

Encryption policy should be applied to VM.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant