Implement 'juju scp' subcommand

Bug #720307 reported by Jim Baker
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pyjuju
Medium
Jim Baker

Bug Description

Users need a simple way to transfer files back and forth from machines so as to facilitate a test-edit cycle. Like juju ssh, this would be with respect to unit names. The command usage would look like this:

juju scp mysql/0:$PATH $LOCAL_PATH

where $PATH, if relative, would be against /var/lib/juju/units/mysql-0/. Other options, such as -r, would be passed to the underlying scp command being used to do the actual copy.

Tags: api Edit Tag help

Related branches

Changed in ensemble:
milestone: none → dublin
importance: Undecided → Medium
Changed in ensemble:
milestone: dublin → none
Revision history for this message
James Page (james-page) wrote :

+1 - this would be really helpful for pulling results from units for charm testing.

Revision history for this message
Juan L. Negron (negronjl) wrote :

+1 - This would really help in troubleshooting charms as well.

Revision history for this message
Jim Baker (jimbaker) wrote :

Support for juju scp should be simple, consisting essentially of parsing the args specific to juju scp and re-expressing for the scp command itself.

Passing through args to scp itself can be facilitated by this support in argparse; http://docs.python.org/dev/library/argparse.html#partial-parsing. We should consider doing the same for juju ssh itself.

summary: - Implement 'ensemble scp' subcommand
+ Implement 'juju scp' subcommand
description: updated
Changed in juju:
status: New → Confirmed
Jim Baker (jimbaker)
Changed in juju:
assignee: nobody → Jim Baker (jimbaker)
Jim Baker (jimbaker)
Changed in juju:
milestone: none → florence
Jim Baker (jimbaker)
Changed in juju:
status: Confirmed → In Progress
Jim Baker (jimbaker)
tags: added: api
Jim Baker (jimbaker)
Changed in juju:
status: In Progress → Fix Committed
Jim Baker (jimbaker)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers