unit-get public-address

Andrew Wilkins andrew.wilkins at canonical.com
Thu Dec 4 06:24:01 UTC 2014


On Thu, Dec 4, 2014 at 12:27 AM, Marco Ceppi <marco at ondina.co> wrote:

> We typically discourage querying cloud specific utils in charms as it
> makes them far less portable. It would be much more preferred to have this
> patched in Juju.


Sorry, I should have made this clear: this will be fixed in 1.21. The
workarounds I mentioned should only be used as a stop gap.


>
> On Wed Nov 26 2014 at 10:10:35 PM Andrew Wilkins <
> andrew.wilkins at canonical.com> wrote:
>
>> Hi Mike,
>>
>> Sounds like you're hitting
>> https://bugs.launchpad.net/juju-core/+bug/1308374.
>> There's a workaround described in the bug description: use an external
>> DNS.
>>
>> Alternatively, you could (temporarily) do something EC2-specific in your
>> charm:
>>     $(ec2metadata --public-ipv4)
>>
>> Cheers,
>> Andrew
>>
>>
>> On Thu, Nov 27, 2014 at 1:02 AM, Mike Schwartz <mike at gluu.org> wrote:
>>
>>> Juju gurus,
>>>
>>> $(unit-get public-address) from within a hook is failing for us right
>>> now on AWS. It returns the private address instead. I heard a fix will be
>>> available in juju v1.21. Is there any way workaround, as we really want to
>>> ship the Gluu Server charm ASAP.
>>>
>>> thx,
>>>
>>> Mike
>>>
>>>
>>> -------------------------------------
>>> Michael Schwartz
>>> Gluu
>>> Founder / CEO
>>> mike at gluu.org
>>>
>>> --
>>> Juju mailing list
>>> Juju at lists.ubuntu.com
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>>> mailman/listinfo/juju
>>>
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/juju
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20141204/ddeb6b95/attachment.html>


More information about the Juju mailing list