mojo should support setting options for juju services to match existing deploy phase configs

Bug #1524872 reported by Tom Haddon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Fix Released
Low
Unassigned

Bug Description

Currently if you run a deploy phase against an already deployed environment, and some of the config options have changed, juju-deployer won't sync the changes for you (see bug #1200663). We should add an option to mojo to support this. This should be available as a deploy phase option, as well as a standalone phase.

As an example:

deploy config=services local=services-secrets sync-config=True

Or a standalone phase:

sync-deploy-config config=services local=services-secrets

Related branches

Tom Haddon (mthaddon)
Changed in mojo:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Robin Winslow (nottrobin) wrote :
Revision history for this message
Robin Winslow (nottrobin) wrote :

Apologies for the private link. Here's a public paste of the relevant part of that code - "update_deployed_services".

http://pastebin.ubuntu.com/14687410/

It does the following:

- Back-up existing local charms
- Go through each service and
  > Upgrade its charm if it changed
  > Update its settings if they've changed

It does the charm-upgrade (as mentioned in this bug: https://bugs.launchpad.net/mojo/+bug/1530831) and the settings-update together, because in some situations you may have new settings which only work with the new charm version and would break the old one - so updating the two as close to each other as possible is safest.

Tom Haddon (mthaddon)
Changed in mojo:
status: Confirmed → Fix Committed
Tom Haddon (mthaddon)
Changed in mojo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.