-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
Cannot set network using vmware_guest module #50656
Comments
Files identified in the description: If these files are inaccurate, please update the |
@lottspot, just so you are aware we have a dedicated Working Group for vmware. |
I am facing the same issue. ansible 2.7.5 |
Hi @lottspot |
It really was that simple... thanks for pointing that out @piequi! Works for me now |
SUMMARY
When attempting to set the VM network using the vmware_guest module, we are receiving an error telling us the network does not exist, despite the fact that a dump of the existing portgroups on the ESXi server the VM is placed on shows that it does in fact exist. This error occurs whether the NIC already exists on the VM or not, and whether or not it is set to connected.
Not sure if there is possibly something we are doing incorrectly in trying to create/set the network for the NIC, but it seemed like our use of the module was consistent with the documentation so we're hoping you can point us in the right direction :)
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
controller: MacOS High Sierra v10.13.6
target: VMWare vSphere Version 6.5.0.10000 Build 5973321
STEPS TO REPRODUCE
Run playbook below, using environment variables
VMWARE_HOST
,VMWARE_USER
, andVMWARE_PASSWORD
to set correct credentials, change playbook variables to be relevant to test environmentEXPECTED RESULTS
Setup the VM NIC
ACTUAL RESULTS
Get an error about the network not existing
Info for VM used for this test from the vCenter:
The text was updated successfully, but these errors were encountered: