Merge lp://staging/~bjornt/charms/precise/landscape-client/extra-meta-data into lp://staging/~charmers/charms/precise/landscape-client/trunk

Proposed by David Britton
Status: Merged
Approved by: Marco Ceppi
Approved revision: 21
Merged at revision: 20
Proposed branch: lp://staging/~bjornt/charms/precise/landscape-client/extra-meta-data
Merge into: lp://staging/~charmers/charms/precise/landscape-client/trunk
Diff against target: 37 lines (+10/-8)
2 files modified
hooks/container-relation-joined (+9/-7)
revision (+1/-1)
To merge this branch: bzr merge lp://staging/~bjornt/charms/precise/landscape-client/extra-meta-data
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Review via email: mp+150113@code.staging.launchpad.net

Description of the change

Write each juju info to a separate file in the meta-data.d directory when communicating on the container relationship.

To post a comment you must log in.
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Hi Björn, Thanks for submitting this merge! As far as the changes you have submitted, they look good. However, I have some concern about what this will do to currently deployed landscape-client charms. With this change you've modified the way meta-data is stored (moving it from juju-info file to meta-data.d directory). When users run upgrade-charm the old data will not be created which produces an inconsistency and potential breakage for users currently deploying this charm.

Ideally, a corner case should be added to upgrade-charm hook which checks for the existence of the old juju-info and convert it to the newer format. Could you confirm that the current changes won't break backwards compatibility with this new file structure? If so could you please resubmit with changes necessary to "upgrade" older clients to the newer format?

review: Needs Information
Revision history for this message
Marco Ceppi (marcoceppi) :
review: Approve
Revision history for this message
Björn Tillenius (bjornt) wrote :

On Thu, Mar 07, 2013 at 07:10:34PM -0000, Marco Ceppi wrote:
> Review: Needs Information
>
> Hi Björn, Thanks for submitting this merge! As far as the changes you
> have submitted, they look good. However, I have some concern about what
> this will do to currently deployed landscape-client charms. With this
> change you've modified the way meta-data is stored (moving it from
> juju-info file to meta-data.d directory). When users run upgrade-charm
> the old data will not be created which produces an inconsistency and
> potential breakage for users currently deploying this charm.

Hi Marco,

thanks for the review. We decided we don't have to provide
backwards-compatibility, since no released version of landscape-client
has this functionality yet. In order to make use of the juju integration
you have to use the trunk version of landscape-client, and it's expected
that you might have to reinstall if you do that.

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