Provide a way to ssh to the top-level host of a unit

Bug #1648218 reported by James Troup
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Wishlist
Unassigned

Bug Description

When investigating things like memory usage, it's not useful to look
at the container itself, you need to look at memory usage across the
host.

Right now, I have to run 'juju status APPLICATION/N' to figure out
which machine it's hosted on and then ssh to it. It'd be nice if I
could do 'juju ssh --host APPLICATION/N' to shorten this process.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

@James Troup,

'juju ssh' provides this functionality since Juju 1.x. See more information in 'juju help ssh'. Here is the extract:
...

Connect to a mysql unit:

    juju ssh mysql/0
...

Changed in juju:
status: New → Invalid
Revision history for this message
John A Meinel (jameinel) wrote :

Sorry, we misunderstood the initial request. You're asking to go to the host of a container, which should be possible.
Do you care at all about nested containers? If we did have that case, would we just end up on the highest host?

Changed in juju:
status: Invalid → Triaged
summary: - Provide a way to ssh to the host of any given unit
+ Provide a way to ssh to the top-level host of a unit
Changed in juju:
importance: Undecided → Wishlist
Revision history for this message
John A Meinel (jameinel) wrote :

It certainly shouldn't be hard for us to do the lookup for you, and find the underlying machine for any unit before doing the SSH.

Revision history for this message
James Troup (elmo) wrote : Re: [Bug 1648218] Re: Provide a way to ssh to the host of any given unit

John A Meinel <email address hidden> writes:

> Sorry, we misunderstood the initial request. You're asking to go to
> the host of a container, which should be possible. Do you care at
> all about nested containers? If we did have that case, would we just
> end up on the highest host?

I can see arguments either way, but I think on balance the highest
host would be the least surprising behaviour.

--
James

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
Junien F (axino)
Changed in juju:
status: Expired → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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