Merge lp://staging/~jimbaker/pyjuju/scp-command into lp://staging/pyjuju
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Kapil Thangavelu | ||||
Approved revision: | 417 | ||||
Merged at revision: | 425 | ||||
Proposed branch: | lp://staging/~jimbaker/pyjuju/scp-command | ||||
Merge into: | lp://staging/pyjuju | ||||
Prerequisite: | lp://staging/~jimbaker/pyjuju/ssh-passthrough | ||||
Diff against target: |
534 lines (+369/-35) 8 files modified
juju/control/__init__.py (+2/-0) juju/control/debug_hooks.py (+1/-1) juju/control/scp.py (+89/-0) juju/control/ssh.py (+7/-31) juju/control/tests/test_scp.py (+159/-0) juju/control/tests/test_utils.py (+69/-1) juju/control/utils.py (+40/-0) misc/bash_completion.d/juju (+2/-2) |
||||
To merge this branch: | bzr merge lp://staging/~jimbaker/pyjuju/scp-command | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kapil Thangavelu (community) | Approve | ||
William Reade (community) | Approve | ||
Review via email: mp+80343@code.staging.launchpad.net |
This proposal supersedes a proposal from 2011-10-25.
Description of the change
Implements juju scp subcommand, which is just a frontend to scp that expands unit names and machine IDs to their corresponding hosts. All options not parsed by juju subcommands are passed through to the underlying scp command.
Unlike juju ssh, juju scp does not verify agent liveness. It seems to me that this is not necessarily desirable, especially for debugging, but if so, it's certainly easy to add this verification.
Previously, it was considered that a relative path for a unit name like mysql/0 should get prepended with /var/lib/
All looks sensible to me.
[0]
This rather looks as though it was intended to be stacked on ssh-passthrough.
[1]
I didn't realise "juju ssh" demands a live agent; if anything should be changed, I think it's this. I rather imagine that the majority of uses of ssh/scp will be in response to something surprising happening, and if one of the surprising things is a dead machine agent it will be somewhat irritating to have "juju ssh" inoperable, where plain old "ssh" would still work fine..