Merge lp:~billy-olsen/charms/trusty/cinder/backport-lp-1351401 into lp:~openstack-charmers-archive/charms/trusty/cinder/trunk

Proposed by Billy Olsen
Status: Merged
Merged at revision: 73
Proposed branch: lp:~billy-olsen/charms/trusty/cinder/backport-lp-1351401
Merge into: lp:~openstack-charmers-archive/charms/trusty/cinder/trunk
Diff against target: 30 lines (+12/-1)
1 file modified
hooks/charmhelpers/contrib/openstack/context.py (+12/-1)
To merge this branch: bzr merge lp:~billy-olsen/charms/trusty/cinder/backport-lp-1351401
Reviewer Review Type Date Requested Status
Liang Chen (community) Approve
Edward Hope-Morley Pending
OpenStack Charmers Pending
Review via email: mp+253599@code.launchpad.net

Description of the change

Backport fix for lp 1351401 into stable

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

charm_lint_check #2760 cinder for billy-olsen mp253599
    LINT OK: passed

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

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

charm_unit_test #2551 cinder for billy-olsen mp253599
    UNIT OK: passed

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

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

charm_amulet_test #2599 cinder for billy-olsen mp253599
    AMULET FAIL: amulet-test failed

AMULET Results (max last 2 lines):
  ERROR subprocess encountered error code 1
  make: *** [test] Error 1

Full amulet test output: http://paste.ubuntu.com/10630824/
Build: http://10.245.162.77:8080/job/charm_amulet_test/2599/

Revision history for this message
Liang Chen (cbjchen) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/charmhelpers/contrib/openstack/context.py'
2--- hooks/charmhelpers/contrib/openstack/context.py 2015-03-05 11:07:55 +0000
3+++ hooks/charmhelpers/contrib/openstack/context.py 2015-03-19 23:15:43 +0000
4@@ -64,6 +64,10 @@
5 from charmhelpers.contrib.openstack.neutron import (
6 neutron_plugin_attribute,
7 )
8+from charmhelpers.contrib.openstack.ip import (
9+ resolve_address,
10+ INTERNAL,
11+)
12 from charmhelpers.contrib.network.ip import (
13 get_address_in_network,
14 get_ipv6_addr,
15@@ -677,7 +681,14 @@
16 'endpoints': [],
17 'ext_ports': []}
18
19- for cn in self.canonical_names():
20+ cns = self.canonical_names()
21+ if cns:
22+ for cn in cns:
23+ self.configure_cert(cn)
24+ else:
25+ # Expect cert/key provided in config (currently assumed that ca
26+ # uses ip for cn)
27+ cn = resolve_address(endpoint_type=INTERNAL)
28 self.configure_cert(cn)
29
30 addresses = self.get_network_addresses()

Subscribers

People subscribed via source and target branches