convoy
convoy copied to clipboard
make source failed
my steps here :
cd /home
yum update -y
yum install -y git
git clone https://github.com/rancher/convoy.git
cd convoy
make
the fault messages:
----------------------------------------------------------------------
FAIL: util_test.go:134: TestSuite.TestLoopDevice
util_test.go:155:
c.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"Failed to execute: losetup [--show -f -r /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1"} ("Failed to execute: losetup [--show -f -r /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1")
----------------------------------------------------------------------
FAIL: volume_test.go:33: TestSuite.TestVolumeHelper
volume_test.go:35:
c.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1"} ("Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1")
----------------------------------------------------------------------
FAIL: volume_test.go:93: TestSuite.TestVolumeHelperWithNamespace
volume_test.go:97:
s.TestVolumeHelper(c)
volume_test.go:35:
c.Assert(err, IsNil)
... value *errors.errorString = &errors.errorString{s:"Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1"} ("Failed to execute: losetup [--show -f /tmp/util/test.img], output losetup: /tmp/util/test.img: failed to set up loop device: No such file or directory\n, error exit status 1")
OOPS: 12 passed, 3 FAILED
--- FAIL: Test (1.62s)
FAIL
coverage: 33.3% of statements
FAIL github.com/rancher/convoy/util 1.634s
? github.com/rancher/convoy/vfs [no test files]
FATA[0057] exit status 1
make: *** [ci] Error 1
any help please ?
What's the version of your losetup? Also, what's the host os?
centos 7.3.1611. tks
Same Problem here. When you could give me an advice how to fix this, I'll spend my weekend trying to fix #221. I have some Idea which could work, but I need a working testenvironment
Ubuntu works fine for me.
I was able to reproduce it with CentOS environment for a few times, but it seems like some kind of weird race condition and it was gone for me right now.
And I've looked into the error, which seems complains that the file /tmp/util/test.img wasn't there. Though if I looked into the container, it does exist, and losetup works too.