cmd/juju: juju ssh $SERVICE tries to work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned | ||
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Juju ssh supports two modes
juju ssh $MACHINE
juju ssh $SERVICE/$UNIT
However if you forget the $UNIT, you get this confusing message
lucky(~
Added charm "cs:precise/
lucky(~
environment: us-east-1
machines:
"9":
agent-state: pending
instance-id: i-063bf656
instance-state: pending
series: precise
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
services:
mysql:
charm: cs:precise/mysql-42
exposed: false
relations:
cluster:
- mysql
units:
mysql/0:
machine: "9"
lucky(~
nc: getaddrinfo: Name or service not known
ERROR subprocess encountered error code 1
ssh_exchange_
ERROR subprocess encountered error code 255
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju-core: | |
importance: | High → Medium |
Changed in juju: | |
milestone: | 2.1-rc2 → none |
It assumes that if it's not a machine or a unit, then it must be a hostname. It seems mysql would be a valid hostname.
Would the best approach be to wait until the hostname resolution has failed and output an error message with some suggestions?