Merge lp://qastaging/~gnuoy/charm-helpers/cepg-broker into lp://qastaging/charm-helpers

Proposed by Liam Young
Status: Merged
Merged at revision: 447
Proposed branch: lp://qastaging/~gnuoy/charm-helpers/cepg-broker
Merge into: lp://qastaging/charm-helpers
Diff against target: 812 lines (+612/-30)
5 files modified
charmhelpers/contrib/openstack/context.py (+8/-9)
charmhelpers/contrib/storage/linux/ceph.py (+224/-2)
tests/contrib/openstack/test_os_contexts.py (+36/-4)
tests/contrib/storage/test_linux_ceph.py (+337/-8)
tests/helpers.py (+7/-7)
To merge this branch: bzr merge lp://qastaging/~gnuoy/charm-helpers/cepg-broker
Reviewer Review Type Date Requested Status
Edward Hope-Morley Approve
Chris Glass (community) Approve
Review via email: mp+268591@code.qastaging.launchpad.net
To post a comment you must log in.
Revision history for this message
Chris Glass (tribaal) wrote :

Hi, thanks for your proposal.

The code looks fine in general, but it would really help future readers if you could expand the docstrings a little bit to explain what the problem they are trying to solve is. I understand it now, after some effort, while the bug and context is still fresh, but I (and others) certainly won't in a few months if coming back to it is needed.

An extra bit at the beginning of the file or outside of a particular function about how the newly introduced functions are supposed to be called by whom and in what order would also help tremendously.

I know it seems verbose right now, but it will really save a lot of time if in the future somebody has to look at this code again.

Suggestions inline.

review: Needs Information
Revision history for this message
Edward Hope-Morley (hopem) wrote :

In general I think this is good but please see comments in https://code.launchpad.net/~gnuoy/charms/trusty/ceph/1453940/+merge/268614

Can you please make log lvels specific. Right now they are all default i.e. INFO but mpost should be DEBUG.

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Still reviewing but in general I prefer this approach. 1 inline comment.

443. By Liam Young

Change how ops injection works in light of review comments

444. By Liam Young

Some tidyup

Revision history for this message
Chris Glass (tribaal) wrote :

Looks good now after the cleanups and additions, thanks a lot. +1

review: Approve
Revision history for this message
Edward Hope-Morley (hopem) wrote :

LGTM +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches