Skip to content

Instantly share code, notes, and snippets.

@Dude4Linux
Created August 8, 2016 18:25
Show Gist options
  • Select an option

  • Save Dude4Linux/ab1d6992ad3bc09f9d758d9df1a40bda to your computer and use it in GitHub Desktop.

Select an option

Save Dude4Linux/ab1d6992ad3bc09f9d758d9df1a40bda to your computer and use it in GitHub Desktop.
##### EXPECTED RESULTS
<!--- What did you expect to happen when running the steps above? -->
Results from version 2.0.1.0 (passed)
```
TASK [Test appliance webmin] ***************************************************
task path: /home/ansible/playbooks/webmin-test.yml:139
<lxc> ESTABLISH SSH CONNECTION FOR USER: root
<lxc> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r -tt lxc '/bin/sh -c '"'"'mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122 `" && echo "` echo ~/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122 `"'"'"''
<lxc> PUT /tmp/tmpJw5Mg0 TO /root/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122/uri
<lxc> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r '[lxc]'
<lxc> ESTABLISH SSH CONNECTION FOR USER: root
<lxc> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r -tt lxc '/bin/sh -c '"'"'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122/uri; rm -rf "/root/.ansible/tmp/ansible-tmp-1470625603.84-183242562950122/" > /dev/null 2>&1'"'"''
ok: [lxc] => {"cache_control": "no-store, no-cache, must-revalidate, post-check=0, pre-check=0", "changed": false, "connection": "close", "content_location": "https://drupal8-natbr0-container:12321/", "content_security_policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; child-src 'self'", "content_type": "text/html; Charset=UTF-8", "date": "Mon, 8 Aug 2016 03:06:44 GMT", "expires": "Thu, 1 Jan 1970 00:00:00 GMT", "invocation": {"module_args": {"backup": null, "body": null, "body_format": "raw", "content": null, "creates": null, "delimiter": null, "dest": null, "directory_mode": null, "follow": false, "follow_redirects": "safe", "force": null, "force_basic_auth": false, "group": null, "method": "GET", "mode": null, "owner": null, "password": null, "regexp": null, "remote_src": null, "removes": null, "return_content": false, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": null, "status_code": [200, 201, 202, 300, 301, 302, 303, 304, 307, 308, 400, 401, 403], "timeout": 30, "url": "https://drupal8-natbr0-container:12321/", "user": null, "validate_certs": false}, "module_name": "uri"}, "pragma": "no-cache", "redirected": false, "server": "MiniServ/1.780", "set_cookie": "testing=1; path=/; secure; httpOnly; httpOnly", "status": 200, "x_frame_options": "SAMEORIGIN"}
```
##### ACTUAL RESULTS
<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->
<!--- Paste verbatim command output between quotes below -->
Results from version 2.0.2.0
```
TASK [Test appliance webmin] ***************************************************
task path: /home/ansible/playbooks/webmin-test.yml:139
<lxc> ESTABLISH SSH CONNECTION FOR USER: root
<lxc> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r lxc '/bin/sh -c '"'"'mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525 `" && echo "` echo ~/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525 `"'"'"''
<lxc> PUT /tmp/tmppg6gtg TO /root/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525/uri
<lxc> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r '[lxc]'
<lxc> ESTABLISH SSH CONNECTION FOR USER: root
<lxc> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r -tt lxc '/bin/sh -c '"'"'LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525/uri; rm -rf "/root/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525/" > /dev/null 2>&1'"'"''
fatal: [lxc]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "uri"}, "module_stderr": "OpenSSH_6.7p1 Debian-5+deb8u2, OpenSSL 1.0.1k 8 Jan 2015\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 15131\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 lxc closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525/uri\", line 3310, in <module>\r\n main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525/uri\", line 407, in main\r\n dict_headers, socket_timeout)\r\n File \"/root/.ansible/tmp/ansible-tmp-1470679357.66-240132650115525/uri\", line 334, in uri\r\n content = resp.read()\r\n File \"/usr/lib/python2.7/socket.py\", line 351, in read\r\n data = self._sock.recv(rbufsize)\r\n File \"/usr/lib/python2.7/httplib.py\", line 573, in read\r\n s = self.fp.read(amt)\r\n File \"/usr/lib/python2.7/socket.py\", line 380, in read\r\n data = self._sock.recv(left)\r\n File \"/usr/lib/python2.7/ssl.py\", line 714, in recv\r\n return self.read(buflen)\r\n File \"/usr/lib/python2.7/ssl.py\", line 608, in read\r\n v = self._sslobj.read(len or 1024)\r\nssl.SSLError: ('The read operation timed out',)\r\n", "msg": "MODULE FAILURE", "parsed": false}
...ignoring
```
##### COMMENTS
I think the problem may be related to issue #3437 "Discrepancy in uri module behavior between 2.0.1.0 and 2.0.2.0", although I tried the fix suggested for #3437 and it did not help.
The problem seems unique to Webmin, as several tests of other ports continue to function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment