Merge lp:~hopem/charms/trusty/swift-proxy/lp1499435 into lp:~openstack-charmers-archive/charms/trusty/swift-proxy/next

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: 114
Proposed branch: lp:~hopem/charms/trusty/swift-proxy/lp1499435
Merge into: lp:~openstack-charmers-archive/charms/trusty/swift-proxy/next
Diff against target: 28 lines (+6/-6)
1 file modified
lib/swift_utils.py (+6/-6)
To merge this branch: bzr merge lp:~hopem/charms/trusty/swift-proxy/lp1499435
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+272285@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #10687 swift-proxy-next for hopem mp272285
    LINT OK: passed

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

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

charm_unit_test #9871 swift-proxy-next for hopem mp272285
    UNIT OK: passed

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

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

charm_amulet_test #6751 swift-proxy-next for hopem mp272285
    AMULET OK: passed

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

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

charm_amulet_test #6762 swift-proxy-next for hopem mp272285
    AMULET OK: passed

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/swift_utils.py'
2--- lib/swift_utils.py 2015-09-17 13:27:01 +0000
3+++ lib/swift_utils.py 2015-09-24 16:41:24 +0000
4@@ -23,6 +23,7 @@
5 import charmhelpers.contrib.openstack.context as context
6 import charmhelpers.contrib.openstack.templating as templating
7 from charmhelpers.contrib.openstack.utils import (
8+ os_release,
9 get_os_codename_package,
10 get_os_codename_install_source,
11 configure_installation_source
12@@ -587,12 +588,11 @@
13 "than Trusty 14.04")
14 raise SwiftProxyCharmException(msg)
15
16- # NOTE(xianghui): Need to install haproxy(1.5.3) from trusty-backports
17- # to support ipv6 address, so check is required to make sure not
18- # breaking other versions, IPv6 only support for >= Trusty
19- if ubuntu_rel == 'trusty':
20- add_source('deb http://archive.ubuntu.com/ubuntu trusty-backports'
21- ' main')
22+ # Need haproxy >= 1.5.3 for ipv6 so for Trusty if we are <= Kilo we need to
23+ # use trusty-backports otherwise we can use the UCA.
24+ if ubuntu_rel == 'trusty' and os_release('swift-proxy') < 'liberty':
25+ add_source('deb http://archive.ubuntu.com/ubuntu trusty-backports '
26+ 'main')
27 apt_update()
28 apt_install('haproxy/trusty-backports', fatal=True)
29

Subscribers

People subscribed via source and target branches