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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239 | INFO:root:Workspace dir: /var/lib/jenkins/workspace/charm_unit_test
INFO:root:Reading file: Makefile
INFO:root:Searching for: ['nosetest', 'unit.test']
INFO:root:command: make -f Makefile test
Starting unit tests...
Reading package lists... 0%
Reading package lists... 0%
Reading package lists... 1%
Reading package lists... 10%
Reading package lists... 10%
Reading package lists... 41%
Reading package lists... 50%
Reading package lists... 50%
Reading package lists... 55%
Reading package lists... 55%
Reading package lists... 79%
Reading package lists... 79%
Reading package lists... 84%
Reading package lists... 84%
Reading package lists... 86%
Reading package lists... 86%
Reading package lists... 90%
Reading package lists... 90%
Reading package lists... 91%
Reading package lists... 91%
Reading package lists... 94%
Reading package lists... 94%
Reading package lists... 95%
Reading package lists... 95%
Reading package lists... 95%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 98%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... 99%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 0%
Reading state information... Done
juju-log: Installing ['python-dnspython'] with options: ['--option=Dpkg::Options::=--force-confold']
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
juju-log: Couldn't acquire DPKG lock. Will retry in 10 seconds.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
test_process_requests_create_pool (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_create_pool_exists (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_create_pool_rid (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_invalid (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_invalid_api_rid (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_invalid_api_version (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_missing_api_version (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
test_process_requests_noop (unit_tests.test_ceph_broker.CephBrokerTestCase) ... ok
Failure: CalledProcessError (Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'python-dnspython']' returned non-zero exit status 100) ... ERROR
======================================================================
ERROR: Failure: CalledProcessError (Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'python-dnspython']' returned non-zero exit status 100)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/var/lib/jenkins/checkout/ceph/unit_tests/test_status.py", line 4, in <module>
import ceph_hooks as hooks
File "hooks/ceph_hooks.py", line 16, in <module>
import ceph
File "hooks/ceph.py", line 32, in <module>
from utils import (
File "hooks/utils.py", line 35, in <module>
fatal=True)
File "hooks/charmhelpers/fetch/__init__.py", line 191, in apt_install
_run_apt_command(cmd, fatal)
File "hooks/charmhelpers/fetch/__init__.py", line 445, in _run_apt_command
result = subprocess.check_call(cmd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'python-dnspython']' returned non-zero exit status 100
Name Stmts Miss Cover Missing
-------------------------------------------------
hooks/ceph 203 195 4% 36-418
hooks/ceph_broker 49 8 84% 45-50, 80-84
hooks/ceph_hooks 223 218 2% 17-427
-------------------------------------------------
TOTAL 475 421 11%
----------------------------------------------------------------------
Ran 9 tests in 0.014s
FAILED (errors=1)
make: *** [test] Error 1
ERROR:root:Make target returned non-zero.
|