Unit-get

Sameer Zeidat sameerz at yahoo.com
Mon Nov 10 03:39:18 UTC 2014


I always thought this area of juju can be improved. This coming from an end user of course, no a developer, so not sure if it's feasible.
For instance, maas provides networks support in the API. I can create networks, with names, and assign node interfaces to them (identified by mac address). It would be great if I could have a hook tool that can take a network name as a parameter and allow me to retrieve ip,ipv6, or fqdn of the interface attached to such a network. I suppose the implementation will look up maas api and match against the mac addresses returned by the juju agent running on the machine.
For openstack based clouds that network name would be neutron's (or nova-network) subnet name. I imagine it's also possible with openstack to get the instance interface details from the api and match against what the agent gathered from within the instance.
Regards,Sameer
       From: Andrew Wilkins <andrew.wilkins at canonical.com>
 To: Sameer Zeidat <sameerz at yahoo.com> 
Cc: juju <juju at lists.ubuntu.com> 
 Sent: Monday, November 10, 2014 12:09 PM
 Subject: Re: Unit-get
   
On Sun, Nov 9, 2014 at 7:16 AM, Sameer Zeidat <sameerz at yahoo.com> wrote:

Thanks. No, just curious. The documentation web page still shows an ip address.

Now, IMHO, it might have been better to add another call instead (e.g. unit-get private-fqdn).


There has been talk of adding a different hook tool command for enquiring about addresses ("address-get" was the name bandied about), to support additional networks. When that comes about, I think it may make sense to enable charms to enquire about all the addresses they have, and enable filtering on address types (IPv4, IPv6, FQDN).

Regards,
SameerFrom: Andrew Wilkins
Sent: ‎7/‎11/‎2014 3:25 PM
To: Sameer Zeidat
Cc: juju
Subject: Re: Unit-get

Hi Sameer,
The behaviour changed a few months ago to address a bug:https://bugs.launchpad.net/juju-core/+bug/1353442
Is this causing you problems, or were you just surprised/curious?
Cheers,Andrew
On Wed, Nov 5, 2014 at 8:09 PM, Sameer Zeidat <sameerz at yahoo.com> wrote:

Hi,

I bootstrapped juju stable today on maas stable. When deploying a charm I wrote I noticed unit-get private-address is returning the machine's fqdn. 

Previously it used to return the ip address (several months ago, can't remember the exact juju/maas versions). 

Has juju changed behaviour? Or is this not expected, i.e. an issue in my environment?

Appreciating your time.

Thanks,
Sameer
--
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/20141110/eb067d97/attachment.html>


More information about the Juju mailing list