Merge lp:~hopem/charms/trusty/cinder/lp1518975 into lp:~openstack-charmers-archive/charms/trusty/cinder/next
- Trusty Tahr (14.04)
- lp1518975
- Merge into next
Proposed by
Edward Hope-Morley
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 145 | ||||
Proposed branch: | lp:~hopem/charms/trusty/cinder/lp1518975 | ||||
Merge into: | lp:~openstack-charmers-archive/charms/trusty/cinder/next | ||||
Diff against target: |
672 lines (+212/-97) 9 files modified
charm-helpers-hooks.yaml (+1/-1) hooks/charmhelpers/contrib/openstack/amulet/deployment.py (+3/-2) hooks/charmhelpers/contrib/openstack/context.py (+11/-7) hooks/charmhelpers/contrib/openstack/neutron.py (+18/-6) hooks/charmhelpers/contrib/openstack/utils.py (+108/-43) hooks/charmhelpers/contrib/python/packages.py (+22/-7) hooks/charmhelpers/core/host.py (+41/-26) hooks/charmhelpers/fetch/giturl.py (+5/-3) tests/charmhelpers/contrib/openstack/amulet/deployment.py (+3/-2) |
||||
To merge this branch: | bzr merge lp:~hopem/charms/trusty/cinder/lp1518975 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenStack Charmers | Pending | ||
Review via email: mp+285747@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_lint_check #221 cinder-next for hopem mp285747
LINT OK: passed
- 146. By Edward Hope-Morley
-
charm-helpers sync
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_lint_check #227 cinder-next for hopem mp285747
LINT OK: passed
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_unit_test #212 cinder-next for hopem mp285747
UNIT OK: passed
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_amulet_test #105 cinder-next for hopem mp285747
AMULET OK: passed
- 147. By Edward Hope-Morley
-
restore charm-helpers-
hooks.yaml (no other changes since sync was null)
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_lint_check #354 cinder-next for hopem mp285747
LINT OK: passed
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_unit_test #277 cinder-next for hopem mp285747
UNIT OK: passed
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote : | # |
charm_amulet_test #129 cinder-next for hopem mp285747
AMULET OK: passed
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'charm-helpers-hooks.yaml' | |||
2 | --- charm-helpers-hooks.yaml 2016-01-08 02:32:19 +0000 | |||
3 | +++ charm-helpers-hooks.yaml 2016-02-12 09:36:40 +0000 | |||
4 | @@ -1,4 +1,4 @@ | |||
6 | 1 | branch: lp:charm-helpers | 1 | branch: lp:charm-helpers |
7 | 2 | destination: hooks/charmhelpers | 2 | destination: hooks/charmhelpers |
8 | 3 | include: | 3 | include: |
9 | 4 | - core | 4 | - core |
10 | 5 | 5 | ||
11 | === modified file 'hooks/charmhelpers/contrib/openstack/amulet/deployment.py' | |||
12 | --- hooks/charmhelpers/contrib/openstack/amulet/deployment.py 2016-01-04 21:26:14 +0000 | |||
13 | +++ hooks/charmhelpers/contrib/openstack/amulet/deployment.py 2016-02-12 09:36:40 +0000 | |||
14 | @@ -121,11 +121,12 @@ | |||
15 | 121 | 121 | ||
16 | 122 | # Charms which should use the source config option | 122 | # Charms which should use the source config option |
17 | 123 | use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph', | 123 | use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph', |
19 | 124 | 'ceph-osd', 'ceph-radosgw'] | 124 | 'ceph-osd', 'ceph-radosgw', 'ceph-mon'] |
20 | 125 | 125 | ||
21 | 126 | # Charms which can not use openstack-origin, ie. many subordinates | 126 | # Charms which can not use openstack-origin, ie. many subordinates |
22 | 127 | no_origin = ['cinder-ceph', 'hacluster', 'neutron-openvswitch', 'nrpe', | 127 | no_origin = ['cinder-ceph', 'hacluster', 'neutron-openvswitch', 'nrpe', |
24 | 128 | 'openvswitch-odl', 'neutron-api-odl', 'odl-controller'] | 128 | 'openvswitch-odl', 'neutron-api-odl', 'odl-controller', |
25 | 129 | 'cinder-backup'] | ||
26 | 129 | 130 | ||
27 | 130 | if self.openstack: | 131 | if self.openstack: |
28 | 131 | for svc in services: | 132 | for svc in services: |
29 | 132 | 133 | ||
30 | === modified file 'hooks/charmhelpers/contrib/openstack/context.py' | |||
31 | --- hooks/charmhelpers/contrib/openstack/context.py 2016-01-08 02:37:16 +0000 | |||
32 | +++ hooks/charmhelpers/contrib/openstack/context.py 2016-02-12 09:36:40 +0000 | |||
33 | @@ -90,6 +90,12 @@ | |||
34 | 90 | from charmhelpers.contrib.openstack.utils import get_host_ip | 90 | from charmhelpers.contrib.openstack.utils import get_host_ip |
35 | 91 | from charmhelpers.core.unitdata import kv | 91 | from charmhelpers.core.unitdata import kv |
36 | 92 | 92 | ||
37 | 93 | try: | ||
38 | 94 | import psutil | ||
39 | 95 | except ImportError: | ||
40 | 96 | apt_install('python-psutil', fatal=True) | ||
41 | 97 | import psutil | ||
42 | 98 | |||
43 | 93 | CA_CERT_PATH = '/usr/local/share/ca-certificates/keystone_juju_ca_cert.crt' | 99 | CA_CERT_PATH = '/usr/local/share/ca-certificates/keystone_juju_ca_cert.crt' |
44 | 94 | ADDRESS_TYPES = ['admin', 'internal', 'public'] | 100 | ADDRESS_TYPES = ['admin', 'internal', 'public'] |
45 | 95 | 101 | ||
46 | @@ -1258,13 +1264,11 @@ | |||
47 | 1258 | 1264 | ||
48 | 1259 | @property | 1265 | @property |
49 | 1260 | def num_cpus(self): | 1266 | def num_cpus(self): |
57 | 1261 | try: | 1267 | # NOTE: use cpu_count if present (16.04 support) |
58 | 1262 | from psutil import NUM_CPUS | 1268 | if hasattr(psutil, 'cpu_count'): |
59 | 1263 | except ImportError: | 1269 | return psutil.cpu_count() |
60 | 1264 | apt_install('python-psutil', fatal=True) | 1270 | else: |
61 | 1265 | from psutil import NUM_CPUS | 1271 | return psutil.NUM_CPUS |
55 | 1266 | |||
56 | 1267 | return NUM_CPUS | ||
62 | 1268 | 1272 | ||
63 | 1269 | def __call__(self): | 1273 | def __call__(self): |
64 | 1270 | multiplier = config('worker-multiplier') or 0 | 1274 | multiplier = config('worker-multiplier') or 0 |
65 | 1271 | 1275 | ||
66 | === modified file 'hooks/charmhelpers/contrib/openstack/neutron.py' | |||
67 | --- hooks/charmhelpers/contrib/openstack/neutron.py 2016-01-04 21:26:14 +0000 | |||
68 | +++ hooks/charmhelpers/contrib/openstack/neutron.py 2016-02-12 09:36:40 +0000 | |||
69 | @@ -50,7 +50,7 @@ | |||
70 | 50 | if kernel_version() >= (3, 13): | 50 | if kernel_version() >= (3, 13): |
71 | 51 | return [] | 51 | return [] |
72 | 52 | else: | 52 | else: |
74 | 53 | return ['openvswitch-datapath-dkms'] | 53 | return [headers_package(), 'openvswitch-datapath-dkms'] |
75 | 54 | 54 | ||
76 | 55 | 55 | ||
77 | 56 | # legacy | 56 | # legacy |
78 | @@ -70,7 +70,7 @@ | |||
79 | 70 | relation_prefix='neutron', | 70 | relation_prefix='neutron', |
80 | 71 | ssl_dir=QUANTUM_CONF_DIR)], | 71 | ssl_dir=QUANTUM_CONF_DIR)], |
81 | 72 | 'services': ['quantum-plugin-openvswitch-agent'], | 72 | 'services': ['quantum-plugin-openvswitch-agent'], |
83 | 73 | 'packages': [[headers_package()] + determine_dkms_package(), | 73 | 'packages': [determine_dkms_package(), |
84 | 74 | ['quantum-plugin-openvswitch-agent']], | 74 | ['quantum-plugin-openvswitch-agent']], |
85 | 75 | 'server_packages': ['quantum-server', | 75 | 'server_packages': ['quantum-server', |
86 | 76 | 'quantum-plugin-openvswitch'], | 76 | 'quantum-plugin-openvswitch'], |
87 | @@ -111,7 +111,7 @@ | |||
88 | 111 | relation_prefix='neutron', | 111 | relation_prefix='neutron', |
89 | 112 | ssl_dir=NEUTRON_CONF_DIR)], | 112 | ssl_dir=NEUTRON_CONF_DIR)], |
90 | 113 | 'services': ['neutron-plugin-openvswitch-agent'], | 113 | 'services': ['neutron-plugin-openvswitch-agent'], |
92 | 114 | 'packages': [[headers_package()] + determine_dkms_package(), | 114 | 'packages': [determine_dkms_package(), |
93 | 115 | ['neutron-plugin-openvswitch-agent']], | 115 | ['neutron-plugin-openvswitch-agent']], |
94 | 116 | 'server_packages': ['neutron-server', | 116 | 'server_packages': ['neutron-server', |
95 | 117 | 'neutron-plugin-openvswitch'], | 117 | 'neutron-plugin-openvswitch'], |
96 | @@ -155,7 +155,7 @@ | |||
97 | 155 | relation_prefix='neutron', | 155 | relation_prefix='neutron', |
98 | 156 | ssl_dir=NEUTRON_CONF_DIR)], | 156 | ssl_dir=NEUTRON_CONF_DIR)], |
99 | 157 | 'services': [], | 157 | 'services': [], |
101 | 158 | 'packages': [[headers_package()] + determine_dkms_package(), | 158 | 'packages': [determine_dkms_package(), |
102 | 159 | ['neutron-plugin-cisco']], | 159 | ['neutron-plugin-cisco']], |
103 | 160 | 'server_packages': ['neutron-server', | 160 | 'server_packages': ['neutron-server', |
104 | 161 | 'neutron-plugin-cisco'], | 161 | 'neutron-plugin-cisco'], |
105 | @@ -174,7 +174,7 @@ | |||
106 | 174 | 'neutron-dhcp-agent', | 174 | 'neutron-dhcp-agent', |
107 | 175 | 'nova-api-metadata', | 175 | 'nova-api-metadata', |
108 | 176 | 'etcd'], | 176 | 'etcd'], |
110 | 177 | 'packages': [[headers_package()] + determine_dkms_package(), | 177 | 'packages': [determine_dkms_package(), |
111 | 178 | ['calico-compute', | 178 | ['calico-compute', |
112 | 179 | 'bird', | 179 | 'bird', |
113 | 180 | 'neutron-dhcp-agent', | 180 | 'neutron-dhcp-agent', |
114 | @@ -219,7 +219,7 @@ | |||
115 | 219 | relation_prefix='neutron', | 219 | relation_prefix='neutron', |
116 | 220 | ssl_dir=NEUTRON_CONF_DIR)], | 220 | ssl_dir=NEUTRON_CONF_DIR)], |
117 | 221 | 'services': [], | 221 | 'services': [], |
119 | 222 | 'packages': [[headers_package()] + determine_dkms_package()], | 222 | 'packages': [determine_dkms_package()], |
120 | 223 | 'server_packages': ['neutron-server', | 223 | 'server_packages': ['neutron-server', |
121 | 224 | 'python-neutron-plugin-midonet'], | 224 | 'python-neutron-plugin-midonet'], |
122 | 225 | 'server_services': ['neutron-server'] | 225 | 'server_services': ['neutron-server'] |
123 | @@ -233,6 +233,18 @@ | |||
124 | 233 | 'neutron-plugin-ml2'] | 233 | 'neutron-plugin-ml2'] |
125 | 234 | # NOTE: patch in vmware renames nvp->nsx for icehouse onwards | 234 | # NOTE: patch in vmware renames nvp->nsx for icehouse onwards |
126 | 235 | plugins['nvp'] = plugins['nsx'] | 235 | plugins['nvp'] = plugins['nsx'] |
127 | 236 | if release >= 'kilo': | ||
128 | 237 | plugins['midonet']['driver'] = ( | ||
129 | 238 | 'neutron.plugins.midonet.plugin.MidonetPluginV2') | ||
130 | 239 | if release >= 'liberty': | ||
131 | 240 | midonet_origin = config('midonet-origin') | ||
132 | 241 | if midonet_origin is not None and midonet_origin[4:5] == '1': | ||
133 | 242 | plugins['midonet']['driver'] = ( | ||
134 | 243 | 'midonet.neutron.plugin_v1.MidonetPluginV2') | ||
135 | 244 | plugins['midonet']['server_packages'].remove( | ||
136 | 245 | 'python-neutron-plugin-midonet') | ||
137 | 246 | plugins['midonet']['server_packages'].append( | ||
138 | 247 | 'python-networking-midonet') | ||
139 | 236 | return plugins | 248 | return plugins |
140 | 237 | 249 | ||
141 | 238 | 250 | ||
142 | 239 | 251 | ||
143 | === modified file 'hooks/charmhelpers/contrib/openstack/utils.py' | |||
144 | --- hooks/charmhelpers/contrib/openstack/utils.py 2016-01-08 02:37:16 +0000 | |||
145 | +++ hooks/charmhelpers/contrib/openstack/utils.py 2016-02-12 09:36:40 +0000 | |||
146 | @@ -25,6 +25,7 @@ | |||
147 | 25 | import re | 25 | import re |
148 | 26 | 26 | ||
149 | 27 | import six | 27 | import six |
150 | 28 | import tempfile | ||
151 | 28 | import traceback | 29 | import traceback |
152 | 29 | import uuid | 30 | import uuid |
153 | 30 | import yaml | 31 | import yaml |
154 | @@ -41,6 +42,7 @@ | |||
155 | 41 | config, | 42 | config, |
156 | 42 | log as juju_log, | 43 | log as juju_log, |
157 | 43 | charm_dir, | 44 | charm_dir, |
158 | 45 | DEBUG, | ||
159 | 44 | INFO, | 46 | INFO, |
160 | 45 | related_units, | 47 | related_units, |
161 | 46 | relation_ids, | 48 | relation_ids, |
162 | @@ -103,29 +105,28 @@ | |||
163 | 103 | ('2016.1', 'mitaka'), | 105 | ('2016.1', 'mitaka'), |
164 | 104 | ]) | 106 | ]) |
165 | 105 | 107 | ||
167 | 106 | # The ugly duckling | 108 | # The ugly duckling - must list releases oldest to newest |
168 | 107 | SWIFT_CODENAMES = OrderedDict([ | 109 | SWIFT_CODENAMES = OrderedDict([ |
190 | 108 | ('1.4.3', 'diablo'), | 110 | ('diablo', |
191 | 109 | ('1.4.8', 'essex'), | 111 | ['1.4.3']), |
192 | 110 | ('1.7.4', 'folsom'), | 112 | ('essex', |
193 | 111 | ('1.8.0', 'grizzly'), | 113 | ['1.4.8']), |
194 | 112 | ('1.7.7', 'grizzly'), | 114 | ('folsom', |
195 | 113 | ('1.7.6', 'grizzly'), | 115 | ['1.7.4']), |
196 | 114 | ('1.10.0', 'havana'), | 116 | ('grizzly', |
197 | 115 | ('1.9.1', 'havana'), | 117 | ['1.7.6', '1.7.7', '1.8.0']), |
198 | 116 | ('1.9.0', 'havana'), | 118 | ('havana', |
199 | 117 | ('1.13.1', 'icehouse'), | 119 | ['1.9.0', '1.9.1', '1.10.0']), |
200 | 118 | ('1.13.0', 'icehouse'), | 120 | ('icehouse', |
201 | 119 | ('1.12.0', 'icehouse'), | 121 | ['1.11.0', '1.12.0', '1.13.0', '1.13.1']), |
202 | 120 | ('1.11.0', 'icehouse'), | 122 | ('juno', |
203 | 121 | ('2.0.0', 'juno'), | 123 | ['2.0.0', '2.1.0', '2.2.0']), |
204 | 122 | ('2.1.0', 'juno'), | 124 | ('kilo', |
205 | 123 | ('2.2.0', 'juno'), | 125 | ['2.2.1', '2.2.2']), |
206 | 124 | ('2.2.1', 'kilo'), | 126 | ('liberty', |
207 | 125 | ('2.2.2', 'kilo'), | 127 | ['2.3.0', '2.4.0', '2.5.0']), |
208 | 126 | ('2.3.0', 'liberty'), | 128 | ('mitaka', |
209 | 127 | ('2.4.0', 'liberty'), | 129 | ['2.5.0']), |
189 | 128 | ('2.5.0', 'liberty'), | ||
210 | 129 | ]) | 130 | ]) |
211 | 130 | 131 | ||
212 | 131 | # >= Liberty version->codename mapping | 132 | # >= Liberty version->codename mapping |
213 | @@ -227,6 +228,33 @@ | |||
214 | 227 | error_out(e) | 228 | error_out(e) |
215 | 228 | 229 | ||
216 | 229 | 230 | ||
217 | 231 | def get_os_version_codename_swift(codename): | ||
218 | 232 | '''Determine OpenStack version number of swift from codename.''' | ||
219 | 233 | for k, v in six.iteritems(SWIFT_CODENAMES): | ||
220 | 234 | if k == codename: | ||
221 | 235 | return v[-1] | ||
222 | 236 | e = 'Could not derive swift version for '\ | ||
223 | 237 | 'codename: %s' % codename | ||
224 | 238 | error_out(e) | ||
225 | 239 | |||
226 | 240 | |||
227 | 241 | def get_swift_codename(version): | ||
228 | 242 | '''Determine OpenStack codename that corresponds to swift version.''' | ||
229 | 243 | codenames = [k for k, v in six.iteritems(SWIFT_CODENAMES) if version in v] | ||
230 | 244 | if len(codenames) > 1: | ||
231 | 245 | # If more than one release codename contains this version we determine | ||
232 | 246 | # the actual codename based on the highest available install source. | ||
233 | 247 | for codename in reversed(codenames): | ||
234 | 248 | releases = UBUNTU_OPENSTACK_RELEASE | ||
235 | 249 | release = [k for k, v in six.iteritems(releases) if codename in v] | ||
236 | 250 | ret = subprocess.check_output(['apt-cache', 'policy', 'swift']) | ||
237 | 251 | if codename in ret or release[0] in ret: | ||
238 | 252 | return codename | ||
239 | 253 | elif len(codenames) == 1: | ||
240 | 254 | return codenames[0] | ||
241 | 255 | return None | ||
242 | 256 | |||
243 | 257 | |||
244 | 230 | def get_os_codename_package(package, fatal=True): | 258 | def get_os_codename_package(package, fatal=True): |
245 | 231 | '''Derive OpenStack release codename from an installed package.''' | 259 | '''Derive OpenStack release codename from an installed package.''' |
246 | 232 | import apt_pkg as apt | 260 | import apt_pkg as apt |
247 | @@ -270,7 +298,7 @@ | |||
248 | 270 | # < Liberty co-ordinated project versions | 298 | # < Liberty co-ordinated project versions |
249 | 271 | try: | 299 | try: |
250 | 272 | if 'swift' in pkg.name: | 300 | if 'swift' in pkg.name: |
252 | 273 | return SWIFT_CODENAMES[vers] | 301 | return get_swift_codename(vers) |
253 | 274 | else: | 302 | else: |
254 | 275 | return OPENSTACK_CODENAMES[vers] | 303 | return OPENSTACK_CODENAMES[vers] |
255 | 276 | except KeyError: | 304 | except KeyError: |
256 | @@ -289,12 +317,14 @@ | |||
257 | 289 | 317 | ||
258 | 290 | if 'swift' in pkg: | 318 | if 'swift' in pkg: |
259 | 291 | vers_map = SWIFT_CODENAMES | 319 | vers_map = SWIFT_CODENAMES |
260 | 320 | for cname, version in six.iteritems(vers_map): | ||
261 | 321 | if cname == codename: | ||
262 | 322 | return version[-1] | ||
263 | 292 | else: | 323 | else: |
264 | 293 | vers_map = OPENSTACK_CODENAMES | 324 | vers_map = OPENSTACK_CODENAMES |
269 | 294 | 325 | for version, cname in six.iteritems(vers_map): | |
270 | 295 | for version, cname in six.iteritems(vers_map): | 326 | if cname == codename: |
271 | 296 | if cname == codename: | 327 | return version |
268 | 297 | return version | ||
272 | 298 | # e = "Could not determine OpenStack version for package: %s" % pkg | 328 | # e = "Could not determine OpenStack version for package: %s" % pkg |
273 | 299 | # error_out(e) | 329 | # error_out(e) |
274 | 300 | 330 | ||
275 | @@ -319,12 +349,42 @@ | |||
276 | 319 | 349 | ||
277 | 320 | 350 | ||
278 | 321 | def import_key(keyid): | 351 | def import_key(keyid): |
285 | 322 | cmd = "apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 " \ | 352 | key = keyid.strip() |
286 | 323 | "--recv-keys %s" % keyid | 353 | if (key.startswith('-----BEGIN PGP PUBLIC KEY BLOCK-----') and |
287 | 324 | try: | 354 | key.endswith('-----END PGP PUBLIC KEY BLOCK-----')): |
288 | 325 | subprocess.check_call(cmd.split(' ')) | 355 | juju_log("PGP key found (looks like ASCII Armor format)", level=DEBUG) |
289 | 326 | except subprocess.CalledProcessError: | 356 | juju_log("Importing ASCII Armor PGP key", level=DEBUG) |
290 | 327 | error_out("Error importing repo key %s" % keyid) | 357 | with tempfile.NamedTemporaryFile() as keyfile: |
291 | 358 | with open(keyfile.name, 'w') as fd: | ||
292 | 359 | fd.write(key) | ||
293 | 360 | fd.write("\n") | ||
294 | 361 | |||
295 | 362 | cmd = ['apt-key', 'add', keyfile.name] | ||
296 | 363 | try: | ||
297 | 364 | subprocess.check_call(cmd) | ||
298 | 365 | except subprocess.CalledProcessError: | ||
299 | 366 | error_out("Error importing PGP key '%s'" % key) | ||
300 | 367 | else: | ||
301 | 368 | juju_log("PGP key found (looks like Radix64 format)", level=DEBUG) | ||
302 | 369 | juju_log("Importing PGP key from keyserver", level=DEBUG) | ||
303 | 370 | cmd = ['apt-key', 'adv', '--keyserver', | ||
304 | 371 | 'hkp://keyserver.ubuntu.com:80', '--recv-keys', key] | ||
305 | 372 | try: | ||
306 | 373 | subprocess.check_call(cmd) | ||
307 | 374 | except subprocess.CalledProcessError: | ||
308 | 375 | error_out("Error importing PGP key '%s'" % key) | ||
309 | 376 | |||
310 | 377 | |||
311 | 378 | def get_source_and_pgp_key(input): | ||
312 | 379 | """Look for a pgp key ID or ascii-armor key in the given input.""" | ||
313 | 380 | index = input.strip() | ||
314 | 381 | index = input.rfind('|') | ||
315 | 382 | if index < 0: | ||
316 | 383 | return input, None | ||
317 | 384 | |||
318 | 385 | key = input[index + 1:].strip('|') | ||
319 | 386 | source = input[:index] | ||
320 | 387 | return source, key | ||
321 | 328 | 388 | ||
322 | 329 | 389 | ||
323 | 330 | def configure_installation_source(rel): | 390 | def configure_installation_source(rel): |
324 | @@ -336,16 +396,16 @@ | |||
325 | 336 | with open('/etc/apt/sources.list.d/juju_deb.list', 'w') as f: | 396 | with open('/etc/apt/sources.list.d/juju_deb.list', 'w') as f: |
326 | 337 | f.write(DISTRO_PROPOSED % ubuntu_rel) | 397 | f.write(DISTRO_PROPOSED % ubuntu_rel) |
327 | 338 | elif rel[:4] == "ppa:": | 398 | elif rel[:4] == "ppa:": |
329 | 339 | src = rel | 399 | src, key = get_source_and_pgp_key(rel) |
330 | 400 | if key: | ||
331 | 401 | import_key(key) | ||
332 | 402 | |||
333 | 340 | subprocess.check_call(["add-apt-repository", "-y", src]) | 403 | subprocess.check_call(["add-apt-repository", "-y", src]) |
334 | 341 | elif rel[:3] == "deb": | 404 | elif rel[:3] == "deb": |
339 | 342 | l = len(rel.split('|')) | 405 | src, key = get_source_and_pgp_key(rel) |
340 | 343 | if l == 2: | 406 | if key: |
337 | 344 | src, key = rel.split('|') | ||
338 | 345 | juju_log("Importing PPA key from keyserver for %s" % src) | ||
341 | 346 | import_key(key) | 407 | import_key(key) |
344 | 347 | elif l == 1: | 408 | |
343 | 348 | src = rel | ||
345 | 349 | with open('/etc/apt/sources.list.d/juju_deb.list', 'w') as f: | 409 | with open('/etc/apt/sources.list.d/juju_deb.list', 'w') as f: |
346 | 350 | f.write(src) | 410 | f.write(src) |
347 | 351 | elif rel[:6] == 'cloud:': | 411 | elif rel[:6] == 'cloud:': |
348 | @@ -460,11 +520,16 @@ | |||
349 | 460 | cur_vers = get_os_version_package(package) | 520 | cur_vers = get_os_version_package(package) |
350 | 461 | if "swift" in package: | 521 | if "swift" in package: |
351 | 462 | codename = get_os_codename_install_source(src) | 522 | codename = get_os_codename_install_source(src) |
353 | 463 | available_vers = get_os_version_codename(codename, SWIFT_CODENAMES) | 523 | avail_vers = get_os_version_codename_swift(codename) |
354 | 464 | else: | 524 | else: |
356 | 465 | available_vers = get_os_version_install_source(src) | 525 | avail_vers = get_os_version_install_source(src) |
357 | 466 | apt.init() | 526 | apt.init() |
359 | 467 | return apt.version_compare(available_vers, cur_vers) == 1 | 527 | if "swift" in package: |
360 | 528 | major_cur_vers = cur_vers.split('.', 1)[0] | ||
361 | 529 | major_avail_vers = avail_vers.split('.', 1)[0] | ||
362 | 530 | major_diff = apt.version_compare(major_avail_vers, major_cur_vers) | ||
363 | 531 | return avail_vers > cur_vers and (major_diff == 1 or major_diff == 0) | ||
364 | 532 | return apt.version_compare(avail_vers, cur_vers) == 1 | ||
365 | 468 | 533 | ||
366 | 469 | 534 | ||
367 | 470 | def ensure_block_device(block_device): | 535 | def ensure_block_device(block_device): |
368 | 471 | 536 | ||
369 | === modified file 'hooks/charmhelpers/contrib/python/packages.py' | |||
370 | --- hooks/charmhelpers/contrib/python/packages.py 2016-01-04 21:26:14 +0000 | |||
371 | +++ hooks/charmhelpers/contrib/python/packages.py 2016-02-12 09:36:40 +0000 | |||
372 | @@ -19,20 +19,35 @@ | |||
373 | 19 | 19 | ||
374 | 20 | import os | 20 | import os |
375 | 21 | import subprocess | 21 | import subprocess |
376 | 22 | import sys | ||
377 | 22 | 23 | ||
378 | 23 | from charmhelpers.fetch import apt_install, apt_update | 24 | from charmhelpers.fetch import apt_install, apt_update |
379 | 24 | from charmhelpers.core.hookenv import charm_dir, log | 25 | from charmhelpers.core.hookenv import charm_dir, log |
380 | 25 | 26 | ||
381 | 26 | try: | ||
382 | 27 | from pip import main as pip_execute | ||
383 | 28 | except ImportError: | ||
384 | 29 | apt_update() | ||
385 | 30 | apt_install('python-pip') | ||
386 | 31 | from pip import main as pip_execute | ||
387 | 32 | |||
388 | 33 | __author__ = "Jorge Niedbalski <jorge.niedbalski@canonical.com>" | 27 | __author__ = "Jorge Niedbalski <jorge.niedbalski@canonical.com>" |
389 | 34 | 28 | ||
390 | 35 | 29 | ||
391 | 30 | def pip_execute(*args, **kwargs): | ||
392 | 31 | """Overriden pip_execute() to stop sys.path being changed. | ||
393 | 32 | |||
394 | 33 | The act of importing main from the pip module seems to cause add wheels | ||
395 | 34 | from the /usr/share/python-wheels which are installed by various tools. | ||
396 | 35 | This function ensures that sys.path remains the same after the call is | ||
397 | 36 | executed. | ||
398 | 37 | """ | ||
399 | 38 | try: | ||
400 | 39 | _path = sys.path | ||
401 | 40 | try: | ||
402 | 41 | from pip import main as _pip_execute | ||
403 | 42 | except ImportError: | ||
404 | 43 | apt_update() | ||
405 | 44 | apt_install('python-pip') | ||
406 | 45 | from pip import main as _pip_execute | ||
407 | 46 | _pip_execute(*args, **kwargs) | ||
408 | 47 | finally: | ||
409 | 48 | sys.path = _path | ||
410 | 49 | |||
411 | 50 | |||
412 | 36 | def parse_options(given, available): | 51 | def parse_options(given, available): |
413 | 37 | """Given a set of options, check if available""" | 52 | """Given a set of options, check if available""" |
414 | 38 | for key, value in sorted(given.items()): | 53 | for key, value in sorted(given.items()): |
415 | 39 | 54 | ||
416 | === modified file 'hooks/charmhelpers/core/host.py' | |||
417 | --- hooks/charmhelpers/core/host.py 2016-01-08 02:37:16 +0000 | |||
418 | +++ hooks/charmhelpers/core/host.py 2016-02-12 09:36:40 +0000 | |||
419 | @@ -138,7 +138,8 @@ | |||
420 | 138 | except subprocess.CalledProcessError: | 138 | except subprocess.CalledProcessError: |
421 | 139 | return False | 139 | return False |
422 | 140 | else: | 140 | else: |
424 | 141 | if ("start/running" in output or "is running" in output): | 141 | if ("start/running" in output or "is running" in output or |
425 | 142 | "up and running" in output): | ||
426 | 142 | return True | 143 | return True |
427 | 143 | else: | 144 | else: |
428 | 144 | return False | 145 | return False |
429 | @@ -160,13 +161,13 @@ | |||
430 | 160 | 161 | ||
431 | 161 | 162 | ||
432 | 162 | def init_is_systemd(): | 163 | def init_is_systemd(): |
433 | 164 | """Return True if the host system uses systemd, False otherwise.""" | ||
434 | 163 | return os.path.isdir(SYSTEMD_SYSTEM) | 165 | return os.path.isdir(SYSTEMD_SYSTEM) |
435 | 164 | 166 | ||
436 | 165 | 167 | ||
437 | 166 | def adduser(username, password=None, shell='/bin/bash', system_user=False, | 168 | def adduser(username, password=None, shell='/bin/bash', system_user=False, |
438 | 167 | primary_group=None, secondary_groups=None): | 169 | primary_group=None, secondary_groups=None): |
441 | 168 | """ | 170 | """Add a user to the system. |
440 | 169 | Add a user to the system. | ||
442 | 170 | 171 | ||
443 | 171 | Will log but otherwise succeed if the user already exists. | 172 | Will log but otherwise succeed if the user already exists. |
444 | 172 | 173 | ||
445 | @@ -174,7 +175,7 @@ | |||
446 | 174 | :param str password: Password for user; if ``None``, create a system user | 175 | :param str password: Password for user; if ``None``, create a system user |
447 | 175 | :param str shell: The default shell for the user | 176 | :param str shell: The default shell for the user |
448 | 176 | :param bool system_user: Whether to create a login or system user | 177 | :param bool system_user: Whether to create a login or system user |
450 | 177 | :param str primary_group: Primary group for user; defaults to their username | 178 | :param str primary_group: Primary group for user; defaults to username |
451 | 178 | :param list secondary_groups: Optional list of additional groups | 179 | :param list secondary_groups: Optional list of additional groups |
452 | 179 | 180 | ||
453 | 180 | :returns: The password database entry struct, as returned by `pwd.getpwnam` | 181 | :returns: The password database entry struct, as returned by `pwd.getpwnam` |
454 | @@ -300,14 +301,12 @@ | |||
455 | 300 | 301 | ||
456 | 301 | 302 | ||
457 | 302 | def fstab_remove(mp): | 303 | def fstab_remove(mp): |
460 | 303 | """Remove the given mountpoint entry from /etc/fstab | 304 | """Remove the given mountpoint entry from /etc/fstab""" |
459 | 304 | """ | ||
461 | 305 | return Fstab.remove_by_mountpoint(mp) | 305 | return Fstab.remove_by_mountpoint(mp) |
462 | 306 | 306 | ||
463 | 307 | 307 | ||
464 | 308 | def fstab_add(dev, mp, fs, options=None): | 308 | def fstab_add(dev, mp, fs, options=None): |
467 | 309 | """Adds the given device entry to the /etc/fstab file | 309 | """Adds the given device entry to the /etc/fstab file""" |
466 | 310 | """ | ||
468 | 311 | return Fstab.add(dev, mp, fs, options=options) | 310 | return Fstab.add(dev, mp, fs, options=options) |
469 | 312 | 311 | ||
470 | 313 | 312 | ||
471 | @@ -363,8 +362,7 @@ | |||
472 | 363 | 362 | ||
473 | 364 | 363 | ||
474 | 365 | def file_hash(path, hash_type='md5'): | 364 | def file_hash(path, hash_type='md5'): |
477 | 366 | """ | 365 | """Generate a hash checksum of the contents of 'path' or None if not found. |
476 | 367 | Generate a hash checksum of the contents of 'path' or None if not found. | ||
478 | 368 | 366 | ||
479 | 369 | :param str hash_type: Any hash alrgorithm supported by :mod:`hashlib`, | 367 | :param str hash_type: Any hash alrgorithm supported by :mod:`hashlib`, |
480 | 370 | such as md5, sha1, sha256, sha512, etc. | 368 | such as md5, sha1, sha256, sha512, etc. |
481 | @@ -379,10 +377,9 @@ | |||
482 | 379 | 377 | ||
483 | 380 | 378 | ||
484 | 381 | def path_hash(path): | 379 | def path_hash(path): |
489 | 382 | """ | 380 | """Generate a hash checksum of all files matching 'path'. Standard |
490 | 383 | Generate a hash checksum of all files matching 'path'. Standard wildcards | 381 | wildcards like '*' and '?' are supported, see documentation for the 'glob' |
491 | 384 | like '*' and '?' are supported, see documentation for the 'glob' module for | 382 | module for more information. |
488 | 385 | more information. | ||
492 | 386 | 383 | ||
493 | 387 | :return: dict: A { filename: hash } dictionary for all matched files. | 384 | :return: dict: A { filename: hash } dictionary for all matched files. |
494 | 388 | Empty if none found. | 385 | Empty if none found. |
495 | @@ -394,8 +391,7 @@ | |||
496 | 394 | 391 | ||
497 | 395 | 392 | ||
498 | 396 | def check_hash(path, checksum, hash_type='md5'): | 393 | def check_hash(path, checksum, hash_type='md5'): |
501 | 397 | """ | 394 | """Validate a file using a cryptographic checksum. |
500 | 398 | Validate a file using a cryptographic checksum. | ||
502 | 399 | 395 | ||
503 | 400 | :param str checksum: Value of the checksum used to validate the file. | 396 | :param str checksum: Value of the checksum used to validate the file. |
504 | 401 | :param str hash_type: Hash algorithm used to generate `checksum`. | 397 | :param str hash_type: Hash algorithm used to generate `checksum`. |
505 | @@ -410,6 +406,7 @@ | |||
506 | 410 | 406 | ||
507 | 411 | 407 | ||
508 | 412 | class ChecksumError(ValueError): | 408 | class ChecksumError(ValueError): |
509 | 409 | """A class derived from Value error to indicate the checksum failed.""" | ||
510 | 413 | pass | 410 | pass |
511 | 414 | 411 | ||
512 | 415 | 412 | ||
513 | @@ -515,7 +512,7 @@ | |||
514 | 515 | 512 | ||
515 | 516 | 513 | ||
516 | 517 | def list_nics(nic_type=None): | 514 | def list_nics(nic_type=None): |
518 | 518 | '''Return a list of nics of given type(s)''' | 515 | """Return a list of nics of given type(s)""" |
519 | 519 | if isinstance(nic_type, six.string_types): | 516 | if isinstance(nic_type, six.string_types): |
520 | 520 | int_types = [nic_type] | 517 | int_types = [nic_type] |
521 | 521 | else: | 518 | else: |
522 | @@ -557,12 +554,13 @@ | |||
523 | 557 | 554 | ||
524 | 558 | 555 | ||
525 | 559 | def set_nic_mtu(nic, mtu): | 556 | def set_nic_mtu(nic, mtu): |
527 | 560 | '''Set MTU on a network interface''' | 557 | """Set the Maximum Transmission Unit (MTU) on a network interface.""" |
528 | 561 | cmd = ['ip', 'link', 'set', nic, 'mtu', mtu] | 558 | cmd = ['ip', 'link', 'set', nic, 'mtu', mtu] |
529 | 562 | subprocess.check_call(cmd) | 559 | subprocess.check_call(cmd) |
530 | 563 | 560 | ||
531 | 564 | 561 | ||
532 | 565 | def get_nic_mtu(nic): | 562 | def get_nic_mtu(nic): |
533 | 563 | """Return the Maximum Transmission Unit (MTU) for a network interface.""" | ||
534 | 566 | cmd = ['ip', 'addr', 'show', nic] | 564 | cmd = ['ip', 'addr', 'show', nic] |
535 | 567 | ip_output = subprocess.check_output(cmd).decode('UTF-8').split('\n') | 565 | ip_output = subprocess.check_output(cmd).decode('UTF-8').split('\n') |
536 | 568 | mtu = "" | 566 | mtu = "" |
537 | @@ -574,6 +572,7 @@ | |||
538 | 574 | 572 | ||
539 | 575 | 573 | ||
540 | 576 | def get_nic_hwaddr(nic): | 574 | def get_nic_hwaddr(nic): |
541 | 575 | """Return the Media Access Control (MAC) for a network interface.""" | ||
542 | 577 | cmd = ['ip', '-o', '-0', 'addr', 'show', nic] | 576 | cmd = ['ip', '-o', '-0', 'addr', 'show', nic] |
543 | 578 | ip_output = subprocess.check_output(cmd).decode('UTF-8') | 577 | ip_output = subprocess.check_output(cmd).decode('UTF-8') |
544 | 579 | hwaddr = "" | 578 | hwaddr = "" |
545 | @@ -584,7 +583,7 @@ | |||
546 | 584 | 583 | ||
547 | 585 | 584 | ||
548 | 586 | def cmp_pkgrevno(package, revno, pkgcache=None): | 585 | def cmp_pkgrevno(package, revno, pkgcache=None): |
550 | 587 | '''Compare supplied revno with the revno of the installed package | 586 | """Compare supplied revno with the revno of the installed package |
551 | 588 | 587 | ||
552 | 589 | * 1 => Installed revno is greater than supplied arg | 588 | * 1 => Installed revno is greater than supplied arg |
553 | 590 | * 0 => Installed revno is the same as supplied arg | 589 | * 0 => Installed revno is the same as supplied arg |
554 | @@ -593,7 +592,7 @@ | |||
555 | 593 | This function imports apt_cache function from charmhelpers.fetch if | 592 | This function imports apt_cache function from charmhelpers.fetch if |
556 | 594 | the pkgcache argument is None. Be sure to add charmhelpers.fetch if | 593 | the pkgcache argument is None. Be sure to add charmhelpers.fetch if |
557 | 595 | you call this function, or pass an apt_pkg.Cache() instance. | 594 | you call this function, or pass an apt_pkg.Cache() instance. |
559 | 596 | ''' | 595 | """ |
560 | 597 | import apt_pkg | 596 | import apt_pkg |
561 | 598 | if not pkgcache: | 597 | if not pkgcache: |
562 | 599 | from charmhelpers.fetch import apt_cache | 598 | from charmhelpers.fetch import apt_cache |
563 | @@ -603,19 +602,27 @@ | |||
564 | 603 | 602 | ||
565 | 604 | 603 | ||
566 | 605 | @contextmanager | 604 | @contextmanager |
568 | 606 | def chdir(d): | 605 | def chdir(directory): |
569 | 606 | """Change the current working directory to a different directory for a code | ||
570 | 607 | block and return the previous directory after the block exits. Useful to | ||
571 | 608 | run commands from a specificed directory. | ||
572 | 609 | |||
573 | 610 | :param str directory: The directory path to change to for this context. | ||
574 | 611 | """ | ||
575 | 607 | cur = os.getcwd() | 612 | cur = os.getcwd() |
576 | 608 | try: | 613 | try: |
578 | 609 | yield os.chdir(d) | 614 | yield os.chdir(directory) |
579 | 610 | finally: | 615 | finally: |
580 | 611 | os.chdir(cur) | 616 | os.chdir(cur) |
581 | 612 | 617 | ||
582 | 613 | 618 | ||
583 | 614 | def chownr(path, owner, group, follow_links=True, chowntopdir=False): | 619 | def chownr(path, owner, group, follow_links=True, chowntopdir=False): |
586 | 615 | """ | 620 | """Recursively change user and group ownership of files and directories |
585 | 616 | Recursively change user and group ownership of files and directories | ||
587 | 617 | in given path. Doesn't chown path itself by default, only its children. | 621 | in given path. Doesn't chown path itself by default, only its children. |
588 | 618 | 622 | ||
589 | 623 | :param str path: The string path to start changing ownership. | ||
590 | 624 | :param str owner: The owner string to use when looking up the uid. | ||
591 | 625 | :param str group: The group string to use when looking up the gid. | ||
592 | 619 | :param bool follow_links: Also Chown links if True | 626 | :param bool follow_links: Also Chown links if True |
593 | 620 | :param bool chowntopdir: Also chown path itself if True | 627 | :param bool chowntopdir: Also chown path itself if True |
594 | 621 | """ | 628 | """ |
595 | @@ -639,15 +646,23 @@ | |||
596 | 639 | 646 | ||
597 | 640 | 647 | ||
598 | 641 | def lchownr(path, owner, group): | 648 | def lchownr(path, owner, group): |
599 | 649 | """Recursively change user and group ownership of files and directories | ||
600 | 650 | in a given path, not following symbolic links. See the documentation for | ||
601 | 651 | 'os.lchown' for more information. | ||
602 | 652 | |||
603 | 653 | :param str path: The string path to start changing ownership. | ||
604 | 654 | :param str owner: The owner string to use when looking up the uid. | ||
605 | 655 | :param str group: The group string to use when looking up the gid. | ||
606 | 656 | """ | ||
607 | 642 | chownr(path, owner, group, follow_links=False) | 657 | chownr(path, owner, group, follow_links=False) |
608 | 643 | 658 | ||
609 | 644 | 659 | ||
610 | 645 | def get_total_ram(): | 660 | def get_total_ram(): |
612 | 646 | '''The total amount of system RAM in bytes. | 661 | """The total amount of system RAM in bytes. |
613 | 647 | 662 | ||
614 | 648 | This is what is reported by the OS, and may be overcommitted when | 663 | This is what is reported by the OS, and may be overcommitted when |
615 | 649 | there are multiple containers hosted on the same machine. | 664 | there are multiple containers hosted on the same machine. |
617 | 650 | ''' | 665 | """ |
618 | 651 | with open('/proc/meminfo', 'r') as f: | 666 | with open('/proc/meminfo', 'r') as f: |
619 | 652 | for line in f.readlines(): | 667 | for line in f.readlines(): |
620 | 653 | if line: | 668 | if line: |
621 | 654 | 669 | ||
622 | === modified file 'hooks/charmhelpers/fetch/giturl.py' | |||
623 | --- hooks/charmhelpers/fetch/giturl.py 2016-01-08 02:37:16 +0000 | |||
624 | +++ hooks/charmhelpers/fetch/giturl.py 2016-02-12 09:36:40 +0000 | |||
625 | @@ -15,7 +15,7 @@ | |||
626 | 15 | # along with charm-helpers. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with charm-helpers. If not, see <http://www.gnu.org/licenses/>. |
627 | 16 | 16 | ||
628 | 17 | import os | 17 | import os |
630 | 18 | from subprocess import check_call | 18 | from subprocess import check_call, CalledProcessError |
631 | 19 | from charmhelpers.fetch import ( | 19 | from charmhelpers.fetch import ( |
632 | 20 | BaseFetchHandler, | 20 | BaseFetchHandler, |
633 | 21 | UnhandledSource, | 21 | UnhandledSource, |
634 | @@ -49,8 +49,8 @@ | |||
635 | 49 | cmd = ['git', '-C', dest, 'pull', source, branch] | 49 | cmd = ['git', '-C', dest, 'pull', source, branch] |
636 | 50 | else: | 50 | else: |
637 | 51 | cmd = ['git', 'clone', source, dest, '--branch', branch] | 51 | cmd = ['git', 'clone', source, dest, '--branch', branch] |
640 | 52 | if depth: | 52 | if depth: |
641 | 53 | cmd.extend(['--depth', depth]) | 53 | cmd.extend(['--depth', depth]) |
642 | 54 | check_call(cmd) | 54 | check_call(cmd) |
643 | 55 | 55 | ||
644 | 56 | def install(self, source, branch="master", dest=None, depth=None): | 56 | def install(self, source, branch="master", dest=None, depth=None): |
645 | @@ -63,6 +63,8 @@ | |||
646 | 63 | branch_name) | 63 | branch_name) |
647 | 64 | try: | 64 | try: |
648 | 65 | self.clone(source, dest_dir, branch, depth) | 65 | self.clone(source, dest_dir, branch, depth) |
649 | 66 | except CalledProcessError as e: | ||
650 | 67 | raise UnhandledSource(e) | ||
651 | 66 | except OSError as e: | 68 | except OSError as e: |
652 | 67 | raise UnhandledSource(e.strerror) | 69 | raise UnhandledSource(e.strerror) |
653 | 68 | return dest_dir | 70 | return dest_dir |
654 | 69 | 71 | ||
655 | === modified file 'tests/charmhelpers/contrib/openstack/amulet/deployment.py' | |||
656 | --- tests/charmhelpers/contrib/openstack/amulet/deployment.py 2016-01-04 21:26:14 +0000 | |||
657 | +++ tests/charmhelpers/contrib/openstack/amulet/deployment.py 2016-02-12 09:36:40 +0000 | |||
658 | @@ -121,11 +121,12 @@ | |||
659 | 121 | 121 | ||
660 | 122 | # Charms which should use the source config option | 122 | # Charms which should use the source config option |
661 | 123 | use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph', | 123 | use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph', |
663 | 124 | 'ceph-osd', 'ceph-radosgw'] | 124 | 'ceph-osd', 'ceph-radosgw', 'ceph-mon'] |
664 | 125 | 125 | ||
665 | 126 | # Charms which can not use openstack-origin, ie. many subordinates | 126 | # Charms which can not use openstack-origin, ie. many subordinates |
666 | 127 | no_origin = ['cinder-ceph', 'hacluster', 'neutron-openvswitch', 'nrpe', | 127 | no_origin = ['cinder-ceph', 'hacluster', 'neutron-openvswitch', 'nrpe', |
668 | 128 | 'openvswitch-odl', 'neutron-api-odl', 'odl-controller'] | 128 | 'openvswitch-odl', 'neutron-api-odl', 'odl-controller', |
669 | 129 | 'cinder-backup'] | ||
670 | 129 | 130 | ||
671 | 130 | if self.openstack: | 131 | if self.openstack: |
672 | 131 | for svc in services: | 132 | for svc in services: |
charm_unit_test #202 cinder-next for hopem mp285747
UNIT OK: passed
Build: http:// 10.245. 162.36: 8080/job/ charm_unit_ test/202/