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
vmware_guest - Can't provision to datacenter inside a folder #22713
Comments
@dsears have you tried changing the line just to test if it would work?
to
Not the permanent solution, but I would like to know if the rest of the code would succeed after that. needs_info |
@dsears This issue is waiting for your response. Please respond or the issue will be closed. |
Not totally sure. It gets farther and then fails with a permission denied on the clone operation:
Partial playbook:
So it's at least finding the VM, and my user is definitely able to clone things both through the UI and through pyvmomi. Not sure if the error is related to the folder issue or if I have some other input that is wrong/missing. |
@dsears Could you please paste output of govc find / ? I tried to reproduce your setup. Does it look similar to yours ?
|
I think my PR #30826 would fix this. |
@dsears Could you please re-try with latest or 2.4.2.0 version and let me know if it works for you ? needs_info |
@dsears You have not responded to information requests in this issue so we will assume it no longer affects you. If you are still interested in this, please create a new issue with the requested information. |
@dsears This issue is waiting for your response. Please respond or the issue will be closed. |
Closing this issue as this functionality works in current version. If issue persists, please feel free to re-open. |
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Red Hat Enterprise Linux Server release 6.8 (Santiago)
SUMMARY
A VM folder cannot be targeted when its parent datacenter is inside a folder.
STEPS TO REPRODUCE
My vCenter has uses location-based folders to contain datacenters. A valid path to pyvmomi's FindByInventoryPath might be:
MyCity/MyDatacenter/vm/MyVmFolder
However, looks like vmware_guest calls FindByInventoryPath with just the datacenter name:
This configuration finds the datacenter but not the folder:
This configuration fails to find the datacenter:
EXPECTED RESULTS
Datacenter/folder combination are addressable.
ACTUAL RESULTS
Either folder is not found or datacenter is not found. Not clear if there is any workable way to address the datacenter/folder combination.
The text was updated successfully, but these errors were encountered: