How to get private-address in juju status output?

Serge E. Hallyn serge at hallyn.com
Wed Nov 27 14:48:50 UTC 2013


Quoting Andreas Hasenack (andreas at canonical.com):
> Hi,
> 
> I have an instance on openstack (canonistack) that got a floating ip, and
> that address is now showing as public-address. I guess that's ok.
> 
> Except it's not reachable via ssh anymore (nor juju ssh). For some reason
> (bug? deployment issue?) public addresses are not routeable from within
> that cloud itself. You have to use the private address.
> 
> So, how do I get the private address in the juju status output?
> 
> This is juju-core 1.16.3, btw (server and client).

Well in the past I've passed the private address along by using
relation-get private-address.  So you should be able to do

PRIVADDR=`relation-get private-address`
juju-log "private address is $PRIVADDR"

unless I misunderstand what you want.

-serge



More information about the Juju mailing list