Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1426

Jclouds does not return all private ip address of aws ec2 instance

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: jclouds-compute
    • Labels:
      None
    • Environment:
      AWS EC2

      Description

      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.

      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:

      privateAddresses=[172.26.119.234]

        Attachments

          Activity

            People

            • Assignee:
              andreaturli Andrea Turli
              Reporter:
              dushy1991 Dushyant Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: