"juju ssh" adds an additional strings to all commands when used on Windows, in interactive mode

Bug #1468752 reported by Adrian Vladu
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Martin Packman
2.0
Fix Released
High
Martin Packman
2.1
Fix Released
High
Martin Packman
juju-core
Won't Fix
Undecided
Unassigned
1.25
Won't Fix
Undecided
Unassigned

Bug Description

When used on Windows, juju ssh (interactive) adds additional strings to the ssh commands. As a consequence, every ssh command fails with command not found.

juju bootstrap still works, as the commands are given in a way that this bug does not affect them. Furthermore, if I add blank spaces before and after the command, the command partially works.

Example:
PS C:\Users\user> .\juju.exe ssh 0
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-55-generic x86_64)
 * Documentation: https://help.ubuntu.com/
  System information as of Thu Jun 25 12:07:06 UTC 2015
  System load: 0.06 Processes: 251
  Usage of /: 17.8% of 15.62GB Users logged in: 0
  Memory usage: 5% IP address for eth0: 192.168.1.101
  Swap usage: 0%
  Graph this data and manage this system at:
    https://landscape.canonical.com/

-bash: line 1: $'\r': command not found
-bash: line 41: $'\r': command not found <<<----- when I press Enter
ls
-bash: line 42: $'ls\r': command not found
  ls .. <<<---- when I add spaces after and before the "ls .." command
..:
ubuntu
: No such file or directory

Tested with juju-1.24, juju-1.25-alpha1 on Windows 8.1.

Tags: ssh windows
Curtis Hovey (sinzui)
tags: added: ssh windows
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.25.0
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.25.0 → 1.25.1
Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :

So, this is still happening and is clearly a dos vs unix line endings problem. This is a big problem for any dev using Windows... Any timeframe for a fix or a workaround?

Changed in juju-core:
milestone: 1.25.1 → 1.25.2
Changed in juju-core:
milestone: 1.25.2 → 1.25.3
Changed in juju-core:
milestone: 1.25.3 → 1.25.4
Changed in juju-core:
milestone: 1.25.4 → 1.25.5
Changed in juju-core:
milestone: 1.25.5 → 1.25.6
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.25.6 → 1.25.7
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-beta18
Changed in juju-core:
status: Triaged → Won't Fix
milestone: 1.25.7 → none
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-beta18 → 2.0-beta19
Changed in juju:
milestone: 2.0-beta19 → 2.0-rc1
Changed in juju:
milestone: 2.0-rc1 → 2.0.1
Changed in juju:
assignee: nobody → Richard Harding (rharding)
Changed in juju:
milestone: 2.0.1 → 2.0.2
Martin Packman (gz)
Changed in juju:
assignee: Richard Harding (rharding) → Martin Packman (gz)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.2 → 2.0.3
Revision history for this message
Anastasia (anastasia-macmood) wrote :

PR against 2.1.x (develop): https://github.com/juju/juju/pull/6600

Changed in juju-core:
status: Won't Fix → Triaged
importance: High → Critical
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Martin Packman (gz)
Changed in juju:
status: In Progress → Fix Committed
milestone: 2.0.3 → 2.2.0-alpha1
Changed in juju-core:
milestone: none → 1.25.11
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
John A Meinel (jameinel) wrote :

The scope of the fix is such that it is non trivial to backport to 1.25. Given the number of people trying to run ssh onto Windows on 1.25 it doesn't feel worth the effort to develop a new fix there.

If we get significant demand that we really do need this, then we can reopen this, but its fairly accurate to say that we don't feel like this bug is worth the development effort at this time. 2.0/1 does have a fix for this, so it isn't an ongoing issue. And we're actively working on a migration path for 1.25 users to 2.X that is likely to be available in the 2.3 timeframe.

Changed in juju-core:
status: Triaged → Won't Fix
Changed in juju-core:
importance: Critical → Undecided
milestone: 1.25.11 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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