# Unable to use vmware\_guest Module

**URL:** <https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730>\
**Category:** AWX Project\
**Tags:** vmware, ubuntu, awx\
**Created:** [October 12, 2017, 8:56am UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730 "2017-10-12T08:56:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [October 12, 2017, 8:56am UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/1 "2017-10-12T08:56:39Z")

</div>

Hi all,

i´ve got problems running vmware\_guest Module in AWX.

I´m also running a test-license for official tower where vmware\_guest module is working as expected (same ansible and python version as awx system)  
Running the playbook via commandline (without tower or awx) everything work fine! It also work via ansible tower.

Some Details:

**System OS**  
(where here the Docker Engine is running: )

[root@test ~]# cat /etc/centos-release  
CentOS Linux release 7.4.1708 (Core)

**Kernel:**

[root@test ~]# uname -r  
3.10.0-693.2.2.el7.x86\_64

→ Also tried Kernel

**Docker Version:**

[root@test ~]# docker --version  
Docker version 17.09.0-ce, build afdb6d4

**Ansible Version:**

[root@test ~]# ansible --version  
ansible 2.3.2.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = Default w/o overrides  
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

**Python-Version**  
[root@lvast-anto2 ~]# python --version  
Python 2.7.5

**AWX**  
[https://github.com/ansible/awx/blob/devel/INSTALL.md](https://github.com/ansible/awx/blob/devel/INSTALL.md)

→ Configured via git clone. Just map playbook directory into docker container.

**What i´ve already tested without any success:**  
Kernel Update to 4.13.5-1.el7.elrepo.x86\_64 (still Centos7)

Change OS to Ubuntu 17.04 (kernel 4.10.0-19-generic)  
Python Update to 3.6.3  
Ansible Update to 2.4.0

**TestPlaybook:**

- hosts: all  
name: TEST  
tasks:
- name: test\_vm  
vmware\_guest:  
hostname: “vCenterName”  
name: “VMNAME”  
password: “Password”  
username: “loginname and domain”  
datacenter: “ESXTEST”  
state: “poweredon”  
validate\_certs: false  
…

Inventory = Centos where the Docker Container are running  
**AWX Output (connection debug)**

ansible-playbook 2.4.0.0  
2  
config file = /etc/ansible/ansible.cfg  
3  
configured module search path = [u’/var/lib/awx/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
4  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
5  
executable location = /usr/bin/ansible-playbook  
6  
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]  
7  
Using /etc/ansible/ansible.cfg as config file  
8  
SSH password:  
9  
setting up inventory plugins  
10  
Parsed /usr/lib/python2.7/site-packages/awx/plugins/inventory/awxrest.py inventory source with script plugin  
11  
Loading callback plugin awx\_display of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/ **init**.pyc  
12  
13  
PLAYBOOK: control\_vm\_commandline\_test.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
14  
1 plays in control\_vm\_commandline\_test.yml  
15  
16  
PLAY [TEST] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*10:47:18  
17  
18  
TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*10:47:18  
19  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py  
20  
 ESTABLISH SSH CONNECTION FOR USER: root  
21  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r lvast-anto2 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’“‘’  
22  
 (0, ‘/root\n’, 'OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket “/tmp/awx\_109\_\_bq\_ml/cp/lvast-anto222root” does not exist\r\ndebug2: resolving “lvast-anto2” port 22\r\ndebug2: ssh\_connect\_direct: needpriv 0\r\ndebug1: Connecting to lvast-anto2 [10.50.100.92] port 22.\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug1: fd 3 clearing O\_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: permanently\_set\_uid: 0/0\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_rsa type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_rsa-cert type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_dsa type -1\r\ndebug1: key\_load\_public: No …  
23  
 ESTABLISH SSH CONNECTION FOR USER: root  
24  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r lvast-anto2 '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208`” && echo ansible-tmp-1507798039.1-212401339719208=“`echo /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208`” ) && sleep 0’“'”‘’  
25  
 (0, ‘ansible-tmp-1507798039.1-212401339719208=/root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
26  
 PUT /tmp/tmpbQ8n0d TO /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208/setup.py  
27  
 SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r ‘[lvast-anto2]’  
28  
 (0, ‘sftp\> put /tmp/tmpbQ8n0d /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208/setup.py\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension “[posix-rename@openssh.com](mailto:posix-rename@openssh.com)” revision 1\r\ndebug2: Server supports extension “[statvfs@openssh.com](mailto:statvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[fstatvfs@openssh.com](mailto:fstatvfs@openssh.com)” revision 2\r\ndebug2: S…  
29  
 ESTABLISH SSH CONNECTION FOR USER: root  
30  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r lvast-anto2 ‘/bin/sh -c ‘"’“‘chmod u+x /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208/ /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208/setup.py && sleep 0’”’"’’  
31  
 (0, ‘’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for _\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
32  
 ESTABLISH SSH CONNECTION FOR USER: root  
33  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r -tt lvast-anto2 ‘/bin/sh -c ‘"’"’/usr/bin/python /root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208/setup.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1507798039.1-212401339719208/” \> /dev/null 2\>&1 && sleep 0’“'”‘’  
34  
 (0, '\r\n{“invocation”: {“module\_args”: {“filter”: "_“, “gather\_subset”: [“all”], “fact\_path”: “/etc/ansible/facts.d”, “gather\_timeout”: 10}}, “ansible\_facts”: {“module\_setup”: true, “ansible\_distribution\_version”: “7.4.1708”, “ansible\_distribution\_file\_variety”: “RedHat”, “ansible\_env”: {“LANG”: “en\_US.UTF-8”, “LC\_ALL”: “en\_US.UTF-8”, “SHELL”: “/bin/bash”, “XDG\_RUNTIME\_DIR”: “/run/user/0”, “LANGUAGE”: “en\_US.UTF-8”, “SHLVL”: “2”, “SSH\_TTY”: “/dev/pts/3”, “HOME”: “/root”, “\_”: “/usr/bin/python”, “LC\_CTYPE”: “en\_US.UTF-8”, “LESSOPEN”: “||/usr/bin/lesspipe.sh %s”, “PWD”: “/root”, “LOGNAME”: “root”, “USER”: “root”, “PATH”: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin”, “MAIL”: “/var/mail/root”, “LS\_COLORS”: “”, “XDG\_SESSION\_ID”: “1693”, “SSH\_CLIENT”: “172.17.0.6 40364 22”, “SSH\_CONNECTION”: “172.17.0.6 40364 10.50.100.92 22”}, “ansible\_userspace\_bits”: “64”, “ansible\_architecture”: “x86\_64”, “ansible\_default\_ipv4”: {“macaddress”: “00:50:56:ab:55:b7”, “network”: “10.50.0.0”, “mtu”: 150…  
35  
ok: [lvast-anto2]  
36  
META: ran handlers  
37  
38  
TASK [reboot vm] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*10:47:21  
39  
task path: /var/lib/awx/projects/vmware/control\_vm\_commandline\_test.yml:510:47:21  
40  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware\_guest.py  
41  
 ESTABLISH SSH CONNECTION FOR USER: root  
42  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r lvast-anto2 '/bin/sh -c '”’“‘echo ~ && sleep 0’”‘"’’  
43  
 (0, ‘/root\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
44  
 ESTABLISH SSH CONNECTION FOR USER: root  
45  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r lvast-anto2 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “`echo /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631`” && echo ansible-tmp-1507798041.51-240959622843631=“`echo /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631`” ) && sleep 0’“'”‘’  
46  
 (0, ‘ansible-tmp-1507798041.51-240959622843631=/root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
47  
 PUT /tmp/tmpJC\_XAo TO /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631/vmware\_guest.py  
48  
 SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r ‘[lvast-anto2]’  
49  
 (0, ‘sftp\> put /tmp/tmpJC\_XAo /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631/vmware\_guest.py\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension “[posix-rename@openssh.com](mailto:posix-rename@openssh.com)” revision 1\r\ndebug2: Server supports extension “[statvfs@openssh.com](mailto:statvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[fstatvfs@openssh.com](mailto:fstatvfs@openssh.com)” revision 2\r\nd…  
50  
 ESTABLISH SSH CONNECTION FOR USER: root  
51  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r lvast-anto2 ‘/bin/sh -c ‘"’“‘chmod u+x /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631/ /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631/vmware\_guest.py && sleep 0’”’"’’  
52  
 (0, ‘’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)  
53  
 ESTABLISH SSH CONNECTION FOR USER: root  
54  
 SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_109\_\_bq\_ml/cp/%h%p%r -tt lvast-anto2 ‘/bin/sh -c ‘"’"’/usr/bin/python /root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631/vmware\_guest.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1507798041.51-240959622843631/” \> /dev/null 2\>&1 && sleep 0’“'”‘’  
55  
 (0, ‘Traceback (most recent call last):\r\n File “/tmp/ansible\_P0OklM/ansible\_module\_vmware\_guest.py”, line 1503, in \r\n main()\r\n File “/tmp/ansible\_P0OklM/ansible\_module\_vmware\_guest.py”, line 1494, in main\r\n result = pyv.deploy\_vm()\r\n File “/tmp/ansible\_P0OklM/ansible\_module\_vmware\_guest.py”, line 1189, in deploy\_vm\r\n dcpath = compile\_folder\_path\_for\_object(datacenter)\r\n File “/tmp/ansible\_P0OklM/ansible\_modlib.zip/ansible/module\_utils/vmware.py”, line 237, in compile\_folder\_path\_for\_object\r\nAttributeError: 'NoneType' object has no attribute 'name'\r\n’, 'OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_requ…  
56  
fatal: [lvast-anto2]: FAILED! =\> {  
57  
“changed”: false,  
58  
“failed”: true,  
59  
“module\_stderr”: “OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to lvast-anto2 closed.\r\n”,  
60  
“module\_stdout”: "Traceback (most recent call last):\r\n …  
64  
65  
PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*10:47:23  
66  
lvast-anto2 : ok=1 changed=0 unreachable=0 failed=1  
67

**Json Output**

{  
“\_ansible\_parsed”: false,  
“\_ansible\_no\_log”: false,  
“module\_stderr”: “OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 4770\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to lvast-anto2 closed.\r\n”,  
“changed”: false,  
“module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_P0OklM/ansible\_module\_vmware\_guest.py", line 1503, in \r\n main()\r\n File "/tmp/ansible\_P0OklM/ansible\_module\_vmware\_guest.py", line 1494, in main\r\n result = pyv.deploy\_vm()\r\n File "/tmp/ansible\_P0OklM/ansible\_module\_vmware\_guest.py", line 1189, in deploy\_vm\r\n dcpath = compile\_folder\_path\_for\_object(datacenter)\r\n File "/tmp/ansible\_P0OklM/ansible\_modlib.zip/ansible/module\_utils/vmware.py", line 237, in compile\_folder\_path\_for\_object\r\nAttributeError: ‘NoneType’ object has no attribute ‘name’\r\n”,  
“failed”: true,  
“rc”: 0,  
“msg”: “MODULE FAILURE”  
}

Does somebdoy has any idea how to fix?

Kind regards,  
Christian

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [October 12, 2017, 12:08pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/2 "2017-10-12T12:08:56Z")

</div>

It’s worth noting that AWX is running Ansible 2.4.0 it looks like you may be running into this bug here: [https://github.com/ansible/ansible/issues/29043](https://github.com/ansible/ansible/issues/29043)

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [October 12, 2017, 1:37pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/3 "2017-10-12T13:37:56Z")

</div>

Hi Matt,

thanks.

Doesnt the official Tower version also runs with ansible 2.4.0?

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [October 12, 2017, 2:09pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/4 "2017-10-12T14:09:37Z")

</div>

It depends on what you choose to install and when you installed it

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [October 24, 2017, 7:38am UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/5 "2017-10-24T07:38:43Z")

</div>

Hi,

there is no awx using Ansible 2.4.1 at the moment, right?  
Update ansible on executing Host (not awx) doesnt help too?!

Thanks!

Christian

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [October 24, 2017, 12:25pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/6 "2017-10-24T12:25:26Z")

</div>

When we run image builds we pull the latest from the ansible yum repo which will pick up official releases. We build those nightly. iirc 2.4.1 is still in rc. Once it hits stable it’ll be published to the yum repo and we’ll pick it up during that nightly build.

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [October 24, 2017, 12:29pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/7 "2017-10-24T12:29:56Z")

</div>

Ok Matt, thank you!

Christian

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [October 30, 2017, 12:01pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/8 "2017-10-30T12:01:45Z")

</div>

Hi,

today i have installed awx using ansible version 2.4.1.  
Sadly there are still errors trying to use vmware\_guest Module…

Executing Host: Debian 9.1, Kernel 4.9.0-4-amd64

root@test:/opt/ansible/projects/vmware# ansible --version  
ansible 2.5.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible-2.5.0-py2.7.egg/ansible  
executable location = /usr/local/bin/ansible  
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]  
root@test:/opt/ansible/projects/vmware#

AWX Version:

[root@awx awx]# cat .tower\_version  
1.0.1.120  
[root@awx awx]#

[root@awx awx]# ansible --version  
ansible 2.4.1.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]  
[root@awx awx]#

Template output:

Identity added: /tmp/awx\_124\_PG\_K1p/credential\_7 (/tmp/awx\_124\_PG\_K1p/credential\_7)

2  
ansible-playbook 2.4.1.0

3  
config file = /etc/ansible/ansible.cfg

4  
configured module search path = [u’/var/lib/awx/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]

5  
ansible python module location = /usr/lib/python2.7/site-packages/ansible

6  
executable location = /usr/bin/ansible-playbook

7  
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

8  
Using /etc/ansible/ansible.cfg as config file

9  
setting up inventory plugins

10  
Parsed /tmp/awx\_124\_PG\_K1p/inventory inventory source with script plugin

11  
Loading callback plugin awx\_display of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/ **init**.pyc

12

13  
PLAYBOOK: control\_vm\_commandline\_test.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

14  
1 plays in control\_vm\_commandline\_test.yml

15

16  
PLAY [TEST] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
12:52:49

17

18  
TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
12:52:50

19  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py

20  
 ESTABLISH SSH CONNECTION FOR USER: root

21  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r lvasp-awx1 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’"‘’

22  
 (0, ‘/root\n’, 'OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket “/tmp/awx\_124\_PG\_K1p/cp/lvasp-awx122root” does not exist\r\ndebug2: resolving “lvasp-awx1” port 22\r\ndebug2: ssh\_connect\_direct: needpriv 0\r\ndebug1: Connecting to lvasp-awx1 [10.50.15.235] port 22.\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug1: fd 3 clearing O\_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9995 ms remain after connect\r\ndebug1: permanently\_set\_uid: 0/0\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_rsa type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_rsa-cert type -1\r\ndebug1: key\_load\_public: No such file or directory\r\ndebug1: identity file /root/.ssh/id\_dsa type -1\r\ndebug1: key\_load\_public: No such …

23  
 ESTABLISH SSH CONNECTION FOR USER: root

24  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r lvasp-awx1 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “`echo /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073`” && echo ansible-tmp-1509364370.37-150273059436073=“`echo /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073`” ) && sleep 0’“'”‘’

25  
 (0, ‘ansible-tmp-1509364370.37-150273059436073=/root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)

26  
 PUT /tmp/tmpqYuG4H TO /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073/setup.py

27  
 SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r ‘[lvasp-awx1]’

28  
 (0, ‘sftp\> put /tmp/tmpqYuG4H /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073/setup.py\n’, 'OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension “[posix-rename@openssh.com](mailto:posix-rename@openssh.com)” revision 1\r\ndebug2: Server supports extension “[statvfs@openssh.com](mailto:statvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[fstatvfs@openssh.com](mailto:fstatvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[hardlink@openssh.com](mailto:hardlink@openssh.com)” revision 1\r\…

29  
 ESTABLISH SSH CONNECTION FOR USER: root

30  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r lvasp-awx1 ‘/bin/sh -c ‘"’“‘chmod u+x /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073/ /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073/setup.py && sleep 0’”’"‘’

31  
 (0, ‘’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)

32  
 ESTABLISH SSH CONNECTION FOR USER: root

33  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r -tt lvasp-awx1 ‘/bin/sh -c ‘"’"’/usr/bin/python /root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073/setup.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1509364370.37-150273059436073/” \> /dev/null 2\>&1 && sleep 0’“'”‘’

34  
 (0, 'exc: 'DistributionFiles' object has no attribute 'parse\_distribution\_file\_Archlinux'\r\n\r\n{“invocation”: {“module\_args”: {“filter”: “\*”, “gather\_subset”: [“all”], “fact\_path”: “/etc/ansible/facts.d”, “gather\_timeout”: 10}}, “ansible\_facts”: {“module\_setup”: true, “ansible\_distribution\_version”: “9.1”, “ansible\_distribution\_file\_variety”: “Debian”, “ansible\_env”: {“LANG”: “de\_DE.UTF-8”, “SHELL”: “/bin/bash”, “XDG\_RUNTIME\_DIR”: “/run/user/0”, “MAIL”: “/var/mail/root”, “SHLVL”: “1”, “SSH\_TTY”: “/dev/pts/1”, “LC\_CTYPE”: “en\_US.UTF-8”, “PATH”: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”, “PWD”: “/root”, “LOGNAME”: “root”, “USER”: “root”, “HOME”: “/root”, “LC\_ALL”: “en\_US.UTF-8”, “SSH\_CONNECTION”: “172.17.0.6 38322 10.50.15.235 22”, “XDG\_SESSION\_ID”: “342”, “SSH\_CLIENT”: “172.17.0.6 38322 22”, “\_”: “/bin/sh”}, “ansible\_userspace\_bits”: “64”, “ansible\_architecture”: “x86\_64”, “ansible\_default\_ipv4”: {“macaddress”: “00:50:56:aa:74:2c”, “network”: “10.50.0.0”, “mtu”: …

35  
ok: [lvasp-awx1]

36  
META: ran handlers

37

38  
TASK [reboot vm] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
12:52:51

39  
task path: /var/lib/awx/projects/vmware/control\_vm\_commandline\_test.yml:5  
12:52:51

40  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware\_guest.py

41  
 ESTABLISH SSH CONNECTION FOR USER: root

42  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r lvasp-awx1 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’"‘’

43  
 (0, ‘/root\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)

44  
 ESTABLISH SSH CONNECTION FOR USER: root

45  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r lvasp-awx1 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “`echo /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422`” && echo ansible-tmp-1509364371.7-132038655061422=“`echo /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422`” ) && sleep 0’“'”‘’

46  
 (0, ‘ansible-tmp-1509364371.7-132038655061422=/root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422\n’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)

47  
 PUT /tmp/tmp6Wrdhv TO /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422/vmware\_guest.py

48  
 SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r ‘[lvasp-awx1]’

49  
 (0, ‘sftp\> put /tmp/tmp6Wrdhv /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422/vmware\_guest.py\n’, 'OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension “[posix-rename@openssh.com](mailto:posix-rename@openssh.com)” revision 1\r\ndebug2: Server supports extension “[statvfs@openssh.com](mailto:statvfs@openssh.com)” revision 2\r\ndebug2: Server supports extension “[fstatvfs@openssh.com](mailto:fstatvfs@openssh.com)” revision 2\r\ndebu…

50  
 ESTABLISH SSH CONNECTION FOR USER: root

51  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r lvasp-awx1 ‘/bin/sh -c ‘"’“‘chmod u+x /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422/ /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422/vmware\_guest.py && sleep 0’”’"‘’

52  
 (0, ‘’, ‘OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n’)

53  
 ESTABLISH SSH CONNECTION FOR USER: root

54  
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/tmp/awx\_124\_PG\_K1p/cp/%h%p%r -tt lvasp-awx1 ‘/bin/sh -c ‘"’"’/usr/bin/python /root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422/vmware\_guest.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1509364371.7-132038655061422/” \> /dev/null 2\>&1 && sleep 0’“'”‘’

55  
 (0, ‘Traceback (most recent call last):\r\n File “/tmp/ansible\_adxJMZ/ansible\_module\_vmware\_guest.py”, line 1503, in \r\n main()\r\n File “/tmp/ansible\_adxJMZ/ansible\_module\_vmware\_guest.py”, line 1494, in main\r\n result = pyv.deploy\_vm()\r\n File “/tmp/ansible\_adxJMZ/ansible\_module\_vmware\_guest.py”, line 1189, in deploy\_vm\r\n dcpath = compile\_folder\_path\_for\_object(datacenter)\r\n File “/tmp/ansible\_adxJMZ/ansible\_modlib.zip/ansible/module\_utils/vmware.py”, line 237, in compile\_folder\_path\_for\_object\r\nAttributeError: 'NoneType' object has no attribute 'name'\r\n’, 'OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_reque…

56  
fatal: [lvasp-awx1]: FAILED! =\> {

57  
“changed”: false,

58  
“failed”: true,

59  
“module\_stderr”: “OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to lvasp-awx1 closed.\r\n”,

60  
“module\_stdout”: "Traceback (most recent call last):\r\n Fil…

64

65  
PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
12:52:53

66  
lvasp-awx1 : ok=1 changed=0 unreachable=0 failed=1

{  
“\_ansible\_parsed”: false,  
“\_ansible\_no\_log”: false,  
“module\_stderr”: “OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 289\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to lvasp-awx1 closed.\r\n”,  
“changed”: false,  
“module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_adxJMZ/ansible\_module\_vmware\_guest.py", line 1503, in \r\n main()\r\n File "/tmp/ansible\_adxJMZ/ansible\_module\_vmware\_guest.py", line 1494, in main\r\n result = pyv.deploy\_vm()\r\n File "/tmp/ansible\_adxJMZ/ansible\_module\_vmware\_guest.py", line 1189, in deploy\_vm\r\n dcpath = compile\_folder\_path\_for\_object(datacenter)\r\n File "/tmp/ansible\_adxJMZ/ansible\_modlib.zip/ansible/module\_utils/vmware.py", line 237, in compile\_folder\_path\_for\_object\r\nAttributeError: ‘NoneType’ object has no attribute ‘name’\r\n”,  
“failed”: true,  
“rc”: 0,  
“msg”: “MODULE FAILURE”  
}

Wasnt the bug fixed in ansible version 2.4.1?

Or do you think thats a new problem?

Kine regards,  
Christian

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [November 6, 2017, 8:17am UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/9 "2017-11-06T08:17:27Z")

</div>

Hi,

is there anything new?

Christian

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [November 6, 2017, 1:57pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/10 "2017-11-06T13:57:50Z")

</div>

I don’t have any new information. It looks like you are running into the ansible core bug that we mentioned earlier? You may want to see if you can find a resolution on that side.

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [November 30, 2017, 1:24pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/11 "2017-11-30T13:24:50Z")

</div>

Hi,

just trying the new ansible 2.4.2 release on the executable system. AWX Container is uptodate to but still using ansible 2.4.1.0.

The Error is still persist.

fatal: [lvast-awx01]: FAILED! =\> {

“changed”: false,

“failed”: true, “module\_stderr”: “OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 304\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to lvast-awx01 closed.\r\n”,

JSON Output:

{  
“\_ansible\_parsed”: false,  
“\_ansible\_no\_log”: false,  
“module\_stderr”: “OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 58: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 304\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to lvast-awx01 closed.\r\n”,  
“changed”: false,  
“module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_kHxuN7/ansible\_module\_vmware\_guest\_find.py", line 235, in \r\n main()\r\n File "/tmp/ansible\_kHxuN7/ansible\_module\_vmware\_guest\_find.py", line 216, in main\r\n uuid=module.params[‘uuid’]\r\n File "/tmp/ansible\_kHxuN7/ansible\_module\_vmware\_guest\_find.py", line 123, in getvm\_folder\_paths\r\n folderpath = compile\_folder\_path\_for\_object(vobj)\r\n File "/tmp/ansible\_kHxuN7/ansible\_modlib.zip/ansible/module\_utils/vmware.py", line 237, in compile\_folder\_path\_for\_object\r\nAttributeError: ‘NoneType’ object has no attribute ‘name’\r\n”,  
“failed”: true,  
“rc”: 0,  
“msg”: “MODULE FAILURE”  
}

Any ideas??

Kind regards,  
Christian

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [November 30, 2017, 1:54pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/12 "2017-11-30T13:54:44Z")

</div>

As I said before, you might should take this to the ansible core community to see if you can get help : [https://groups.google.com/forum/#!forum/ansible-project](https://groups.google.com/forum/#!forum/ansible-project)

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [November 30, 2017, 2:06pm UTC](https://forum.ansible.com/t/unable-to-use-vmware-guest-module/25730/13 "2017-11-30T14:06:01Z")

</div>

Hi Matt,

executing the playbook without awx (directly on the executable host via “ansible-playbook -i ”) works fine.

The issue just came out if the playbook was triggered from awx

Christian
