Open arunabhaghosh opened 10 years ago
The task of configuring mongodb firewall fails when using the playbook. This is on a Fedora 19 VM on EC2 using the official EC2 AMI. Same result with both ansible 1.3.3 and 1.4
TASK: [mongod | Configure Persistent FirewallD for mongod] **** <54.200.220.46> ESTABLISH CONNECTION FOR USER: fedora <54.200.220.46> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/arun/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=fedora', '-o', 'ConnectTimeout=10', '54.200.220.46', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1382483682.4-34953063601073 && chmod a+rx $HOME/.ansible/tmp/ansible-1382483682.4-34953063601073 && echo $HOME/.ansible/tmp/ansible-1382483682.4-34953063601073'"] <54.200.220.46> REMOTE_MODULE command firewall-cmd --permanent --add-port 27017/tcp #USESHELL <54.200.220.46> PUT /tmp/tmpZVDMt TO /home/fedora/.ansible/tmp/ansible-1382483682.4-34953063601073/command <54.200.220.46> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/arun/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=fedora', '-o', 'ConnectTimeout=10', '54.200.220.46', '/bin/sh -c \'sudo -k && sudo -H -S -p "[sudo via ansible, key=oifizldsgntmlxyyeipimpqldgkjvvks] password: " -u root /bin/sh -c \'"\'"\'/usr/bin/python /home/fedora/.ansible/tmp/ansible-1382483682.4-34953063601073/command; rm -rf /home/fedora/.ansible/tmp/ansible-1382483682.4-34953063601073/ >/dev/null 2>&1\'"\'"\'\''] failed: [54.200.220.46] => {"changed": true, "cmd": "firewall-cmd --permanent --add-port 27017/tcp ", "delta": "0:00:00.596424", "end": "2013-10-22 23:14:46.644239", "item": "", "rc": 254, "start": "2013-10-22 23:14:46.047815"} stdout: Error: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, _args, *_keywords) File "/usr/lib/python2.7/site-packages/slip/dbus/service.py", line 148, in wrapped_method reply_handler=reply_handler, error_handler=error_handler) File "/usr/lib/python2.7/site-packages/slip/dbus/polkit.py", line 270, in IsSystemBusNameAuthorizedAsync reply_handler, error_handler, challenge, details) File "/usr/lib/python2.7/site-packages/slip/dbus/polkit.py", line 256, in IsSystemBusNameAuthorizedAsync timeout=method_call_no_timeout) File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 137, in call *keywords) File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 584, in call_async message.append(signature=signature, args) ValueError: Unable to guess signature from an empty dict
Sorry for the lag time on this, I've been very busy with other things. I'm unable to reproduce, are you still seeing this issue?
The task of configuring mongodb firewall fails when using the playbook. This is on a Fedora 19 VM on EC2 using the official EC2 AMI. Same result with both ansible 1.3.3 and 1.4
TASK: [mongod | Configure Persistent FirewallD for mongod] **** <54.200.220.46> ESTABLISH CONNECTION FOR USER: fedora <54.200.220.46> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/arun/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=fedora', '-o', 'ConnectTimeout=10', '54.200.220.46', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-1382483682.4-34953063601073 && chmod a+rx $HOME/.ansible/tmp/ansible-1382483682.4-34953063601073 && echo $HOME/.ansible/tmp/ansible-1382483682.4-34953063601073'"] <54.200.220.46> REMOTE_MODULE command firewall-cmd --permanent --add-port 27017/tcp #USESHELL <54.200.220.46> PUT /tmp/tmpZVDMt TO /home/fedora/.ansible/tmp/ansible-1382483682.4-34953063601073/command <54.200.220.46> EXEC ['ssh', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/arun/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=fedora', '-o', 'ConnectTimeout=10', '54.200.220.46', '/bin/sh -c \'sudo -k && sudo -H -S -p "[sudo via ansible, key=oifizldsgntmlxyyeipimpqldgkjvvks] password: " -u root /bin/sh -c \'"\'"\'/usr/bin/python /home/fedora/.ansible/tmp/ansible-1382483682.4-34953063601073/command; rm -rf /home/fedora/.ansible/tmp/ansible-1382483682.4-34953063601073/ >/dev/null 2>&1\'"\'"\'\''] failed: [54.200.220.46] => {"changed": true, "cmd": "firewall-cmd --permanent --add-port 27017/tcp ", "delta": "0:00:00.596424", "end": "2013-10-22 23:14:46.644239", "item": "", "rc": 254, "start": "2013-10-22 23:14:46.047815"} stdout: Error: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, _args, *_keywords) File "/usr/lib/python2.7/site-packages/slip/dbus/service.py", line 148, in wrapped_method reply_handler=reply_handler, error_handler=error_handler) File "/usr/lib/python2.7/site-packages/slip/dbus/polkit.py", line 270, in IsSystemBusNameAuthorizedAsync reply_handler, error_handler, challenge, details) File "/usr/lib/python2.7/site-packages/slip/dbus/polkit.py", line 256, in IsSystemBusNameAuthorizedAsync timeout=method_call_no_timeout) File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 137, in call *keywords) File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 584, in call_async message.append(signature=signature, args) ValueError: Unable to guess signature from an empty dict