<div dir="ltr">We have random failures of loop device tests on jenkins (see example bellow).<div><br></div><div>Barak commented that losetup -f /path does not work sometimes in the CI</div><div>but I don&#39;t recall what it the alternative way to get a loop device.</div><div><br></div><div>We need a reliable way to create a loop device for vdsm tests. What</div><div>is the recommended way to do this?</div><div><br></div><div>Until we have a reliable solution I&#39;m going to mark this test as broken</div><div>on ovirt CI:</div><div><a href="https://gerrit.ovirt.org/#/c/86241/">https://gerrit.ovirt.org/#/c/86241/</a></div><div><br></div><div>Please report if you see other tests fail with this error - typically:</div><div><br></div><div><pre class="inbox-inbox-inbox-inbox-console-output" style="box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:14px">Error: Command [&#39;losetup&#39;, &#39;--find&#39;, &#39;--show&#39;, &#39;/tmp/tmp17Wqri/file&#39;] failed with rc=1 out=&#39;&#39; err=&#39;losetup: /tmp/tmp17Wqri/file: failed to set up loop device: No such file or directory\n&#39;</pre></div><div><br></div><div><a href="http://jenkins.ovirt.org/job/vdsm_master_check-patch-el7-x86_64/20862/consoleFull">http://jenkins.ovirt.org/job/vdsm_master_check-patch-el7-x86_64/20862/consoleFull</a><br></div><div><br></div><div><pre class="inbox-inbox-console-output" style="box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:14px"><span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.766</b> </span>======================================================================
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.766</b> </span>ERROR: test_attach_detach_manually (loopback_test.TestDevice)
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.767</b> </span>----------------------------------------------------------------------
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.767</b> </span>Traceback (most recent call last):
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.767</b> </span>  File &quot;/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/testValidation.py&quot;, line 191, in wrapper
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.768</b> </span>    return f(*args, **kwargs)
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.768</b> </span>  File &quot;/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/loopback_test.py&quot;, line 56, in test_attach_detach_manually
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.768</b> </span>    device.attach()
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.768</b> </span>  File &quot;/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/loopback.py&quot;, line 56, in attach
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.769</b> </span>    raise cmdutils.Error(cmd, rc, out, err)
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.769</b> </span>Error: Command [&#39;losetup&#39;, &#39;--find&#39;, &#39;--show&#39;, &#39;/tmp/tmp17Wqri/file&#39;] failed with rc=1 out=&#39;&#39; err=&#39;losetup: /tmp/tmp17Wqri/file: failed to set up loop device: No such file or directory\n&#39;
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.770</b> </span>-------------------- &gt;&gt; begin captured logging &lt;&lt; --------------------
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.770</b> </span>2018-01-11 13:42:45,676 DEBUG (MainThread) [root] /usr/bin/taskset --cpu-list 0-1 losetup --find --show /tmp/tmp17Wqri/file (cwd None) (commands:65)
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.771</b> </span>2018-01-11 13:42:45,733 DEBUG (MainThread) [root] FAILED: &lt;err&gt; = &#39;losetup: /tmp/tmp17Wqri/file: failed to set up loop device: No such file or directory\n&#39;; &lt;rc&gt; = 1 (commands:86)
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.772</b> </span>--------------------- &gt;&gt; end captured logging &lt;&lt; ---------------------
</pre><br class="inbox-inbox-Apple-interchange-newline"></div></div>