Open markfaine opened 1 year ago
I confirm the issue.
I have a user dedicated to provisionning VM into a folder only. This works without problem when the action of creating a VM from a template is done from the vCenter WebUI. With the same user account, when the same action is done through ansible "community.vmware.vmware_guest" call, I get an permission error.
If I call the same ansible task with another user with more privileges it works.
regardddddddddd
Has anyone made any progress with this, it's been 4 months since I posted this and it's not even assigned yet.
I've tested this issue again now to see if things have changed, and with version 4.0 it's still present.
Nothing has been done on this issue during the whole year.
Unfortunatelly this prevents us from automating the creation of our Openshift clusters since we can't tolerate our provisioning account to be admin.
There must be a bug in the community.vmware or in the vmware Python SDK. If only we could know the exact privileges that are required. I can't decently ask our VMWare administrator for a service account with full admin privileges.
Provisioning from a template using the WebUI or the PowerCli module is working. Deleting a VM is working as well, only the creation fails.
I wish I could help on that issue
@markfaine : my problem has been solved. I noticed that some permissions were missing in the end.
The user used to provision the machine had not enough access on the VMware PortGroups.
I've noticed this when I tried from the WebUI to add a network card on the VM, and I got a permission denied error.
So I'm not sure this is really an issue with the community.vmware module.
SUMMARY
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Playbook is using
community.vmware.vmware_guest
. The issue seems to be with thefolder
parameter. Additional permissions are required for the folder operation and are unknown to me. This works fine with admin permissions but not with a service account role. I need to know what are the missing permissions.Current permissions in vsphere for the vcenter user:
Play:
EXPECTED RESULTS
VM is created from a template.
ACTUAL RESULTS
Permission denied on the operation