<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">ovirt_disks</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.4.1"><pre class="notranslate"><code class="notranslate">2.4.1
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">fedora</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Currently the disk upload/download isn't optimal solution.<br>
This issue asks for improvement based on following patches:</p>
<ul dir="auto">
<li><a href="https://gerrit.ovirt.org/#/c/83566/" rel="nofollow">https://gerrit.ovirt.org/#/c/83566/</a></li>
<li><a href="https://gerrit.ovirt.org/#/c/83690/" rel="nofollow">https://gerrit.ovirt.org/#/c/83690/</a></li>
</ul>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible_module_subversion</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.4.3.0"><pre class="notranslate"><code class="notranslate">2.4.3.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEFAULT_ASK_PASS(/home/moss/Documents/Developpement/Ansible-playbooks/ansible.cfg) = True
DEFAULT_HOST_LIST(/home/moss/Documents/Developpement/Ansible-playbooks/ansible.cfg) = [u'/home/moss/Documents/Developpement/Ansible-playbooks/hosts']"><pre class="notranslate"><code class="notranslate">DEFAULT_ASK_PASS(/home/moss/Documents/Developpement/Ansible-playbooks/ansible.cfg) = True
DEFAULT_HOST_LIST(/home/moss/Documents/Developpement/Ansible-playbooks/ansible.cfg) = [u'/home/moss/Documents/Developpement/Ansible-playbooks/hosts']
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<ul dir="auto">
<li>From: Ubuntu 16.04</li>
<li>Manage: Debian 9.2</li>
<li>Subversion version on manage: 1.9.5 (r1770682)</li>
</ul>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">The subversion module fail with error "'NoneType' object has no attribute 'group'"</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">With this task:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Svn checkout of /usr/local/sbin/scripts
  subversion:
    repo: https://forge.reynholm-industries.co.uk/path/torepo/directory/trunk/scripts
    dest: /usr/local/sbin/script-cocktail
    username: &quot;mauricemoss&quot;
    password: &quot;&lt;redacted&gt;&quot;"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Svn checkout of /usr/local/sbin/scripts</span>
  <span class="pl-ent">subversion</span>:
    <span class="pl-ent">repo</span>: <span class="pl-s">https://forge.reynholm-industries.co.uk/path/torepo/directory/trunk/scripts</span>
    <span class="pl-ent">dest</span>: <span class="pl-s">/usr/local/sbin/script-cocktail</span>
    <span class="pl-ent">username</span>: <span class="pl-s"><span class="pl-pds">"</span>mauricemoss<span class="pl-pds">"</span></span>
    <span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">"</span>&lt;redacted&gt;<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">(the top repo is forge.reynholm-industries.co.uk/path/torepo )</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The repo is being checkout and Ansible give a green light</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">The checkout is done correctly on the managed host<br>
but Ansible fail with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using module file /usr/lib/python2.7/dist-packages/ansible/modules/source_control/subversion.py
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 moss.reynholm-industries.co.uk '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;''
&lt;moss.reynholm-industries.co.uk&gt; (0, '/home/moss\n', '')
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 moss.reynholm-industries.co.uk '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325 `&quot; &amp;&amp; echo ansible-tmp-1519208327.22-164280939884325=&quot;` echo /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;''
&lt;moss.reynholm-industries.co.uk&gt; (0, 'ansible-tmp-1519208327.22-164280939884325=/home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325\n', '')
&lt;moss.reynholm-industries.co.uk&gt; PUT /tmp/tmpmHJkjm TO /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 '[dsi1app.oca.eu]'
&lt;moss.reynholm-industries.co.uk&gt; (0, 'sftp&gt; put /tmp/tmpmHJkjm /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py\n', '')
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 moss.reynholm-industries.co.uk '/bin/sh -c '&quot;'&quot;'chmod u+x /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/ /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py &amp;&amp; sleep 0'&quot;'&quot;''
&lt;moss.reynholm-industries.co.uk&gt; (0, '', '')
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 -tt moss.reynholm-industries.co.uk '/bin/sh -c '&quot;'&quot;'sudo -H -S  -p &quot;[sudo via ansible, key=drrkxyafylgyufhguivcrimzobxvmthb] password: &quot; -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-drrkxyafylgyufhguivcrimzobxvmthb; /usr/bin/python /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py; rm -rf &quot;/home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/&quot; &gt; /dev/null 2&gt;&amp;1'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;''
&lt;moss.reynholm-industries.co.uk&gt; (0, '\r\nTraceback (most recent call last):\r\n  File &quot;/tmp/ansible_FqZ4hU/ansible_module_subversion.py&quot;, line 306, in &lt;module&gt;\r\n    main()\r\n  File &quot;/tmp/ansible_FqZ4hU/ansible_module_subversion.py&quot;, line 284, in main\r\n    before = svn.get_revision()\r\n  File &quot;/tmp/ansible_FqZ4hU/ansible_module_subversion.py&quot;, line 190, in get_revision\r\n    rev = re.search(r\'^Revision:.*$\', text, re.MULTILINE).group(0)\r\nAttributeError: \'NoneType\' object has no attribute \'group\'\r\n', 'Shared connection to moss.reynholm-industries.co.uk closed.\r\n')
fatal: [moss.reynholm-industries.co.uk]: FAILED! =&gt; {
    &quot;changed&quot;: false, 
    &quot;module_stderr&quot;: &quot;Shared connection to moss.reynholm-industries.co.uk closed.\r\n&quot;, 
    &quot;module_stdout&quot;: &quot;\r\nTraceback (most recent call last):\r\n  File \&quot;/tmp/ansible_FqZ4hU/ansible_module_subversion.py\&quot;, line 306, in &lt;module&gt;\r\n    main()\r\n  File \&quot;/tmp/ansible_FqZ4hU/ansible_module_subversion.py\&quot;, line 284, in main\r\n    before = svn.get_revision()\r\n  File \&quot;/tmp/ansible_FqZ4hU/ansible_module_subversion.py\&quot;, line 190, in get_revision\r\n    rev = re.search(r'^Revision:.*$', text, re.MULTILINE).group(0)\r\nAttributeError: 'NoneType' object has no attribute 'group'\r\n&quot;, 
    &quot;msg&quot;: &quot;MODULE FAILURE&quot;, 
    &quot;rc&quot;: 0
}"><pre class="notranslate"><code class="notranslate">Using module file /usr/lib/python2.7/dist-packages/ansible/modules/source_control/subversion.py
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 moss.reynholm-industries.co.uk '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
&lt;moss.reynholm-industries.co.uk&gt; (0, '/home/moss\n', '')
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 moss.reynholm-industries.co.uk '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325 `" &amp;&amp; echo ansible-tmp-1519208327.22-164280939884325="` echo /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325 `" ) &amp;&amp; sleep 0'"'"''
&lt;moss.reynholm-industries.co.uk&gt; (0, 'ansible-tmp-1519208327.22-164280939884325=/home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325\n', '')
&lt;moss.reynholm-industries.co.uk&gt; PUT /tmp/tmpmHJkjm TO /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 '[dsi1app.oca.eu]'
&lt;moss.reynholm-industries.co.uk&gt; (0, 'sftp&gt; put /tmp/tmpmHJkjm /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py\n', '')
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 moss.reynholm-industries.co.uk '/bin/sh -c '"'"'chmod u+x /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/ /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py &amp;&amp; sleep 0'"'"''
&lt;moss.reynholm-industries.co.uk&gt; (0, '', '')
&lt;moss.reynholm-industries.co.uk&gt; ESTABLISH SSH CONNECTION FOR USER: None
&lt;moss.reynholm-industries.co.uk&gt; SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o ControlPath=/home/moss/.ansible/cp/493c6155b5 -tt moss.reynholm-industries.co.uk '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=drrkxyafylgyufhguivcrimzobxvmthb] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-drrkxyafylgyufhguivcrimzobxvmthb; /usr/bin/python /home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/subversion.py; rm -rf "/home/moss/.ansible/tmp/ansible-tmp-1519208327.22-164280939884325/" &gt; /dev/null 2&gt;&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"''
&lt;moss.reynholm-industries.co.uk&gt; (0, '\r\nTraceback (most recent call last):\r\n  File "/tmp/ansible_FqZ4hU/ansible_module_subversion.py", line 306, in &lt;module&gt;\r\n    main()\r\n  File "/tmp/ansible_FqZ4hU/ansible_module_subversion.py", line 284, in main\r\n    before = svn.get_revision()\r\n  File "/tmp/ansible_FqZ4hU/ansible_module_subversion.py", line 190, in get_revision\r\n    rev = re.search(r\'^Revision:.*$\', text, re.MULTILINE).group(0)\r\nAttributeError: \'NoneType\' object has no attribute \'group\'\r\n', 'Shared connection to moss.reynholm-industries.co.uk closed.\r\n')
fatal: [moss.reynholm-industries.co.uk]: FAILED! =&gt; {
    "changed": false, 
    "module_stderr": "Shared connection to moss.reynholm-industries.co.uk closed.\r\n", 
    "module_stdout": "\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_FqZ4hU/ansible_module_subversion.py\", line 306, in &lt;module&gt;\r\n    main()\r\n  File \"/tmp/ansible_FqZ4hU/ansible_module_subversion.py\", line 284, in main\r\n    before = svn.get_revision()\r\n  File \"/tmp/ansible_FqZ4hU/ansible_module_subversion.py\", line 190, in get_revision\r\n    rev = re.search(r'^Revision:.*$', text, re.MULTILINE).group(0)\r\nAttributeError: 'NoneType' object has no attribute 'group'\r\n", 
    "msg": "MODULE FAILURE", 
    "rc": 0
}
</code></pre></div>
<p dir="auto">Hi highly suspect a similar problem  to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15712436" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/3255" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/3255/hovercard" href="https://github.com/ansible/ansible/pull/3255">#3255</a> because the managed host have French as default language.</p>
<p dir="auto">By the way the svn result from command line is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; /usr/bin/svn --non-interactive --trust-server-cert --no-auth-cache --username mauricemoss --password '&lt;redacted&gt;' checkout -r HEAD https://forge.reynholm-industries.co.uk/path/torepo/directory/trunk/scripts /usr/local/sbin/scripts
&gt; Révision 14332 extraite."><pre class="notranslate"><code class="notranslate">&gt; /usr/bin/svn --non-interactive --trust-server-cert --no-auth-cache --username mauricemoss --password '&lt;redacted&gt;' checkout -r HEAD https://forge.reynholm-industries.co.uk/path/torepo/directory/trunk/scripts /usr/local/sbin/scripts
&gt; Révision 14332 extraite.
</code></pre></div>