Can't ssh into lxd container using a proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
When I try to connect to an LXD container on an AWS EC2 machine with the command:
juju --debug ssh --proxy 0/lxd/4
This is the result:
INFO juju.cmd supercommand.go:56 running juju [2.3.8 gc go1.10.2]
DEBUG juju.cmd supercommand.go:57 args: []string{"juju", "--debug", "ssh", "--proxy", "0/lxd/4"}
INFO juju.juju api.go:67 connecting to API addresses: [REDACTED:17070 REDACTED:17070 REDACTED:17070 REDACTED:17070 REDACTED:17070 REDACTED:17070 REDACTED:17070 REDACTED:17070 REDACTED:17070]
DEBUG juju.api apiclient.go:843 successfully dialed "wss://
INFO juju.api apiclient.go:597 connection established to "wss://
DEBUG juju.cmd.
DEBUG juju.cmd.
DEBUG juju.utils.ssh ssh.go:305 using OpenSSH ssh client
ssh_exchange_
DEBUG juju.api monitor.go:35 RPC connection died
INFO cmd supercommand.go:465 command finished
Every configurations are using defaults and this is no a new controller with Juju 2.3.8.
I'm not 100% sure about the internals or if I'm supposed to do some configurations manually in order to make connections to LXD containers work.
Connection to the AWS EC2 machine works flawlessly with juju ssh 0.
tags: | added: ssh |
tags: | added: aws lxd |
tags: | added: network |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
I'm running into the same issue, using the Juju openstack provider (Juju 2.7.2 on bionic) /pastebin. ubuntu. com/p/pJgZfwHr7 4/ /pastebin. ubuntu. com/p/2Jpcr3JmH g/
* juju client perspective: https:/
* machine-0.log from controller: https:/
On a single machine,
1) I have deployed "openstack-on-lxd" with Juju LXD provider
2) Then bootstrapped a Juju openstack environment on top of the previously deployed openstack service
FWIW, I have created lxdbr1 on the bare metal and a static route to reach the Neutron network via the "provider-router" running in the neutron-gateway unit.
Any OpenStack instance that I launch is reachable, and it also works via "juju bootstrap" and "juju deploy" + "juju ssh".
However, if I deployed "juju deploy cs:ubuntu ubuntu-lxd --to lxd:1",
1) I can "juju run --unit ubuntu-lxd/0 hostname" (it runs through the controller
2) I can "juju ssh -m controller 0"
3) I can "juju ssh -m default ubuntu/0" (a nova instance managed by Juju)
4) I cannot "juju ssh -m default ubuntu-lxd/0" (when proxy-ssh=false)
5) I cannot "juju ssh -m default ubuntu-lxd/0" (when proxy-ssh=true)
fan-252 interface is in place on all the openstack machines, and I can reach via ping and "nc <lxd-fan-ip> 22" from the controller node.