How to get private-address in juju status output?
Andreas Hasenack
andreas at canonical.com
Wed Nov 27 15:52:45 UTC 2013
On Wed, Nov 27, 2013 at 12:48 PM, Serge E. Hallyn <serge at hallyn.com> wrote:
> 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.
>
>
I want it from the machine coordinating the deployments, i.e., where you
run "juju deploy", "juju status", etc. Parsing logs to get that is hacky.
I'll resort to nova commands.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20131127/9b6bfb94/attachment.html>
More information about the Juju
mailing list