<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'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'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 ['losetup', '--find', '--show', '/tmp/tmp17Wqri/file'] failed with rc=1 out='' err='losetup: /tmp/tmp17Wqri/file: failed to set up loop device: No such file or directory\n'</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 "/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/testValidation.py", 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 "/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/loopback_test.py", 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 "/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/loopback.py", 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 ['losetup', '--find', '--show', '/tmp/tmp17Wqri/file'] failed with rc=1 out='' err='losetup: /tmp/tmp17Wqri/file: failed to set up loop device: No such file or directory\n'
<span class="inbox-inbox-timestamp" style="box-sizing:border-box"><b style="box-sizing:border-box">00:05:48.770</b> </span>-------------------- >> begin captured logging << --------------------
<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: <err> = 'losetup: /tmp/tmp17Wqri/file: failed to set up loop device: No such file or directory\n'; <rc> = 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>--------------------- >> end captured logging << ---------------------
</pre><br class="inbox-inbox-Apple-interchange-newline"></div></div>