Merge lp:~chris.macnaughton/charm-helpers/default-rbd-features into lp:charm-helpers

Proposed by Chris MacNaughton
Status: Superseded
Proposed branch: lp:~chris.macnaughton/charm-helpers/default-rbd-features
Merge into: lp:charm-helpers
Diff against target: 34 lines (+6/-1)
2 files modified
charmhelpers/contrib/openstack/context.py (+2/-0)
charmhelpers/contrib/openstack/templates/ceph.conf (+4/-1)
To merge this branch: bzr merge lp:~chris.macnaughton/charm-helpers/default-rbd-features
Reviewer Review Type Date Requested Status
Chris MacNaughton (community) Needs Resubmitting
Pen Gale (community) Approve
David Ames Pending
Review via email: mp+326531@code.launchpad.net

This proposal has been superseded by a proposal from 2017-07-17.

To post a comment you must log in.
Revision history for this message
Pen Gale (pengale) wrote :

This is what I expected, based on conversations in the Openstack team sync. +1

review: Approve
Revision history for this message
Chris MacNaughton (chris.macnaughton) :
review: Needs Fixing
758. By Chris MacNaughton

update to use relation data

Revision history for this message
Chris MacNaughton (chris.macnaughton) :
review: Needs Resubmitting

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charmhelpers/contrib/openstack/context.py'
2--- charmhelpers/contrib/openstack/context.py 2017-05-01 05:08:50 +0000
3+++ charmhelpers/contrib/openstack/context.py 2017-07-07 15:01:02 +0000
4@@ -510,6 +510,8 @@
5 ctxt['auth'] = relation_get('auth', rid=rid, unit=unit)
6 if not ctxt.get('key'):
7 ctxt['key'] = relation_get('key', rid=rid, unit=unit)
8+ if not ctxt.get('rbd_features'):
9+ ctxt['rbd_features'] = relation_get('rbd-features', rid=rid, unit=unit)
10
11 ceph_addrs = relation_get('ceph-public-address', rid=rid,
12 unit=unit)
13
14=== modified file 'charmhelpers/contrib/openstack/templates/ceph.conf'
15--- charmhelpers/contrib/openstack/templates/ceph.conf 2015-07-14 09:18:09 +0000
16+++ charmhelpers/contrib/openstack/templates/ceph.conf 2017-07-07 15:01:02 +0000
17@@ -1,6 +1,6 @@
18 ###############################################################################
19 # [ WARNING ]
20-# cinder configuration file maintained by Juju
21+# ceph configuration file maintained by Juju
22 # local changes may be overwritten.
23 ###############################################################################
24 [global]
25@@ -12,6 +12,9 @@
26 log to syslog = {{ use_syslog }}
27 err to syslog = {{ use_syslog }}
28 clog to syslog = {{ use_syslog }}
29+{% if rbd_features %}
30+rbd default features = {{ rbd_features }}
31+{% endif %}
32
33 [client]
34 {% if rbd_client_cache_settings -%}

Subscribers

People subscribed via source and target branches