[openstack-dev] Networks and IPs in the compute API

Frittoli, Andrea (Cloud Services) frittoli at hp.com
Mon Feb 18 17:34:48 UTC 2013


Hi All,

 

I'm looking for a specification of the format of networks and IP addresses
in the server structure returned by nova compute API.

The integration test suite (tempest) needs a reliable way to identify
private and floating IPs of a VM, and an "official" spec would help a robust
implementation on test side.

 

For example, in a vanilla devstack, with nova networking, if I spawn a VM
and attach a floating IP to I get the following structure:

 

            "addresses": {

                "private": [

                    {

                        "addr": "10.0.0.2", 

                        "version": 4

                    }, 

                    {

                        "addr": "172.24.4.225", 

                        "version": 4

                    }

                ]

            },

 

This structure potentially supports multiple networks, each with a network
label ("private" in the example), and multiple IP addresses in each network.

Is there a fixed ordering for different type of IPs? (Fixed IPs, Auto
associated IPs, Floating IPs)

Is there a special semantic associated to network names?

 

The nova CLI binding seems to make an assumption about the network being
called "private": https://bugs.launchpad.net/nova/+bug/955792  

Is this assumption correct or is it a bug in the nova client? 

 

Thanks in advance

 

andrea

 

-- 

Andrea Frittoli

IaaS Systems Engineering Team

HP Cloud Services

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130218/8a07ed08/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6202 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130218/8a07ed08/attachment.bin>


More information about the OpenStack-dev mailing list