rancher / convoy

A Docker volume plugin, managing persistent container volumes.
Apache License 2.0
1.31k stars 135 forks source link

make source failed #215

Open timiil opened 7 years ago

timiil commented 7 years ago

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 ?

yasker commented 7 years ago

What's the version of your losetup? Also, what's the host os?

timiil commented 7 years ago

centos 7.3.1611. tks

alwinmark commented 6 years ago

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

yasker commented 6 years ago

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.