Thanks Andrew & Jeremy! I've just tested it and yes,
- create() fails completely, OpenStack complains about the request with the missing pool param. as Jeremy explained (POST /v2/943fc35af6c3475b9a77e55374452741/os-floating-ips HTTP/1.1" status: 404) - allocateFromPool() works, and perhaps having the pool name configured for the app might actually be helpful in case there is more pools available Cheers, R. On Sat, Feb 15, 2014 at 11:34 PM, Jeremy Daggett <[email protected]>wrote: > Hi Radek, > > Based on the latest OpenStack Compute Floating IP docs [1], it looks like > the "pool" field was added in the response since we originally created this > extension. The current implementation is based on an earlier version of > Floating IPs [2]. > > The Floating IP Extension API allows you to "allocateFromPool" [3], but > then there is no way to know what pool it is in since the "pool" field is > missing from the FloatingIP object. The good news is that this field should > be fairly simple to add. > > Back to your immediate questions: > > - list() returns all already allocated fl. IPs, not pools, right? >> > > Looking at the API, the list() will return any allocated IPs, regardless > of pool. There is just no way to know since the "pool" field isn't there. > > >> - get(String id) accepts an IP addr. as a String? >> > > Yes, the IP address is a String ID. > > >> - create() is the same as allocateFromPool(String pool), just assumes >> there is only 1 pool available??? >> > > I don't believe that is the case . See next answer... > > >> - is it possible to list available pools so that I can use it then for >> allocateFromPool(String pool)? >> > > In order to get a list of the available pools, support for the Floating IP > Pools API [4] will need to be added. > > The next step here would be to file a JIRA issue for this missing > functionality. To create the JIRA issues, please refer to the "How to > Contribute" page [5] under the "Create an issue in JIRA" section. > > I hope that helps, and please let us know if you have any other questions. > Thanks! > > /jd > > [1] > http://docs.openstack.org/api/openstack-compute/2/content/GET_os-floating-ips-v2_ListFloatingIPs_v2__tenant_id__os-floating-ips_ext-os-floating-ips.html#GET_os-floating-ips-v2_ListFloatingIPs_v2__tenant_id__os-floating-ips_ext-os-floating-ips-Response > [2] http://wiki.openstack.org/os_api_floating_ip > [3] > https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/extensions/FloatingIPApi.java#L65 > [4] > http://docs.openstack.org/api/openstack-compute/2/content/ext-os-floating-ip-pools.html > > > >
