Kirill Merkushev created JCLOUDS-748:
----------------------------------------

             Summary: Support IPv6 in openstack-nova API
                 Key: JCLOUDS-748
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-748
             Project: jclouds
          Issue Type: New Feature
          Components: jclouds-labs-openstack
    Affects Versions: 1.8.0
            Reporter: Kirill Merkushev


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:
{code}
{"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"}}}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to