1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119 | ubuntu@go:~/go/src/github.com/juju/juju$ git fetch dimitern
remote: Counting objects: 69, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 69 (delta 51), reused 48 (delta 48), pack-reused 12
Unpacking objects: 100% (69/69), done.
From github.com:dimitern/juju
* [new branch] 1.20 -> dimitern/1.20
* [new branch] 1.21 -> dimitern/1.21
* [new branch] 1.22 -> dimitern/1.22
* [new branch] 1.23 -> dimitern/1.23
* [new branch] 1.24 -> dimitern/1.24
* [new branch] 1.25 -> dimitern/1.25
* [new branch] fan-poc -> dimitern/fan-poc
* [new branch] lp-1587345-provisioner-storage-loopdev -> dimitern/lp-1587345-provisioner-storage-loopdev
* [new branch] lp-1612624-ipv6-mongod -> dimitern/lp-1612624-ipv6-mongod
* [new branch] master -> dimitern/master
ubuntu@go:~/go/src/github.com/juju/juju$ git checkout dimitern/lp-1587345-provisioner-storage-loopdev
Note: checking out 'dimitern/lp-1587345-provisioner-storage-loopdev'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at ea99303... storage/looputil: Parsing loop devices list now handles empty inodes
ubuntu@go:~/go/src/github.com/juju/juju$ git checkout HEAD~
Previous HEAD position was ea99303... storage/looputil: Parsing loop devices list now handles empty inodes
HEAD is now at f96915a... storage/looputil: Added a (failing) TestDetachLoopDevicesListEmptyInodeOK
ubuntu@go:~/go/src/github.com/juju/juju$ (cd storage/looputil&&go test -check.v)
PASS: loop_test.go:153: LoopUtilSuite.TestDetachLoopDevicesAlternativeRoot 0.000s
PASS: loop_test.go:168: LoopUtilSuite.TestDetachLoopDevicesAlternativeRootWithPrefix 0.000s
PASS: loop_test.go:112: LoopUtilSuite.TestDetachLoopDevicesDetachError 0.000s
PASS: loop_test.go:99: LoopUtilSuite.TestDetachLoopDevicesInodeMatch 0.000s
PASS: loop_test.go:87: LoopUtilSuite.TestDetachLoopDevicesInodeMismatch 0.000s
PASS: loop_test.go:53: LoopUtilSuite.TestDetachLoopDevicesListBadInode 0.000s
PASS: loop_test.go:43: LoopUtilSuite.TestDetachLoopDevicesListBadOutput 0.000s
----------------------------------------------------------------------
FAIL: loop_test.go:190: LoopUtilSuite.TestDetachLoopDevicesListEmptyInodeOK
[LOG] 0:00.000 DEBUG juju.storage.looputil detaching loop devices inside ""
loop_test.go:196:
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"listing loop devices", cause:(*errors.Err)(0xc820010820), previous:(*errors.Err)(0xc820010870), file:"github.com/juju/juju/storage/looputil/loop.go", line:59} ("listing loop devices: cannot parse loop device info from \"/dev/loop0: []: (/var/lib/lxc-btrfs.img)\"")
... error stack:
github.com/juju/juju/storage/looputil/loop.go:118: cannot parse loop device info from "/dev/loop0: []: (/var/lib/lxc-btrfs.img)"
github.com/juju/juju/storage/looputil/loop.go:104:
github.com/juju/juju/storage/looputil/loop.go:59: listing loop devices
----------------------------------------------------------------------
PASS: loop_test.go:33: LoopUtilSuite.TestDetachLoopDevicesListError 0.000s
PASS: loop_test.go:125: LoopUtilSuite.TestDetachLoopDevicesMultiple 0.000s
PASS: loop_test.go:23: LoopUtilSuite.TestDetachLoopDevicesNone 0.000s
PASS: loop_test.go:63: LoopUtilSuite.TestDetachLoopDevicesNotFound 0.000s
PASS: loop_test.go:75: LoopUtilSuite.TestDetachLoopDevicesStatError 0.000s
OOPS: 12 passed, 1 FAILED
--- FAIL: TestPackage (0.02s)
FAIL
exit status 1
FAIL github.com/juju/juju/storage/looputil 0.074s
ubuntu@go:~/go/src/github.com/juju/juju$ git checkout HEAD
ubuntu@go:~/go/src/github.com/juju/juju$ (cd storage/looputil&&go test -check.v)
PASS: loop_test.go:153: LoopUtilSuite.TestDetachLoopDevicesAlternativeRoot 0.000s
PASS: loop_test.go:168: LoopUtilSuite.TestDetachLoopDevicesAlternativeRootWithPrefix 0.000s
PASS: loop_test.go:112: LoopUtilSuite.TestDetachLoopDevicesDetachError 0.000s
PASS: loop_test.go:99: LoopUtilSuite.TestDetachLoopDevicesInodeMatch 0.000s
PASS: loop_test.go:87: LoopUtilSuite.TestDetachLoopDevicesInodeMismatch 0.000s
PASS: loop_test.go:53: LoopUtilSuite.TestDetachLoopDevicesListBadInode 0.000s
PASS: loop_test.go:43: LoopUtilSuite.TestDetachLoopDevicesListBadOutput 0.000s
----------------------------------------------------------------------
FAIL: loop_test.go:190: LoopUtilSuite.TestDetachLoopDevicesListEmptyInodeOK
[LOG] 0:00.000 DEBUG juju.storage.looputil detaching loop devices inside ""
loop_test.go:196:
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"listing loop devices", cause:(*errors.Err)(0xc82038fef0), previous:(*errors.Err)(0xc82038ff40), file:"github.com/juju/juju/storage/looputil/loop.go", line:59} ("listing loop devices: cannot parse loop device info from \"/dev/loop0: []: (/var/lib/lxc-btrfs.img)\"")
... error stack:
github.com/juju/juju/storage/looputil/loop.go:118: cannot parse loop device info from "/dev/loop0: []: (/var/lib/lxc-btrfs.img)"
github.com/juju/juju/storage/looputil/loop.go:104:
github.com/juju/juju/storage/looputil/loop.go:59: listing loop devices
----------------------------------------------------------------------
PASS: loop_test.go:33: LoopUtilSuite.TestDetachLoopDevicesListError 0.000s
PASS: loop_test.go:125: LoopUtilSuite.TestDetachLoopDevicesMultiple 0.000s
PASS: loop_test.go:23: LoopUtilSuite.TestDetachLoopDevicesNone 0.000s
PASS: loop_test.go:63: LoopUtilSuite.TestDetachLoopDevicesNotFound 0.000s
PASS: loop_test.go:75: LoopUtilSuite.TestDetachLoopDevicesStatError 0.000s
OOPS: 12 passed, 1 FAILED
--- FAIL: TestPackage (0.01s)
FAIL
exit status 1
FAIL github.com/juju/juju/storage/looputil 0.049s
ubuntu@go:~/go/src/github.com/juju/juju$ git checkout dimitern/lp-1587345-provisioner-storage-loopdev
Previous HEAD position was f96915a... storage/looputil: Added a (failing) TestDetachLoopDevicesListEmptyInodeOK
HEAD is now at ea99303... storage/looputil: Parsing loop devices list now handles empty inodes
ubuntu@go:~/go/src/github.com/juju/juju$ (cd storage/looputil&&go test -check.v)
PASS: loop_test.go:153: LoopUtilSuite.TestDetachLoopDevicesAlternativeRoot 0.000s
PASS: loop_test.go:168: LoopUtilSuite.TestDetachLoopDevicesAlternativeRootWithPrefix 0.000s
PASS: loop_test.go:112: LoopUtilSuite.TestDetachLoopDevicesDetachError 0.000s
PASS: loop_test.go:99: LoopUtilSuite.TestDetachLoopDevicesInodeMatch 0.000s
PASS: loop_test.go:87: LoopUtilSuite.TestDetachLoopDevicesInodeMismatch 0.000s
PASS: loop_test.go:53: LoopUtilSuite.TestDetachLoopDevicesListBadInode 0.000s
PASS: loop_test.go:43: LoopUtilSuite.TestDetachLoopDevicesListBadOutput 0.000s
PASS: loop_test.go:190: LoopUtilSuite.TestDetachLoopDevicesListEmptyInodeOK 0.000s
PASS: loop_test.go:33: LoopUtilSuite.TestDetachLoopDevicesListError 0.000s
PASS: loop_test.go:125: LoopUtilSuite.TestDetachLoopDevicesMultiple 0.000s
PASS: loop_test.go:23: LoopUtilSuite.TestDetachLoopDevicesNone 0.000s
PASS: loop_test.go:63: LoopUtilSuite.TestDetachLoopDevicesNotFound 0.000s
PASS: loop_test.go:75: LoopUtilSuite.TestDetachLoopDevicesStatError 0.000s
OK: 13 passed
PASS
ok github.com/juju/juju/storage/looputil 0.065s
|