[
https://issues.apache.org/jira/browse/JCLOUDS-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16768116#comment-16768116
]
Ignasi Barrera commented on JCLOUDS-1426:
-----------------------------------------
Yes. The {{RunningInstance}} object as returned by the AWS API does not provide
the complete list of addresses, so at the point I linked there are additional
API calls to be made to fetch the additional NICs the instance may have and get
their IP addresses. We'd be happy to provide guidance in the jclouds dev
mailing list or in the slack channel.
> Jclouds does not return all private ip address of aws ec2 instance
> ------------------------------------------------------------------
>
> Key: JCLOUDS-1426
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1426
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute
> Affects Versions: 2.0.3
> Environment: AWS EC2
> Reporter: Dushyant Gupta
> Assignee: Andrea Turli
> Priority: Major
>
> I have made use of apache jclouds library to fetch ec2 instance details. I
> have attached 2 network interfaces on a single ec2 instance to provide it 2
> IPs.
> [!https://i.stack.imgur.com/xSHU3.png!|https://i.stack.imgur.com/xSHU3.png]
> But from the following code of jclouds, I see only one IP (of primary
> interface [eth0]) getting retrieved.
> {{ ComputeService cs = computeContext.getComputeService(); }}
> {{ for (ComputeMetadata cm : cs.listNodes()){ }}
> {{ NodeMetadata nm = (NodeMetadata) cm; }}
> {{ System.out.println(nm); }}
> {{ }}}
>
> In the output I can see only one IP address:
> {quote}privateAddresses=[172.26.119.234]
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)