-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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 Module raise err\nsocket.error: [Errno 111] Connection refused #28577
Comments
Fix updates logic of connection in vmware module_utils. Fixes: ansible#28577 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
resolved_by_pr #28586 |
Sorry, I am new to this whole github issue section. I have the following vmware.py scripts on my machine:
I believe i need to update #2. So would the fix be to upgrade or pull the vmware.py file located at https://github.com/Akasurde/ansible/blob/f2395ac21d1117c697922780ec869724c29ad3dd/lib/ansible/module_utils/vmware.py ? |
I added the following file to /usr/lib/python2.7/site-packages/ansible/module_utils/vmware.py and I get a different error now. Should I update all vmware.py scripts on the machine? },
"msg": "Unknown error connecting to vCenter or ESXi API at vcloud.scriptpro.com: [Errno 111] Connection refused"
} |
Okay, I got the firewall opened to allow http/https ports and that appears to get me passed the issue below. "msg": "Unknown error connecting to vCenter or ESXi API at vcloud.scriptpro.com: [Errno 111] Connection refused"
}. The network is being set which is great and I am able to login to the server via ssh. I did notice a few problems.
check_link_down() {
return 1;
} Also, my dns did not get setup correctly as I am not able to ping any servers. I have this set in my setip.yaml playbook. I would like for this to work but since I am able to ssh into the box now, I could simply copy a resolv.conf file there. |
The network configuration files are part of the VMware VM customizations. This has nothing to do with us, really. We cannot influence how VMware is doing this. But you are free to mofidy those files as you please with Ansible. Your DNS is also part of the VM customizations. I wonder what you put in there, it should be a list of servers (not a string of servers). The examples are quite clear on that, di you look at the documentation ? |
Yes , I did see the documentation and that's how i originally had it set. I will try it like that again. networks:
- name: VM Network
ip: 192.168.1.100
netmask: 255.255.255.0
gateway: 192.168.1.1
mac: 'aa:bb:dd:aa:00:14'
domain: my_domain
dns_servers:
- 192.168.1.1
- 192.168.1.2 Thanks, |
I tried with the following example and the dns is still not being set. When you mentioned modifying VMware VM customizations files were you referring to the vmware.py script? |
Fix updates logic of connection in vmware module_utils. Fixes: #28577 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@rewilliamso No, the VMware VM customizations is something VMware wrote to provision various supported operating systems (Linux, Windows, etc...). We simply provide the required information that we can customize during provisioning and VMware takes care of it. |
Maybe you could try this for new VMs: customization:
dns_servers:
- 192.168.1.1
- 192.168.1.2
domain: my_domain The VM customizations only runs when creating a new VM, it cannot be used for modifying an existing VM. |
@rewilliamso I use the exact same syntax as @dagwieers listed above'
|
@rewilliamso @dagwieers Can we close this issue ? |
Yes, this issue can be closed. Sorry about the delay.
…On Sun, Sep 10, 2017 at 4:14 AM, Abhijeet Kasurde ***@***.***> wrote:
@rewilliamso <https://github.com/rewilliamso> @dagwieers
<https://github.com/dagwieers> Can we close this issue ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28577 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX5moJLBfox-nXiv2XiOJOlXhrqt-iccks5sg6hxgaJpZM4PAe33>
.
|
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Kernel Version: 3.10.0-514.2.2.el7.x86_64 x86_64
Oracle Linux Server release 7.3
SUMMARY
When executing the playbook i get the following error a connection refused error.
STEPS TO REPRODUCE
Run playbook
ansible-playbook setip.yaml
EXPECTED RESULTS
I expect a new server to be cloned from template and also the network set
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: