Merge lp:~james-page/charms/trusty/nova-compute/lp1531102-trunk into lp:~openstack-charmers-archive/charms/trusty/nova-compute/trunk

Proposed by James Page
Status: Merged
Merged at revision: 145
Proposed branch: lp:~james-page/charms/trusty/nova-compute/lp1531102-trunk
Merge into: lp:~openstack-charmers-archive/charms/trusty/nova-compute/trunk
Diff against target: 75 lines (+18/-16)
1 file modified
hooks/charmhelpers/contrib/openstack/utils.py (+18/-16)
To merge this branch: bzr merge lp:~james-page/charms/trusty/nova-compute/lp1531102-trunk
Reviewer Review Type Date Requested Status
Liam Young (community) Approve
Review via email: mp+281866@code.launchpad.net

Commit message

Resync helpers

Description of the change

Resync stable helpers to resolve liberty point release issues.

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #16736 nova-compute for james-page mp281866
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/16736/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #15638 nova-compute for james-page mp281866
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/15638/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #8564 nova-compute for james-page mp281866
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/8564/

Revision history for this message
Liam Young (gnuoy) wrote :

approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/charmhelpers/contrib/openstack/utils.py'
--- hooks/charmhelpers/contrib/openstack/utils.py 2015-10-22 15:11:10 +0000
+++ hooks/charmhelpers/contrib/openstack/utils.py 2016-01-07 14:23:06 +0000
@@ -127,31 +127,31 @@
127# >= Liberty version->codename mapping127# >= Liberty version->codename mapping
128PACKAGE_CODENAMES = {128PACKAGE_CODENAMES = {
129 'nova-common': OrderedDict([129 'nova-common': OrderedDict([
130 ('12.0.0', 'liberty'),130 ('12.0', 'liberty'),
131 ]),131 ]),
132 'neutron-common': OrderedDict([132 'neutron-common': OrderedDict([
133 ('7.0.0', 'liberty'),133 ('7.0', 'liberty'),
134 ]),134 ]),
135 'cinder-common': OrderedDict([135 'cinder-common': OrderedDict([
136 ('7.0.0', 'liberty'),136 ('7.0', 'liberty'),
137 ]),137 ]),
138 'keystone': OrderedDict([138 'keystone': OrderedDict([
139 ('8.0.0', 'liberty'),139 ('8.0', 'liberty'),
140 ]),140 ]),
141 'horizon-common': OrderedDict([141 'horizon-common': OrderedDict([
142 ('8.0.0', 'liberty'),142 ('8.0', 'liberty'),
143 ]),143 ]),
144 'ceilometer-common': OrderedDict([144 'ceilometer-common': OrderedDict([
145 ('5.0.0', 'liberty'),145 ('5.0', 'liberty'),
146 ]),146 ]),
147 'heat-common': OrderedDict([147 'heat-common': OrderedDict([
148 ('5.0.0', 'liberty'),148 ('5.0', 'liberty'),
149 ]),149 ]),
150 'glance-common': OrderedDict([150 'glance-common': OrderedDict([
151 ('11.0.0', 'liberty'),151 ('11.0', 'liberty'),
152 ]),152 ]),
153 'openstack-dashboard': OrderedDict([153 'openstack-dashboard': OrderedDict([
154 ('8.0.0', 'liberty'),154 ('8.0', 'liberty'),
155 ]),155 ]),
156}156}
157157
@@ -238,7 +238,14 @@
238 error_out(e)238 error_out(e)
239239
240 vers = apt.upstream_version(pkg.current_ver.ver_str)240 vers = apt.upstream_version(pkg.current_ver.ver_str)
241 match = re.match('^(\d+)\.(\d+)\.(\d+)', vers)241 if 'swift' in pkg.name:
242 # Fully x.y.z match for swift versions
243 match = re.match('^(\d+)\.(\d+)\.(\d+)', vers)
244 else:
245 # x.y match only for 20XX.X
246 # and ignore patch level for other packages
247 match = re.match('^(\d+)\.(\d+)', vers)
248
242 if match:249 if match:
243 vers = match.group(0)250 vers = match.group(0)
244251
@@ -250,13 +257,8 @@
250 # < Liberty co-ordinated project versions257 # < Liberty co-ordinated project versions
251 try:258 try:
252 if 'swift' in pkg.name:259 if 'swift' in pkg.name:
253 swift_vers = vers[:5]260 return SWIFT_CODENAMES[vers]
254 if swift_vers not in SWIFT_CODENAMES:
255 # Deal with 1.10.0 upward
256 swift_vers = vers[:6]
257 return SWIFT_CODENAMES[swift_vers]
258 else:261 else:
259 vers = vers[:6]
260 return OPENSTACK_CODENAMES[vers]262 return OPENSTACK_CODENAMES[vers]
261 except KeyError:263 except KeyError:
262 if not fatal:264 if not fatal:

Subscribers

People subscribed via source and target branches