juju get output is not compatible with juju set or juju deploy

Bug #1418608 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Domas Monkus

Bug Description

Juju provides a way to retrieve settings as yaml; juju get. It provides several ways to set settings from yaml: "juju deploy --config", and "juju set --config". But these yaml formats are incompatible, so you can't use "juju get" to retrieve a service's settings, then use "juju (deploy|set) --config" to apply these settings to another deployment. This is surprising.

Tags: ci deploy get set
Domas Monkus (tasdomas)
Changed in juju-core:
assignee: nobody → Domas Monkus (tasdomas)
assignee: Domas Monkus (tasdomas) → nobody
Revision history for this message
Domas Monkus (tasdomas) wrote :

I guess the default output format of `juju get` should not be changed. Should we consider adding a command line parameter (e.g. --reuse)?

Revision history for this message
Aaron Bentley (abentley) wrote :

A command-line option on "get" would work, but I think it would be more convenient for users if "set" were changed to transparently accept get-style yaml.

If there is a command-line option, --format=set seems like a good one. Or --set-style if --format=set is not usable for some reason.

Domas Monkus (tasdomas)
Changed in juju-core:
assignee: nobody → Domas Monkus (tasdomas)
Revision history for this message
Domas Monkus (tasdomas) wrote :
Changed in juju-core:
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.23 → none
importance: High → Medium
Revision history for this message
Domas Monkus (tasdomas) wrote :

I've submitted a pull request to fix this, but it still needs reviews: http://reviews.vapour.ws/r/1116/

Changed in juju-core:
status: In Progress → Incomplete
Revision history for this message
Aaron Bentley (abentley) wrote :

Incomplete means cannot be verified.

Changed in juju-core:
status: Incomplete → Triaged
Changed in juju-core:
status: Triaged → Won't Fix
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.