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

Support IPv6 in openstack-nova API

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: jclouds-labs-openstack
    • Labels:
      None

      Description

      In situations when Openstack provide only IPv6 addresses, jclouds says "node does not have IP addresses configured" and doesn't work with such nodes.

      Problem in org.jclouds.openstack.nova.v2_0.compute.functions.ServerInZoneToNodeMetadata - it filters any IPv6 adresses. There is a test org.jclouds.openstack.nova.v2_0.compute.functions.ServerInZoneToNodeMetadataTest with comment
      // note jclouds doesn't yet support ipv6 b/c not tested yet

      maybe it good time to start supporting it?

      Example of response without IPv4:

      {"server": {"status": "ACTIVE", "updated": "2014-10-06T15:10:58Z", "hostId": "ae5...5502db0f1429bc", "addresses": {"SANDBOX": [{"OS-EXT-IPS-MAC:mac_addr": "fa..:94:27", "version": 6, "addr": "2a02:1b8:6:1a71::10e2", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://compute.company.ru/v2/d5068...22f91cb3e1b/servers/ec8b91...27f7399", "rel": "self"}, {"href": "http://compute.company.ru/d5068fb...b3e1b/servers/ec8b9...e27f7399", "rel": "bookmark"}], "key_name": "lanwen", "image": {"id": "15eebc...9de5c4c", "links": [{"href": "http://compute.company.ru/d5068fb19...cb3e1b/images/15eebc6...9de5c4c", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2014-10-06T15:10:58.000000", "flavor": {"id": "1", "links": [{"href": "http://compute.company.ru/d5068fb199...2f91cb3e1b/flavors/1", "rel": "bookmark"}]}, "id": "ec8b9...7399", "security_groups": [{"name": "jclouds-haze-testpers-simple"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "sata-raid10", "user_id": "2552070427b54...f13c0d6f4a", "name": "haze-test-simple-92", "created": "2014-10-06T15:09:23Z", "tenant_id": "d5068fb1...cb3e1b", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {"Name": "haze-test-simple", "jclouds-group": "haze-test-simple"}}}
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lanwen Kirill Merkushev
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: