juju ssh exits with sub command returncode
Bug #1246938 reported by
Marco Ceppi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Abel Deuring |
Bug Description
Deploy a unit, juju ssh into that unit. Press Ctrl+C, then disconnect either via exit or Ctrl+D.
ubuntu@
ubuntu@
Connection to 15.185.108.183 closed.
ERROR exit status 130
marco@home:~$ echo $?
1
Juju ssh always exist with the return code of the last sub command executed. This behaviour is only expected when commands are passed to ssh.h
Related branches
lp:~adeuring/juju-core/1246938
- Abel Deuring (community): Approve
-
Diff: 124 lines (+30/-7)5 files modifiedcmd/supercommand.go (+3/-1)
environs/manual/init_test.go (+3/-3)
environs/manual/provisioner_test.go (+2/-2)
utils/ssh/ssh.go (+12/-1)
utils/ssh/ssh_test.go (+10/-0)
tags: | added: cts-cloud-review |
summary: |
- juju ssh exits with code 130 + juju ssh exits with sub command returncode |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: ui |
description: | updated |
tags: | added: ssh |
Changed in juju-core: | |
assignee: | nobody → Abel Deuring (adeuring) |
Changed in juju-core: | |
status: | Triaged → Fix Committed |
milestone: | none → 1.17.3 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
130 is SIGINT, from the internal ^C
On Fri, Nov 1, 2013 at 12:12 PM, Marco Ceppi <email address hidden> wrote: /bugs.launchpad .net/bugs/ 1246938 juju-ubuntu- discourse- alpha-machine- 0:~$ ^C juju-ubuntu- discourse- alpha-machine- 0:~$ logout /bugs.launchpad .net/juju- core/+bug/ 1246938/ +subscriptions
> ** Tags added: cts-cloud-review
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> Matching subscriptions: MOAR JUJU SPAM!
> https:/
>
> Title:
> juju ssh exits with code 130
>
> Status in juju-core:
> New
>
> Bug description:
> Deploy a unit, juju ssh into that unit. Press Ctrl+C, then disconnect
> either via exit or Ctrl+D.
>
> ubuntu@
> ubuntu@
> Connection to 15.185.108.183 closed.
> ERROR exit status 130
> marco@home:~$ echo $?
> 1
>
> To manage notifications about this bug go to:
> https:/