Comment 2 for bug 1044427

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

There are several problems to be solved: the "acquire" API call returns a Node. We'd need to add an IP-address field to that, and then I guess the juju machine provider will have to decide when to use the hostname and when to use an IP address. ("An" because a node may have several). We can't just always use IP addresses because we won't know the IP address if we're not managing DHCP.

It may not be desirable to add the IP addresses to all representations of Nodes returned by the API, because it involves querying extra tables. So we'd have to do something unusual like: create a JSON representation of the node that's similar to what the API would return, but add an IP field ourselves.